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

commonMain.aws.sdk.kotlin.services.opensearch.model.WindowStartTime.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.opensearch.model



/**
 * The desired start time for an [off-peak maintenance window](https://docs.aws.amazon.com/opensearch-service/latest/APIReference/API_OffPeakWindow.html).
 */
public class WindowStartTime private constructor(builder: Builder) {
    /**
     * The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time. For example, `17` refers to 5:00 P.M. UTC.
     */
    public val hours: kotlin.Long = builder.hours
    /**
     * The start minute of the window, in UTC.
     */
    public val minutes: kotlin.Long = builder.minutes

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

    override fun toString(): kotlin.String = buildString {
        append("WindowStartTime(")
        append("hours=$hours,")
        append("minutes=$minutes")
        append(")")
    }

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

        if (hours != other.hours) return false
        if (minutes != other.minutes) return false

        return true
    }

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

    public class Builder {
        /**
         * The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time. For example, `17` refers to 5:00 P.M. UTC.
         */
        public var hours: kotlin.Long = 0L
        /**
         * The start minute of the window, in UTC.
         */
        public var minutes: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.WindowStartTime) : this() {
            this.hours = x.hours
            this.minutes = x.minutes
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy