com.amazonaws.services.sns.model
Class SetSubscriptionAttributesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sns.model.SetSubscriptionAttributesRequest
All Implemented Interfaces:
java.io.Serializable

public class SetSubscriptionAttributesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the SetSubscriptionAttributes operation.

Allows a subscription owner to set an attribute of the topic to a new value.

See Also:
AmazonSNS.setSubscriptionAttributes(SetSubscriptionAttributesRequest), Serialized Form

Constructor Summary
SetSubscriptionAttributesRequest()
          Default constructor for a new SetSubscriptionAttributesRequest object.
SetSubscriptionAttributesRequest(java.lang.String subscriptionArn, java.lang.String attributeName, java.lang.String attributeValue)
          Constructs a new SetSubscriptionAttributesRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAttributeName()
          The name of the attribute you want to set.
 java.lang.String getAttributeValue()
          The new value for the attribute in JSON format.
 java.lang.String getSubscriptionArn()
          The ARN of the subscription to modify.
 int hashCode()
           
 void setAttributeName(java.lang.String attributeName)
          The name of the attribute you want to set.
 void setAttributeValue(java.lang.String attributeValue)
          The new value for the attribute in JSON format.
 void setSubscriptionArn(java.lang.String subscriptionArn)
          The ARN of the subscription to modify.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetSubscriptionAttributesRequest withAttributeName(java.lang.String attributeName)
          The name of the attribute you want to set.
 SetSubscriptionAttributesRequest withAttributeValue(java.lang.String attributeValue)
          The new value for the attribute in JSON format.
 SetSubscriptionAttributesRequest withSubscriptionArn(java.lang.String subscriptionArn)
          The ARN of the subscription to modify.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.String subscriptionArn,
                                        java.lang.String attributeName,
                                        java.lang.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 | RawMessageDelivery

attributeValue - The new value for the attribute in JSON format.
Method Detail

getSubscriptionArn

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

Returns:
The ARN of the subscription to modify.

setSubscriptionArn

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

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

withSubscriptionArn

public SetSubscriptionAttributesRequest withSubscriptionArn(java.lang.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 java.lang.String getAttributeName()
The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.

Valid values: DeliveryPolicy | RawMessageDelivery

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

Valid values: DeliveryPolicy | RawMessageDelivery


setAttributeName

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

Valid values: DeliveryPolicy | RawMessageDelivery

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

Valid values: DeliveryPolicy | RawMessageDelivery


withAttributeName

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

Valid values: DeliveryPolicy | RawMessageDelivery

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 | RawMessageDelivery

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

getAttributeValue

public java.lang.String getAttributeValue()
The new value for the attribute in JSON format.

Returns:
The new value for the attribute in JSON format.

setAttributeValue

public void setAttributeValue(java.lang.String attributeValue)
The new value for the attribute in JSON format.

Parameters:
attributeValue - The new value for the attribute in JSON format.

withAttributeValue

public SetSubscriptionAttributesRequest withAttributeValue(java.lang.String attributeValue)
The new value for the attribute in JSON format.

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

Parameters:
attributeValue - The new value for the attribute in JSON format.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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