@Generated(value="software.amazon.awssdk:codegen") public final class SamplingRuleUpdate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SamplingRuleUpdate.Builder,SamplingRuleUpdate>
A document specifying changes to a sampling rule's configuration.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SamplingRuleUpdate.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
attributes()
Matches attributes derived from the request.
|
static SamplingRuleUpdate.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Double |
fixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttributes()
For responses, this returns true if the service returned a value for the Attributes property.
|
int |
hashCode() |
String |
host()
Matches the hostname from a request URL.
|
String |
httpMethod()
Matches the HTTP method of a request.
|
Integer |
priority()
The priority of the sampling rule.
|
Integer |
reservoirSize()
A fixed number of matching requests to instrument per second, prior to applying the fixed rate.
|
String |
resourceARN()
Matches the ARN of the Amazon Web Services resource on which the service runs.
|
String |
ruleARN()
The ARN of the sampling rule.
|
String |
ruleName()
The name of the sampling rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SamplingRuleUpdate.Builder> |
serializableBuilderClass() |
String |
serviceName()
Matches the
name that the service uses to identify itself in segments. |
String |
serviceType()
Matches the
origin that the service uses to identify its type in segments. |
SamplingRuleUpdate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
urlPath()
Matches the path from a request URL.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String ruleName()
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
public final String ruleARN()
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
public final String resourceARN()
Matches the ARN of the Amazon Web Services resource on which the service runs.
public final Integer priority()
The priority of the sampling rule.
public final Double fixedRate()
The percentage of matching requests to instrument, after the reservoir is exhausted.
public final Integer reservoirSize()
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
public final String host()
Matches the hostname from a request URL.
public final String serviceName()
Matches the name that the service uses to identify itself in segments.
name that the service uses to identify itself in segments.public final String serviceType()
Matches the origin that the service uses to identify its type in segments.
origin that the service uses to identify its type in segments.public final String httpMethod()
Matches the HTTP method of a request.
public final String urlPath()
Matches the path from a request URL.
public final boolean hasAttributes()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> attributes()
Matches attributes derived from the request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttributes() method.
public SamplingRuleUpdate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SamplingRuleUpdate.Builder,SamplingRuleUpdate>public static SamplingRuleUpdate.Builder builder()
public static Class<? extends SamplingRuleUpdate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.