
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.PreviewOverride.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about contacts and times that an on-call override replaces.
*/
public class PreviewOverride private constructor(builder: Builder) {
/**
* Information about the time a rotation override would end.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* Information about contacts to add to an on-call rotation override.
*/
public val newMembers: List? = builder.newMembers
/**
* Information about the time a rotation override would begin.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.PreviewOverride = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PreviewOverride(")
append("endTime=$endTime,")
append("newMembers=$newMembers,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (newMembers?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 PreviewOverride
if (endTime != other.endTime) return false
if (newMembers != other.newMembers) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.PreviewOverride = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the time a rotation override would end.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about contacts to add to an on-call rotation override.
*/
public var newMembers: List? = null
/**
* Information about the time a rotation override would begin.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.PreviewOverride) : this() {
this.endTime = x.endTime
this.newMembers = x.newMembers
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.PreviewOverride = PreviewOverride(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy