@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()
Returns true if the Attributes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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 AWS 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 AWS 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()
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.
You can use hasAttributes() to see if a value was sent in this field.
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 © 2021. All rights reserved.