|
|||||||
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
.
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.
AmazonSNS.unsubscribe(UnsubscribeRequest)
,
Serialized FormConstructor 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 |
---|
public UnsubscribeRequest()
public UnsubscribeRequest(java.lang.String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.Method Detail |
---|
public java.lang.String getSubscriptionArn()
public void setSubscriptionArn(java.lang.String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.public UnsubscribeRequest withSubscriptionArn(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |