com.amazonaws.services.sns.model
Class SetSubscriptionAttributesRequest

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

public class SetSubscriptionAttributesRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetSubscriptionAttributes operation.

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

See Also:
AmazonSNS.setSubscriptionAttributes(SetSubscriptionAttributesRequest)

Constructor Summary
SetSubscriptionAttributesRequest()
          Default constructor for a new SetSubscriptionAttributesRequest object.
SetSubscriptionAttributesRequest(String subscriptionArn, String attributeName, String attributeValue)
          Constructs a new SetSubscriptionAttributesRequest 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 getSubscriptionArn()
          The ARN of the subscription 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 setSubscriptionArn(String subscriptionArn)
          The ARN of the subscription to modify.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetSubscriptionAttributesRequest withAttributeName(String attributeName)
          The name of the attribute you want to set.
 SetSubscriptionAttributesRequest withAttributeValue(String attributeValue)
          The new value for the attribute.
 SetSubscriptionAttributesRequest withSubscriptionArn(String subscriptionArn)
          The ARN of the subscription 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

SetSubscriptionAttributesRequest

public SetSubscriptionAttributesRequest()
Default constructor for a new SetSubscriptionAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


SetSubscriptionAttributesRequest

public SetSubscriptionAttributesRequest(String subscriptionArn,
                                        String attributeName,
                                        String attributeValue)
Constructs a new SetSubscriptionAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
subscriptionArn - The ARN of the subscription to modify.
attributeName - The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.

Valid values: DeliveryPolicy

attributeValue - The new value for the attribute.
Method Detail

getSubscriptionArn

public String getSubscriptionArn()
The ARN of the subscription to modify.

Returns:
The ARN of the subscription to modify.

setSubscriptionArn

public void setSubscriptionArn(String subscriptionArn)
The ARN of the subscription to modify.

Parameters:
subscriptionArn - The ARN of the subscription to modify.

withSubscriptionArn

public SetSubscriptionAttributesRequest withSubscriptionArn(String subscriptionArn)
The ARN of the subscription to modify.

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

Parameters:
subscriptionArn - The ARN of the subscription 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 subscriptions attributes are mutable.

Valid values: DeliveryPolicy

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

Valid values: DeliveryPolicy


setAttributeName

public void setAttributeName(String attributeName)
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.

Valid values: DeliveryPolicy

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

Valid values: DeliveryPolicy


withAttributeName

public SetSubscriptionAttributesRequest withAttributeName(String attributeName)
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.

Valid values: DeliveryPolicy

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 subscriptions attributes are mutable.

Valid values: DeliveryPolicy

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 SetSubscriptionAttributesRequest 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.