package com.teambytes.hipchat.sns.bridge.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class SnsNotification( @JsonProperty("Type") @get:JsonProperty("Type") val type: String, @JsonProperty("MessageId") @get:JsonProperty("MessageId") val messageId: String, @JsonProperty("TopicArn") @get:JsonProperty("TopicArn") val topicArn: String, @JsonProperty("Message") @get:JsonProperty("Message") val message: String, @JsonProperty("Timestamp") @get:JsonProperty("Timestamp") val timestamp: String, @JsonProperty("SignatureVersion") @get:JsonProperty("SignatureVersion") val signatureVersion: String, @JsonProperty("Signature") @get:JsonProperty("Signature") val signature: String, @JsonProperty("SigningCertURL") @get:JsonProperty("SigningCertURL") val signingCertURL: String, @JsonProperty("Token") @get:JsonProperty("Token") val token: String?, @JsonProperty("Subject") @get:JsonProperty("Subject") val subject: String?, @JsonProperty("SubscribeURL") @get:JsonProperty("SubscribeURL") val subscribeURL: String?, @JsonProperty("UnsubscribeURL") @get:JsonProperty("UnsubscribeURL") val unsubscribeURL: String? ) : Serializable { fun toJsonString(): String = com.teambytes.hipchat.sns.bridge.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): SnsNotification = com.teambytes.hipchat.sns.bridge.v0.models.JacksonObjectMapperFactory.create().readValue( json, SnsNotification::class.java) } }