@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetTopicAttributesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Input for SetTopicAttributes action.
NOOP| Constructor and Description | 
|---|
| SetTopicAttributesRequest()Default constructor for SetTopicAttributesRequest object. | 
| SetTopicAttributesRequest(String topicArn,
                         String attributeName,
                         String attributeValue)Constructs a new SetTopicAttributesRequest object. | 
| Modifier and Type | Method and Description | 
|---|---|
| SetTopicAttributesRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| String | getAttributeName()
 A map of attributes with their corresponding values. | 
| String | getAttributeValue()
 The new value for the attribute. | 
| String | getTopicArn()
 The ARN of the topic to modify. | 
| int | hashCode() | 
| void | setAttributeName(String attributeName)
 A map of attributes with their corresponding values. | 
| void | setAttributeValue(String attributeValue)
 The new value for the attribute. | 
| void | setTopicArn(String topicArn)
 The ARN of the topic to modify. | 
| String | toString()Returns a string representation of this object. | 
| SetTopicAttributesRequest | withAttributeName(String attributeName)
 A map of attributes with their corresponding values. | 
| SetTopicAttributesRequest | withAttributeValue(String attributeValue)
 The new value for the attribute. | 
| SetTopicAttributesRequest | withTopicArn(String topicArn)
 The ARN of the topic to modify. | 
addHandlerContext, 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 SetTopicAttributesRequest()
public SetTopicAttributesRequest(String topicArn, String attributeName, String attributeValue)
topicArn - The ARN of the topic to modify.attributeName - A map of attributes with their corresponding values.
        
        The following lists the names, descriptions, and values of the special request parameters that the
        SetTopicAttributes action uses:
        
        DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
        endpoints.
        
        DisplayName – The display name to use for a topic with SMS subscriptions.
        
        Policy – The policy that defines who can access your topic. By default, only the topic owner
        can publish or subscribe to the topic.
        
The following attribute applies only to server-side-encryption:
        KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a
        custom CMK. For more information, see Key
        Terms. For more examples, see KeyId in the AWS Key Management Service API Reference.
        
The following attribute applies only to FIFO topics:
        ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256
        hash to generate the MessageDeduplicationId using the body of the message (but not the
        attributes of the message).
        
        When ContentBasedDeduplication is in effect, messages with identical content sent within the
        deduplication interval are treated as duplicates and only one copy of the message is delivered.
        
        If the queue has ContentBasedDeduplication set, your MessageDeduplicationId
        overrides the generated one.
        
attributeValue - The new value for the attribute.public void setTopicArn(String topicArn)
The ARN of the topic to modify.
topicArn - The ARN of the topic to modify.public String getTopicArn()
The ARN of the topic to modify.
public SetTopicAttributesRequest withTopicArn(String topicArn)
The ARN of the topic to modify.
topicArn - The ARN of the topic to modify.public void setAttributeName(String attributeName)
A map of attributes with their corresponding values.
 The following lists the names, descriptions, and values of the special request parameters that the
 SetTopicAttributes action uses:
 
 DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
 endpoints.
 
 DisplayName – The display name to use for a topic with SMS subscriptions.
 
 Policy – The policy that defines who can access your topic. By default, only the topic owner can
 publish or subscribe to the topic.
 
The following attribute applies only to server-side-encryption:
 KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK.
 For more information, see Key Terms. For
 more examples, see KeyId in the AWS Key Management Service API Reference.
 
The following attribute applies only to FIFO topics:
 ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256 hash to
 generate the MessageDeduplicationId using the body of the message (but not the attributes of the
 message).
 
 When ContentBasedDeduplication is in effect, messages with identical content sent within the
 deduplication interval are treated as duplicates and only one copy of the message is delivered.
 
 If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides
 the generated one.
 
attributeName - A map of attributes with their corresponding values.
        
        The following lists the names, descriptions, and values of the special request parameters that the
        SetTopicAttributes action uses:
        
        DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
        endpoints.
        
        DisplayName – The display name to use for a topic with SMS subscriptions.
        
        Policy – The policy that defines who can access your topic. By default, only the topic owner
        can publish or subscribe to the topic.
        
The following attribute applies only to server-side-encryption:
        KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a
        custom CMK. For more information, see Key
        Terms. For more examples, see KeyId in the AWS Key Management Service API Reference.
        
The following attribute applies only to FIFO topics:
        ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256
        hash to generate the MessageDeduplicationId using the body of the message (but not the
        attributes of the message).
        
        When ContentBasedDeduplication is in effect, messages with identical content sent within the
        deduplication interval are treated as duplicates and only one copy of the message is delivered.
        
        If the queue has ContentBasedDeduplication set, your MessageDeduplicationId
        overrides the generated one.
        
public String getAttributeName()
A map of attributes with their corresponding values.
 The following lists the names, descriptions, and values of the special request parameters that the
 SetTopicAttributes action uses:
 
 DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
 endpoints.
 
 DisplayName – The display name to use for a topic with SMS subscriptions.
 
 Policy – The policy that defines who can access your topic. By default, only the topic owner can
 publish or subscribe to the topic.
 
The following attribute applies only to server-side-encryption:
 KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK.
 For more information, see Key Terms. For
 more examples, see KeyId in the AWS Key Management Service API Reference.
 
The following attribute applies only to FIFO topics:
 ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256 hash to
 generate the MessageDeduplicationId using the body of the message (but not the attributes of the
 message).
 
 When ContentBasedDeduplication is in effect, messages with identical content sent within the
 deduplication interval are treated as duplicates and only one copy of the message is delivered.
 
 If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides
 the generated one.
 
         The following lists the names, descriptions, and values of the special request parameters that the
         SetTopicAttributes action uses:
         
         DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
         endpoints.
         
         DisplayName – The display name to use for a topic with SMS subscriptions.
         
         Policy – The policy that defines who can access your topic. By default, only the topic owner
         can publish or subscribe to the topic.
         
The following attribute applies only to server-side-encryption:
         KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a
         custom CMK. For more information, see Key
         Terms. For more examples, see KeyId in the AWS Key Management Service API Reference.
         
The following attribute applies only to FIFO topics:
         ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256
         hash to generate the MessageDeduplicationId using the body of the message (but not the
         attributes of the message).
         
         When ContentBasedDeduplication is in effect, messages with identical content sent within the
         deduplication interval are treated as duplicates and only one copy of the message is delivered.
         
         If the queue has ContentBasedDeduplication set, your MessageDeduplicationId
         overrides the generated one.
         
public SetTopicAttributesRequest withAttributeName(String attributeName)
A map of attributes with their corresponding values.
 The following lists the names, descriptions, and values of the special request parameters that the
 SetTopicAttributes action uses:
 
 DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
 endpoints.
 
 DisplayName – The display name to use for a topic with SMS subscriptions.
 
 Policy – The policy that defines who can access your topic. By default, only the topic owner can
 publish or subscribe to the topic.
 
The following attribute applies only to server-side-encryption:
 KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK.
 For more information, see Key Terms. For
 more examples, see KeyId in the AWS Key Management Service API Reference.
 
The following attribute applies only to FIFO topics:
 ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256 hash to
 generate the MessageDeduplicationId using the body of the message (but not the attributes of the
 message).
 
 When ContentBasedDeduplication is in effect, messages with identical content sent within the
 deduplication interval are treated as duplicates and only one copy of the message is delivered.
 
 If the queue has ContentBasedDeduplication set, your MessageDeduplicationId overrides
 the generated one.
 
attributeName - A map of attributes with their corresponding values.
        
        The following lists the names, descriptions, and values of the special request parameters that the
        SetTopicAttributes action uses:
        
        DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S
        endpoints.
        
        DisplayName – The display name to use for a topic with SMS subscriptions.
        
        Policy – The policy that defines who can access your topic. By default, only the topic owner
        can publish or subscribe to the topic.
        
The following attribute applies only to server-side-encryption:
        KmsMasterKeyId – The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a
        custom CMK. For more information, see Key
        Terms. For more examples, see KeyId in the AWS Key Management Service API Reference.
        
The following attribute applies only to FIFO topics:
        ContentBasedDeduplication – Enables content-based deduplication. Amazon SNS uses a SHA-256
        hash to generate the MessageDeduplicationId using the body of the message (but not the
        attributes of the message).
        
        When ContentBasedDeduplication is in effect, messages with identical content sent within the
        deduplication interval are treated as duplicates and only one copy of the message is delivered.
        
        If the queue has ContentBasedDeduplication set, your MessageDeduplicationId
        overrides the generated one.
        
public void setAttributeValue(String attributeValue)
The new value for the attribute.
attributeValue - The new value for the attribute.public String getAttributeValue()
The new value for the attribute.
public SetTopicAttributesRequest withAttributeValue(String attributeValue)
The new value for the attribute.
attributeValue - The new value for the attribute.public String toString()
toString in class ObjectObject.toString()public SetTopicAttributesRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()