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

commonMain.aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails.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.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Container for information about a configuration change happening on a domain.
 */
public class ChangeProgressDetails private constructor(builder: Builder) {
    /**
     * The ID of the configuration change.
     */
    public val changeId: kotlin.String? = builder.changeId
    /**
     * The current status of the configuration change.
     */
    public val configChangeStatus: aws.sdk.kotlin.services.opensearch.model.ConfigChangeStatus? = builder.configChangeStatus
    /**
     * The IAM principal who initiated the configuration change.
     */
    public val initiatedBy: aws.sdk.kotlin.services.opensearch.model.InitiatedBy? = builder.initiatedBy
    /**
     * The last time that the configuration change was updated.
     */
    public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
    /**
     * A message corresponding to the status of the configuration change.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The time that the configuration change was initiated, in Universal Coordinated Time (UTC).
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime

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

    override fun toString(): kotlin.String = buildString {
        append("ChangeProgressDetails(")
        append("changeId=$changeId,")
        append("configChangeStatus=$configChangeStatus,")
        append("initiatedBy=$initiatedBy,")
        append("lastUpdatedTime=$lastUpdatedTime,")
        append("message=$message,")
        append("startTime=$startTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = changeId?.hashCode() ?: 0
        result = 31 * result + (configChangeStatus?.hashCode() ?: 0)
        result = 31 * result + (initiatedBy?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (startTime?.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 ChangeProgressDetails

        if (changeId != other.changeId) return false
        if (configChangeStatus != other.configChangeStatus) return false
        if (initiatedBy != other.initiatedBy) return false
        if (lastUpdatedTime != other.lastUpdatedTime) return false
        if (message != other.message) return false
        if (startTime != other.startTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the configuration change.
         */
        public var changeId: kotlin.String? = null
        /**
         * The current status of the configuration change.
         */
        public var configChangeStatus: aws.sdk.kotlin.services.opensearch.model.ConfigChangeStatus? = null
        /**
         * The IAM principal who initiated the configuration change.
         */
        public var initiatedBy: aws.sdk.kotlin.services.opensearch.model.InitiatedBy? = null
        /**
         * The last time that the configuration change was updated.
         */
        public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A message corresponding to the status of the configuration change.
         */
        public var message: kotlin.String? = null
        /**
         * The time that the configuration change was initiated, in Universal Coordinated Time (UTC).
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails) : this() {
            this.changeId = x.changeId
            this.configChangeStatus = x.configChangeStatus
            this.initiatedBy = x.initiatedBy
            this.lastUpdatedTime = x.lastUpdatedTime
            this.message = x.message
            this.startTime = x.startTime
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy