|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sns.model.UnsubscribeRequest
public class UnsubscribeRequest
Container for the parameters to the Unsubscribe operation
.
The Unsubscribe action deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the its 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.
AmazonSNS.unsubscribe(UnsubscribeRequest)
Constructor Summary | |
---|---|
UnsubscribeRequest()
Default constructor for a new UnsubscribeRequest object. |
|
UnsubscribeRequest(String subscriptionArn)
Constructs a new UnsubscribeRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getSubscriptionArn()
The ARN of the subscription to be deleted. |
int |
hashCode()
|
void |
setSubscriptionArn(String subscriptionArn)
The ARN of the subscription to be deleted. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
UnsubscribeRequest |
withSubscriptionArn(String subscriptionArn)
The ARN of the subscription to be deleted. |
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 |
---|
public UnsubscribeRequest()
public UnsubscribeRequest(String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.Method Detail |
---|
public String getSubscriptionArn()
public void setSubscriptionArn(String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.public UnsubscribeRequest withSubscriptionArn(String subscriptionArn)
Returns a reference to this object so that method calls can be chained together.
subscriptionArn
- The ARN of the subscription to be deleted.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |