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

commonMain.aws.sdk.kotlin.services.opensearch.model.DomainMaintenanceDetails.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

/**
 * Container for the domain maintenance details.
 */
public class DomainMaintenanceDetails private constructor(builder: Builder) {
    /**
     * The name of the action.
     */
    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 name of the domain.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The ID of the requested action.
     */
    public val maintenanceId: kotlin.String? = builder.maintenanceId
    /**
     * The ID of the data node.
     */
    public val nodeId: kotlin.String? = builder.nodeId
    /**
     * The status of the action.
     */
    public val status: aws.sdk.kotlin.services.opensearch.model.MaintenanceStatus? = builder.status
    /**
     * The status message for the 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.DomainMaintenanceDetails = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DomainMaintenanceDetails(")
        append("action=$action,")
        append("createdAt=$createdAt,")
        append("domainName=$domainName,")
        append("maintenanceId=$maintenanceId,")
        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 + (domainName?.hashCode() ?: 0)
        result = 31 * result + (maintenanceId?.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 DomainMaintenanceDetails

        if (action != other.action) return false
        if (createdAt != other.createdAt) return false
        if (domainName != other.domainName) return false
        if (maintenanceId != other.maintenanceId) 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.DomainMaintenanceDetails = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The name of the action.
         */
        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 name of the domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The ID of the requested action.
         */
        public var maintenanceId: kotlin.String? = null
        /**
         * The ID of the data node.
         */
        public var nodeId: kotlin.String? = null
        /**
         * The status of the action.
         */
        public var status: aws.sdk.kotlin.services.opensearch.model.MaintenanceStatus? = null
        /**
         * The status message for the 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.DomainMaintenanceDetails) : this() {
            this.action = x.action
            this.createdAt = x.createdAt
            this.domainName = x.domainName
            this.maintenanceId = x.maintenanceId
            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.DomainMaintenanceDetails = DomainMaintenanceDetails(this)

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy