
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.ShiftDetails.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 overrides to an on-call rotation shift.
*/
public class ShiftDetails private constructor(builder: Builder) {
/**
* The Amazon Resources Names (ARNs) of the contacts who were replaced in a shift when an override was created. If the override is deleted, these contacts are restored to the shift.
*/
public val overriddenContactIds: List = requireNotNull(builder.overriddenContactIds) { "A non-null value must be provided for overriddenContactIds" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.ShiftDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ShiftDetails(")
append("overriddenContactIds=$overriddenContactIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = overriddenContactIds.hashCode()
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 ShiftDetails
if (overriddenContactIds != other.overriddenContactIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.ShiftDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resources Names (ARNs) of the contacts who were replaced in a shift when an override was created. If the override is deleted, these contacts are restored to the shift.
*/
public var overriddenContactIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.ShiftDetails) : this() {
this.overriddenContactIds = x.overriddenContactIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.ShiftDetails = ShiftDetails(this)
internal fun correctErrors(): Builder {
if (overriddenContactIds == null) overriddenContactIds = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy