package de.nccloud.registry.api.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import java.io.Serializable import kotlin.String import org.threeten.bp.Instant /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * A service has been newly deployed or updated. */ @JsonIgnoreProperties(ignoreUnknown=true) data class ServiceUpsertedEvent( @JsonProperty("service") @get:JsonProperty("service") val service: Service, @JsonProperty("timestamp") @get:JsonProperty("timestamp") val timestamp: Instant ) : Serializable { fun toJsonString(): String = de.nccloud.registry.api.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ServiceUpsertedEvent = de.nccloud.registry.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, ServiceUpsertedEvent::class.java) } }