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

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

/**
 * Details about when an on-call rotation shift begins or ends.
 */
public class HandOffTime private constructor(builder: Builder) {
    /**
     * The hour when an on-call rotation shift begins or ends.
     */
    public val hourOfDay: kotlin.Int = builder.hourOfDay
    /**
     * The minute when an on-call rotation shift begins or ends.
     */
    public val minuteOfHour: kotlin.Int = builder.minuteOfHour

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.HandOffTime = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("HandOffTime(")
        append("hourOfDay=$hourOfDay,")
        append("minuteOfHour=$minuteOfHour")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = hourOfDay
        result = 31 * result + (minuteOfHour)
        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 HandOffTime

        if (hourOfDay != other.hourOfDay) return false
        if (minuteOfHour != other.minuteOfHour) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The hour when an on-call rotation shift begins or ends.
         */
        public var hourOfDay: kotlin.Int = 0
        /**
         * The minute when an on-call rotation shift begins or ends.
         */
        public var minuteOfHour: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.HandOffTime) : this() {
            this.hourOfDay = x.hourOfDay
            this.minuteOfHour = x.minuteOfHour
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy