All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ssmcontacts.model.GetRotationOverrideResponse.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

public class GetRotationOverrideResponse private constructor(builder: Builder) {
    /**
     * The date and time when the override was created.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * The date and time when the override ends.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The Amazon Resource Names (ARNs) of the contacts assigned to the override of the on-call rotation.
     */
    public val newContactIds: List? = builder.newContactIds
    /**
     * The Amazon Resource Name (ARN) of the on-call rotation that was overridden.
     */
    public val rotationArn: kotlin.String? = builder.rotationArn
    /**
     * The Amazon Resource Name (ARN) of the override to an on-call rotation.
     */
    public val rotationOverrideId: kotlin.String? = builder.rotationOverrideId
    /**
     * The date and time when the override goes into effect.
     */
    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.GetRotationOverrideResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetRotationOverrideResponse(")
        append("createTime=$createTime,")
        append("endTime=$endTime,")
        append("newContactIds=$newContactIds,")
        append("rotationArn=$rotationArn,")
        append("rotationOverrideId=$rotationOverrideId,")
        append("startTime=$startTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createTime?.hashCode() ?: 0
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (newContactIds?.hashCode() ?: 0)
        result = 31 * result + (rotationArn?.hashCode() ?: 0)
        result = 31 * result + (rotationOverrideId?.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 GetRotationOverrideResponse

        if (createTime != other.createTime) return false
        if (endTime != other.endTime) return false
        if (newContactIds != other.newContactIds) return false
        if (rotationArn != other.rotationArn) return false
        if (rotationOverrideId != other.rotationOverrideId) return false
        if (startTime != other.startTime) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.GetRotationOverrideResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The date and time when the override was created.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date and time when the override ends.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Names (ARNs) of the contacts assigned to the override of the on-call rotation.
         */
        public var newContactIds: List? = null
        /**
         * The Amazon Resource Name (ARN) of the on-call rotation that was overridden.
         */
        public var rotationArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the override to an on-call rotation.
         */
        public var rotationOverrideId: kotlin.String? = null
        /**
         * The date and time when the override goes into effect.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.GetRotationOverrideResponse) : this() {
            this.createTime = x.createTime
            this.endTime = x.endTime
            this.newContactIds = x.newContactIds
            this.rotationArn = x.rotationArn
            this.rotationOverrideId = x.rotationOverrideId
            this.startTime = x.startTime
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.GetRotationOverrideResponse = GetRotationOverrideResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy