com.amazonaws.services.sns.model
Class UnsubscribeRequest

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

public class UnsubscribeRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the Unsubscribe operation.

Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic's owner can unsubscribe, and an AWS signature is required. If the Unsubscribe call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the Unsubscribe request was unintended.

See Also:
AmazonSNS.unsubscribe(UnsubscribeRequest), Serialized Form

Constructor Summary
UnsubscribeRequest()
          Default constructor for a new UnsubscribeRequest object.
UnsubscribeRequest(java.lang.String subscriptionArn)
          Constructs a new UnsubscribeRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getSubscriptionArn()
          The ARN of the subscription to be deleted.
 int hashCode()
           
 void setSubscriptionArn(java.lang.String subscriptionArn)
          The ARN of the subscription to be deleted.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UnsubscribeRequest withSubscriptionArn(java.lang.String subscriptionArn)
          The ARN of the subscription to be deleted.
 
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

UnsubscribeRequest

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


UnsubscribeRequest

public UnsubscribeRequest(java.lang.String subscriptionArn)
Constructs a new UnsubscribeRequest 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 be deleted.
Method Detail

getSubscriptionArn

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

Returns:
The ARN of the subscription to be deleted.

setSubscriptionArn

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

Parameters:
subscriptionArn - The ARN of the subscription to be deleted.

withSubscriptionArn

public UnsubscribeRequest withSubscriptionArn(java.lang.String subscriptionArn)
The ARN of the subscription to be deleted.

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

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