package com.hbc.svc.sundial.v2.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import com.hbc.svc.sundial.v2.enums.ProcessOverlapAction import java.io.Serializable import kotlin.Boolean import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * A grouping of related tasks that are run as a single unit on the same schedule */ @JsonIgnoreProperties(ignoreUnknown=true) data class ProcessDefinition( @JsonProperty("process_definition_name") @get:JsonProperty("process_definition_name") val processDefinitionName: String, @JsonProperty("paused") @get:JsonProperty("paused") val paused: Boolean?, @JsonProperty("process_description") @get:JsonProperty("process_description") val processDescription: String?, @JsonProperty("schedule") @get:JsonProperty("schedule") val schedule: ProcessSchedule?, @JsonProperty("task_definitions") @get:JsonProperty("task_definitions") val taskDefinitions: List, @JsonProperty("overlap_action") @get:JsonProperty("overlap_action") val overlapAction: ProcessOverlapAction, @JsonProperty("notifications") @get:JsonProperty("notifications") val notifications: List? ) : Serializable { fun toJsonString(): String = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): ProcessDefinition = com.hbc.svc.sundial.v2.models.JacksonObjectMapperFactory.create().readValue( json, ProcessDefinition::class.java) } }