package com.teambytes.hipchat.sns.bridge.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.String; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/teambytes/hipchat-sns-bridge/0.0.1-dev/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class SnsNotification { @NotNull protected String type; @NotNull protected String messageId; @NotNull protected String topicArn; @NotNull protected String message; @NotNull protected String timestamp; @NotNull protected String signatureVersion; @NotNull protected String signature; @NotNull protected String signingCertURL; protected String token; protected String subject; protected String subscribeURL; protected String unsubscribeURL; public SnsNotification(String type, String messageId, String topicArn, String message, String timestamp, String signatureVersion, String signature, String signingCertURL, String token, String subject, String subscribeURL, String unsubscribeURL) { this.type = type; this.messageId = messageId; this.topicArn = topicArn; this.message = message; this.timestamp = timestamp; this.signatureVersion = signatureVersion; this.signature = signature; this.signingCertURL = signingCertURL; this.token = token; this.subject = subject; this.subscribeURL = subscribeURL; this.unsubscribeURL = unsubscribeURL; } public SnsNotification() { } /** * The type of message. For a unsubscribe confirmation, the type is UnsubscribeConfirmation. */ public String getType() { return type; } public void setType(String type) { this.type = type; } /** * A Universally Unique Identifier, unique for each message published. For a message that Amazon SNS resends during a retry, the message ID of the original message is used. */ public String getMessageId() { return messageId; } public void setMessageId(String messageId) { this.messageId = messageId; } /** * The Amazon Resource Name (ARN) for the topic that this endpoint has been unsubscribed from. */ public String getTopicArn() { return topicArn; } public void setTopicArn(String topicArn) { this.topicArn = topicArn; } /** * A string that describes the message. */ public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } /** * The time (GMT) when the unsubscribe confirmation was sent. */ public String getTimestamp() { return timestamp; } public void setTimestamp(String timestamp) { this.timestamp = timestamp; } /** * Version of the Amazon SNS signature used. */ public String getSignatureVersion() { return signatureVersion; } public void setSignatureVersion(String signatureVersion) { this.signatureVersion = signatureVersion; } /** * Base64-encoded 'SHA1withRSA' signature of the Message, MessageId, Type, Timestamp, and TopicArn values. */ public String getSignature() { return signature; } public void setSignature(String signature) { this.signature = signature; } /** * The URL to the certificate that was used to sign the message. */ public String getSigningCertURL() { return signingCertURL; } public void setSigningCertURL(String signingCertURL) { this.signingCertURL = signingCertURL; } /** * A value you can use with the ConfirmSubscription action to re-confirm the subscription. Alternatively, you can simply visit the SubscribeURL. */ public String getToken() { return token; } public void setToken(String token) { this.token = token; } /** * The Subject parameter specified when the notification was published to the topic. Note that this is an optional parameter. If no Subject was specified, then this name/value pair does not appear in this JSON document. */ public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } /** * The URL that you must visit in order to re-confirm the subscription. Alternatively, you can instead use the Token with the ConfirmSubscription action to re-confirm the subscription. */ public String getSubscribeURL() { return subscribeURL; } public void setSubscribeURL(String subscribeURL) { this.subscribeURL = subscribeURL; } /** * A URL that you can use to unsubscribe the endpoint from this topic. If you visit this URL, Amazon SNS unsubscribes the endpoint and stops sending notifications to this endpoint. */ public String getUnsubscribeURL() { return unsubscribeURL; } public void setUnsubscribeURL(String unsubscribeURL) { this.unsubscribeURL = unsubscribeURL; } }