com.amazonaws.services.sns.model
Class SetTopicAttributesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sns.model.SetTopicAttributesRequest

public class SetTopicAttributesRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetTopicAttributes operation.

The SetTopicAttributes action allows a topic owner to set an attribute of the topic to a new value.

See Also:
AmazonSNS.setTopicAttributes(SetTopicAttributesRequest)

Constructor Summary
SetTopicAttributesRequest()
          Default constructor for a new SetTopicAttributesRequest object.
SetTopicAttributesRequest(String topicArn, String attributeName, String attributeValue)
          Constructs a new SetTopicAttributesRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttributeName()
          The name of the attribute you want to set.
 String getAttributeValue()
          The new value for the attribute.
 String getTopicArn()
          The ARN of the topic to modify.
 int hashCode()
           
 void setAttributeName(String attributeName)
          The name of the attribute you want to set.
 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; useful for testing and debugging.
 SetTopicAttributesRequest withAttributeName(String attributeName)
          The name of the attribute you want to set.
 SetTopicAttributesRequest withAttributeValue(String attributeValue)
          The new value for the attribute.
 SetTopicAttributesRequest withTopicArn(String topicArn)
          The ARN of the topic to modify.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetTopicAttributesRequest

public SetTopicAttributesRequest()
Default constructor for a new SetTopicAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this 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

attributeValue - The new value for the attribute.
Method Detail

getTopicArn

public String getTopicArn()
The ARN of the topic to modify.

Returns:
The ARN of the topic to modify.

setTopicArn

public void setTopicArn(String topicArn)
The ARN of the topic to modify.

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

withTopicArn

public SetTopicAttributesRequest withTopicArn(String topicArn)
The ARN of the topic to modify.

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

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

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

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

Valid values: Policy | DisplayName


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

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


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

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

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

Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeValue

public String getAttributeValue()
The new value for the attribute.

Returns:
The new value for the attribute.

setAttributeValue

public void setAttributeValue(String attributeValue)
The new value for the attribute.

Parameters:
attributeValue - The new value for the attribute.

withAttributeValue

public SetTopicAttributesRequest withAttributeValue(String attributeValue)
The new value for the attribute.

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

Parameters:
attributeValue - The new value for the attribute.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.