public final class SnsUnsubscribeConfirmation extends SnsMessage
Modifier and Type | Class and Description |
---|---|
static class |
SnsUnsubscribeConfirmation.Builder
Builder for
SnsUnsubscribeConfirmation . |
Modifier and Type | Method and Description |
---|---|
static SnsUnsubscribeConfirmation.Builder |
builder(org.apache.http.client.HttpClient httpClient) |
String |
getMessage() |
URL |
getSubscribeUrl() |
String |
getToken() |
void |
handle(SnsMessageHandler handler)
Calls the appropriate 'handle' method on
SnsMessageHandler depending on the subtype. |
ConfirmSubscriptionResult |
reconfirmSubscription()
Will attempt to re-confirm the subscription by visiting the URL at
getSubscribeUrl() . |
getMessageId, getTimestamp, getTopicArn
public String getMessage()
You have chosen to deactivate subscription arn:aws:sns:us-east-1:123456789012:MyTopic:2bcfbf39-05c3-41de-beaa-fcfcc21c8f55.\nTo cancel this operation and restore the subscription, visit the SubscribeURL included in this message.
public URL getSubscribeUrl()
URL
that you must visit in order to re-confirm the subscription. Alternatively, you can instead use the
Token with the AmazonSNS.confirmSubscription(ConfirmSubscriptionRequest)
action to re-confirm the subscription.public String getToken()
AmazonSNS.confirmSubscription(ConfirmSubscriptionRequest)
action to re-confirm
the subscription. Alternatively, you can simply visit the SubscribeURL.public void handle(SnsMessageHandler handler)
SnsMessage
SnsMessageHandler
depending on the subtype.handle
in class SnsMessage
handler
- Handler to deliver message to.public ConfirmSubscriptionResult reconfirmSubscription()
getSubscribeUrl()
.SdkClientException
- if confirmation could not be confirmed.public static SnsUnsubscribeConfirmation.Builder builder(org.apache.http.client.HttpClient httpClient)
httpClient
- HttpClient
instance used to reconfirm the SNS subscription. See reconfirmSubscription()
.SnsUnsubscribeConfirmation.Builder
for SnsUnsubscribeConfirmation
.Copyright © 2018. All rights reserved.