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 undeployed is not reachable anymore. */ @JsonIgnoreProperties(ignoreUnknown=true) data class ServiceDeletedEvent( @JsonProperty("name") @get:JsonProperty("name") val name: String, @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): ServiceDeletedEvent = de.nccloud.registry.api.v0.models.JacksonObjectMapperFactory.create().readValue( json, ServiceDeletedEvent::class.java) } }