Class ConfirmSubscriptionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.sns.model.ConfirmSubscriptionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ConfirmSubscriptionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Input for ConfirmSubscription action.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ConfirmSubscriptionRequest()Default constructor for ConfirmSubscriptionRequest object.ConfirmSubscriptionRequest(String topicArn, String token)Constructs a new ConfirmSubscriptionRequest object.ConfirmSubscriptionRequest(String topicArn, String token, String authenticateOnUnsubscribe)Constructs a new ConfirmSubscriptionRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfirmSubscriptionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAuthenticateOnUnsubscribe()Disallows unauthenticated unsubscribes of the subscription.StringgetToken()Short-lived token sent to an endpoint during theSubscribeaction.StringgetTopicArn()The ARN of the topic for which you wish to confirm a subscription.inthashCode()voidsetAuthenticateOnUnsubscribe(String authenticateOnUnsubscribe)Disallows unauthenticated unsubscribes of the subscription.voidsetToken(String token)Short-lived token sent to an endpoint during theSubscribeaction.voidsetTopicArn(String topicArn)The ARN of the topic for which you wish to confirm a subscription.StringtoString()Returns a string representation of this object; useful for testing and debugging.ConfirmSubscriptionRequestwithAuthenticateOnUnsubscribe(String authenticateOnUnsubscribe)Disallows unauthenticated unsubscribes of the subscription.ConfirmSubscriptionRequestwithToken(String token)Short-lived token sent to an endpoint during theSubscribeaction.ConfirmSubscriptionRequestwithTopicArn(String topicArn)The ARN of the topic for which you wish to confirm a subscription.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
ConfirmSubscriptionRequest
public ConfirmSubscriptionRequest()
Default constructor for ConfirmSubscriptionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
ConfirmSubscriptionRequest
public ConfirmSubscriptionRequest(String topicArn, String token)
Constructs a new ConfirmSubscriptionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
topicArn- The ARN of the topic for which you wish to confirm a subscription.token- Short-lived token sent to an endpoint during theSubscribeaction.
-
ConfirmSubscriptionRequest
public ConfirmSubscriptionRequest(String topicArn, String token, String authenticateOnUnsubscribe)
Constructs a new ConfirmSubscriptionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
topicArn- The ARN of the topic for which you wish to confirm a subscription.token- Short-lived token sent to an endpoint during theSubscribeaction.authenticateOnUnsubscribe- Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter istrueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
-
-
Method Detail
-
setTopicArn
public void setTopicArn(String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
- Parameters:
topicArn- The ARN of the topic for which you wish to confirm a subscription.
-
getTopicArn
public String getTopicArn()
The ARN of the topic for which you wish to confirm a subscription.
- Returns:
- The ARN of the topic for which you wish to confirm a subscription.
-
withTopicArn
public ConfirmSubscriptionRequest withTopicArn(String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
- Parameters:
topicArn- The ARN of the topic for which you wish to confirm a subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToken
public void setToken(String token)
Short-lived token sent to an endpoint during the
Subscribeaction.- Parameters:
token- Short-lived token sent to an endpoint during theSubscribeaction.
-
getToken
public String getToken()
Short-lived token sent to an endpoint during the
Subscribeaction.- Returns:
- Short-lived token sent to an endpoint during the
Subscribeaction.
-
withToken
public ConfirmSubscriptionRequest withToken(String token)
Short-lived token sent to an endpoint during the
Subscribeaction.- Parameters:
token- Short-lived token sent to an endpoint during theSubscribeaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAuthenticateOnUnsubscribe
public void setAuthenticateOnUnsubscribe(String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is
trueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.- Parameters:
authenticateOnUnsubscribe- Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter istrueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
-
getAuthenticateOnUnsubscribe
public String getAuthenticateOnUnsubscribe()
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is
trueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.- Returns:
- Disallows unauthenticated unsubscribes of the subscription. If
the value of this parameter is
trueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.
-
withAuthenticateOnUnsubscribe
public ConfirmSubscriptionRequest withAuthenticateOnUnsubscribe(String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is
trueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.- Parameters:
authenticateOnUnsubscribe- Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter istrueand the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConfirmSubscriptionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-