Class SetSubscriptionAttributesRequest

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

public class SetSubscriptionAttributesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Input for SetSubscriptionAttributes action.

See Also:
  • Constructor Details

    • SetSubscriptionAttributesRequest

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

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

    • setSubscriptionArn

      public void setSubscriptionArn(String subscriptionArn)

      The ARN of the subscription to modify.

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

      public String getSubscriptionArn()

      The ARN of the subscription to modify.

      Returns:
      The ARN of the subscription to modify.
    • withSubscriptionArn

      public SetSubscriptionAttributesRequest withSubscriptionArn(String subscriptionArn)

      The ARN of the subscription to modify.

      Parameters:
      subscriptionArn - The ARN of the subscription 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 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

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

      Returns:
      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(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

      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 in JSON format.

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

      public String getAttributeValue()

      The new value for the attribute in JSON format.

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

      public SetSubscriptionAttributesRequest withAttributeValue(String attributeValue)

      The new value for the attribute in JSON format.

      Parameters:
      attributeValue - The new value for the attribute in JSON format.
      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

      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: