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

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

public class CancelDomainConfigChangeResponse private constructor(builder: Builder) {
    /**
     * The unique identifiers of the changes that were cancelled.
     */
    public val cancelledChangeIds: List? = builder.cancelledChangeIds
    /**
     * The domain change properties that were cancelled.
     */
    public val cancelledChangeProperties: List? = builder.cancelledChangeProperties
    /**
     * Whether or not the request was a dry run. If `True`, the changes were not actually cancelled.
     */
    public val dryRun: kotlin.Boolean? = builder.dryRun

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

    override fun toString(): kotlin.String = buildString {
        append("CancelDomainConfigChangeResponse(")
        append("cancelledChangeIds=$cancelledChangeIds,")
        append("cancelledChangeProperties=$cancelledChangeProperties,")
        append("dryRun=$dryRun")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = cancelledChangeIds?.hashCode() ?: 0
        result = 31 * result + (cancelledChangeProperties?.hashCode() ?: 0)
        result = 31 * result + (dryRun?.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 CancelDomainConfigChangeResponse

        if (cancelledChangeIds != other.cancelledChangeIds) return false
        if (cancelledChangeProperties != other.cancelledChangeProperties) return false
        if (dryRun != other.dryRun) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique identifiers of the changes that were cancelled.
         */
        public var cancelledChangeIds: List? = null
        /**
         * The domain change properties that were cancelled.
         */
        public var cancelledChangeProperties: List? = null
        /**
         * Whether or not the request was a dry run. If `True`, the changes were not actually cancelled.
         */
        public var dryRun: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.CancelDomainConfigChangeResponse) : this() {
            this.cancelledChangeIds = x.cancelledChangeIds
            this.cancelledChangeProperties = x.cancelledChangeProperties
            this.dryRun = x.dryRun
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy