public class UnsubscribeRequest extends AmazonWebServiceRequest implements Serializable
Unsubscribe operation
.
The Unsubscribe
action 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.
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 |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.