
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.Plan.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmcontacts.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the stages and on-call rotation teams associated with an escalation plan or engagement plan.
*/
public class Plan private constructor(builder: Builder) {
/**
* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
*/
public val rotationIds: List? = builder.rotationIds
/**
* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
*/
public val stages: List? = builder.stages
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.Plan = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Plan(")
append("rotationIds=$rotationIds,")
append("stages=$stages")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rotationIds?.hashCode() ?: 0
result = 31 * result + (stages?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as Plan
if (rotationIds != other.rotationIds) return false
if (stages != other.stages) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.Plan = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan.
*/
public var rotationIds: List? = null
/**
* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
*/
public var stages: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.Plan) : this() {
this.rotationIds = x.rotationIds
this.stages = x.stages
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.Plan = Plan(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy