@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSamplingRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| CreateSamplingRuleRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateSamplingRuleRequest | clone() | 
| boolean | equals(Object obj) | 
| SamplingRule | getSamplingRule()
 The rule definition. | 
| List<Tag> | getTags()
 A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. | 
| int | hashCode() | 
| void | setSamplingRule(SamplingRule samplingRule)
 The rule definition. | 
| void | setTags(Collection<Tag> tags)
 A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. | 
| String | toString()Returns a string representation of this object. | 
| CreateSamplingRuleRequest | withSamplingRule(SamplingRule samplingRule)
 The rule definition. | 
| CreateSamplingRuleRequest | withTags(Collection<Tag> tags)
 A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. | 
| CreateSamplingRuleRequest | withTags(Tag... tags)
 A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. | 
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setSamplingRule(SamplingRule samplingRule)
The rule definition.
samplingRule - The rule definition.public SamplingRule getSamplingRule()
The rule definition.
public CreateSamplingRuleRequest withSamplingRule(SamplingRule samplingRule)
The rule definition.
samplingRule - The rule definition.public List<Tag> getTags()
A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
 Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
 
The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
         Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
         
public void setTags(Collection<Tag> tags)
A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
 Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
 
tags - A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more
        information about ways to use tags, see Tagging Amazon Web Services
        resources in the Amazon Web Services General Reference.
        The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
        Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
        
public CreateSamplingRuleRequest withTags(Tag... tags)
A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
 Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
 existing values.
 
tags - A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more
        information about ways to use tags, see Tagging Amazon Web Services
        resources in the Amazon Web Services General Reference.
        The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
        Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
        
public CreateSamplingRuleRequest withTags(Collection<Tag> tags)
A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
 Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
 
tags - A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more
        information about ways to use tags, see Tagging Amazon Web Services
        resources in the Amazon Web Services General Reference.
        The following restrictions apply to tags:
Maximum number of user-applied tags per resource: 50
Maximum tag key length: 128 Unicode characters
Maximum tag value length: 256 Unicode characters
Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
Tag keys and values are case sensitive.
        Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.
        
public String toString()
toString in class ObjectObject.toString()public CreateSamplingRuleRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.