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

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

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

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

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

/**
 * The result of a `GetDomainMaintenanceStatus` request that information about the requested action.
 */
public class GetDomainMaintenanceStatusResponse private constructor(builder: Builder) {
    /**
     * The action name.
     */
    public val action: aws.sdk.kotlin.services.opensearch.model.MaintenanceType? = builder.action
    /**
     * The time at which the action was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The node ID of the maintenance action.
     */
    public val nodeId: kotlin.String? = builder.nodeId
    /**
     * The status of the maintenance action.
     */
    public val status: aws.sdk.kotlin.services.opensearch.model.MaintenanceStatus? = builder.status
    /**
     * The status message of the maintenance action.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The time at which the action was updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("GetDomainMaintenanceStatusResponse(")
        append("action=$action,")
        append("createdAt=$createdAt,")
        append("nodeId=$nodeId,")
        append("status=$status,")
        append("statusMessage=$statusMessage,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = action?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (nodeId?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 GetDomainMaintenanceStatusResponse

        if (action != other.action) return false
        if (createdAt != other.createdAt) return false
        if (nodeId != other.nodeId) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    public class Builder {
        /**
         * The action name.
         */
        public var action: aws.sdk.kotlin.services.opensearch.model.MaintenanceType? = null
        /**
         * The time at which the action was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The node ID of the maintenance action.
         */
        public var nodeId: kotlin.String? = null
        /**
         * The status of the maintenance action.
         */
        public var status: aws.sdk.kotlin.services.opensearch.model.MaintenanceStatus? = null
        /**
         * The status message of the maintenance action.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The time at which the action was updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.GetDomainMaintenanceStatusResponse) : this() {
            this.action = x.action
            this.createdAt = x.createdAt
            this.nodeId = x.nodeId
            this.status = x.status
            this.statusMessage = x.statusMessage
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy