Class SetTopicAttributesRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.SetTopicAttributesRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class SetTopicAttributesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Input for SetTopicAttributes action.

See Also:
  • Constructor Details

    • SetTopicAttributesRequest

      public SetTopicAttributesRequest()
      Default constructor for SetTopicAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • SetTopicAttributesRequest

      public SetTopicAttributesRequest(String topicArn, String attributeName, String attributeValue)
      Constructs a new SetTopicAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      topicArn - The ARN of the topic to modify.
      attributeName - The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

      attributeValue - The new value for the attribute.
  • Method Details

    • setTopicArn

      public void setTopicArn(String topicArn)

      The ARN of the topic to modify.

      Parameters:
      topicArn - The ARN of the topic to modify.
    • getTopicArn

      public String getTopicArn()

      The ARN of the topic to modify.

      Returns:
      The ARN of the topic to modify.
    • withTopicArn

      public SetTopicAttributesRequest withTopicArn(String topicArn)

      The ARN of the topic to modify.

      Parameters:
      topicArn - The ARN of the topic to modify.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAttributeName

      public void setAttributeName(String attributeName)

      The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

      Parameters:
      attributeName - The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

    • getAttributeName

      public String getAttributeName()

      The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

      Returns:
      The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

    • withAttributeName

      public SetTopicAttributesRequest withAttributeName(String attributeName)

      The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

      Parameters:
      attributeName - The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

      Valid values: Policy | DisplayName | DeliveryPolicy

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAttributeValue

      public void setAttributeValue(String attributeValue)

      The new value for the attribute.

      Parameters:
      attributeValue - The new value for the attribute.
    • getAttributeValue

      public String getAttributeValue()

      The new value for the attribute.

      Returns:
      The new value for the attribute.
    • withAttributeValue

      public SetTopicAttributesRequest withAttributeValue(String attributeValue)

      The new value for the attribute.

      Parameters:
      attributeValue - The new value for the attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SetTopicAttributesRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: