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

commonMain.aws.sdk.kotlin.services.redshift.model.DeferredMaintenanceWindow.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Describes a deferred maintenance window
 */
public class DeferredMaintenanceWindow private constructor(builder: Builder) {
    /**
     * A timestamp for the end of the time period when we defer maintenance.
     */
    public val deferMaintenanceEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deferMaintenanceEndTime
    /**
     * A unique identifier for the maintenance window.
     */
    public val deferMaintenanceIdentifier: kotlin.String? = builder.deferMaintenanceIdentifier
    /**
     * A timestamp for the beginning of the time period when we defer maintenance.
     */
    public val deferMaintenanceStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deferMaintenanceStartTime

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

    override fun toString(): kotlin.String = buildString {
        append("DeferredMaintenanceWindow(")
        append("deferMaintenanceEndTime=$deferMaintenanceEndTime,")
        append("deferMaintenanceIdentifier=$deferMaintenanceIdentifier,")
        append("deferMaintenanceStartTime=$deferMaintenanceStartTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deferMaintenanceEndTime?.hashCode() ?: 0
        result = 31 * result + (deferMaintenanceIdentifier?.hashCode() ?: 0)
        result = 31 * result + (deferMaintenanceStartTime?.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 DeferredMaintenanceWindow

        if (deferMaintenanceEndTime != other.deferMaintenanceEndTime) return false
        if (deferMaintenanceIdentifier != other.deferMaintenanceIdentifier) return false
        if (deferMaintenanceStartTime != other.deferMaintenanceStartTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A timestamp for the end of the time period when we defer maintenance.
         */
        public var deferMaintenanceEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A unique identifier for the maintenance window.
         */
        public var deferMaintenanceIdentifier: kotlin.String? = null
        /**
         * A timestamp for the beginning of the time period when we defer maintenance.
         */
        public var deferMaintenanceStartTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.DeferredMaintenanceWindow) : this() {
            this.deferMaintenanceEndTime = x.deferMaintenanceEndTime
            this.deferMaintenanceIdentifier = x.deferMaintenanceIdentifier
            this.deferMaintenanceStartTime = x.deferMaintenanceStartTime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy