public class UnsubscribeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
NOOP
Constructor and Description |
---|
UnsubscribeRequest()
Default constructor for a new UnsubscribeRequest object.
|
UnsubscribeRequest(String subscriptionArn)
Constructs a new UnsubscribeRequest object.
|
Modifier and Type | Method and Description |
---|---|
UnsubscribeRequest |
clone() |
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.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UnsubscribeRequest()
public UnsubscribeRequest(String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.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 UnsubscribeRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.