public class UnsubscribeRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
This action is throttled at 100 transactions per second (TPS).
Constructor and Description |
---|
UnsubscribeRequest()
Default constructor for UnsubscribeRequest object.
|
UnsubscribeRequest(java.lang.String subscriptionArn)
Constructs a new UnsubscribeRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UnsubscribeRequest()
public UnsubscribeRequest(java.lang.String subscriptionArn)
subscriptionArn
- The ARN of the subscription to be deleted.
public java.lang.String getSubscriptionArn()
The ARN of the subscription to be deleted.
The ARN of the subscription to be deleted.
public void setSubscriptionArn(java.lang.String subscriptionArn)
The ARN of the subscription to be deleted.
subscriptionArn
- The ARN of the subscription to be deleted.
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.
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.