public class ConfirmSubscriptionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Verifies an endpoint owner's intent to receive messages by validating the
token sent to the endpoint by an earlier Subscribe
action. If
the token is valid, the action creates a new subscription and returns its
Amazon Resource Name (ARN). This call requires an AWS signature only when the
AuthenticateOnUnsubscribe
flag is set to "true".
Constructor and Description |
---|
ConfirmSubscriptionRequest()
Default constructor for ConfirmSubscriptionRequest object.
|
ConfirmSubscriptionRequest(java.lang.String topicArn,
java.lang.String token)
Constructs a new ConfirmSubscriptionRequest object.
|
ConfirmSubscriptionRequest(java.lang.String topicArn,
java.lang.String token,
java.lang.String authenticateOnUnsubscribe)
Constructs a new ConfirmSubscriptionRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAuthenticateOnUnsubscribe()
Disallows unauthenticated unsubscribes of the subscription.
|
java.lang.String |
getToken()
Short-lived token sent to an endpoint during the
Subscribe
action. |
java.lang.String |
getTopicArn()
The ARN of the topic for which you wish to confirm a subscription.
|
int |
hashCode() |
void |
setAuthenticateOnUnsubscribe(java.lang.String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription.
|
void |
setToken(java.lang.String token)
Short-lived token sent to an endpoint during the
Subscribe
action. |
void |
setTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConfirmSubscriptionRequest |
withAuthenticateOnUnsubscribe(java.lang.String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription.
|
ConfirmSubscriptionRequest |
withToken(java.lang.String token)
Short-lived token sent to an endpoint during the
Subscribe
action. |
ConfirmSubscriptionRequest |
withTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ConfirmSubscriptionRequest()
public ConfirmSubscriptionRequest(java.lang.String topicArn, java.lang.String token)
topicArn
- The ARN of the topic for which you wish to confirm a subscription.
token
-
Short-lived token sent to an endpoint during the
Subscribe
action.
public ConfirmSubscriptionRequest(java.lang.String topicArn, java.lang.String token, java.lang.String authenticateOnUnsubscribe)
topicArn
- The ARN of the topic for which you wish to confirm a subscription.
token
-
Short-lived token sent to an endpoint during the
Subscribe
action.
authenticateOnUnsubscribe
-
Disallows unauthenticated unsubscribes of the subscription. If
the value of this parameter is true
and 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.
public java.lang.String getTopicArn()
The ARN of the topic for which you wish to confirm a subscription.
The ARN of the topic for which you wish to confirm a subscription.
public void setTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
topicArn
- The ARN of the topic for which you wish to confirm a subscription.
public ConfirmSubscriptionRequest withTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to confirm a subscription.
Returns a reference to this object so that method calls can be chained together.
topicArn
- The ARN of the topic for which you wish to confirm a subscription.
public java.lang.String getToken()
Short-lived token sent to an endpoint during the Subscribe
action.
Short-lived token sent to an endpoint during the
Subscribe
action.
public void setToken(java.lang.String token)
Short-lived token sent to an endpoint during the Subscribe
action.
token
-
Short-lived token sent to an endpoint during the
Subscribe
action.
public ConfirmSubscriptionRequest withToken(java.lang.String token)
Short-lived token sent to an endpoint during the Subscribe
action.
Returns a reference to this object so that method calls can be chained together.
token
-
Short-lived token sent to an endpoint during the
Subscribe
action.
public java.lang.String getAuthenticateOnUnsubscribe()
Disallows unauthenticated unsubscribes of the subscription. If the value
of this parameter is true
and 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.
Disallows unauthenticated unsubscribes of the subscription. If
the value of this parameter is true
and 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.
public void setAuthenticateOnUnsubscribe(java.lang.String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription. If the value
of this parameter is true
and 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.
authenticateOnUnsubscribe
-
Disallows unauthenticated unsubscribes of the subscription. If
the value of this parameter is true
and 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.
public ConfirmSubscriptionRequest withAuthenticateOnUnsubscribe(java.lang.String authenticateOnUnsubscribe)
Disallows unauthenticated unsubscribes of the subscription. If the value
of this parameter is true
and 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 a reference to this object so that method calls can be chained together.
authenticateOnUnsubscribe
-
Disallows unauthenticated unsubscribes of the subscription. If
the value of this parameter is true
and 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.
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.