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

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateDomainRequest.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.datazone.model



public class UpdateDomainRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The description to be updated as part of the `UpdateDomain` action.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The domain execution role to be updated as part of the `UpdateDomain` action.
     */
    public val domainExecutionRole: kotlin.String? = builder.domainExecutionRole
    /**
     * The ID of the Amazon Web Services domain that is to be updated.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * The name to be updated as part of the `UpdateDomain` action.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The single sign-on option to be updated as part of the `UpdateDomain` action.
     */
    public val singleSignOn: aws.sdk.kotlin.services.datazone.model.SingleSignOn? = builder.singleSignOn

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDomainRequest(")
        append("clientToken=$clientToken,")
        append("description=$description,")
        append("domainExecutionRole=$domainExecutionRole,")
        append("identifier=$identifier,")
        append("name=$name,")
        append("singleSignOn=$singleSignOn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainExecutionRole?.hashCode() ?: 0)
        result = 31 * result + (identifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (singleSignOn?.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 UpdateDomainRequest

        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (domainExecutionRole != other.domainExecutionRole) return false
        if (identifier != other.identifier) return false
        if (name != other.name) return false
        if (singleSignOn != other.singleSignOn) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The description to be updated as part of the `UpdateDomain` action.
         */
        public var description: kotlin.String? = null
        /**
         * The domain execution role to be updated as part of the `UpdateDomain` action.
         */
        public var domainExecutionRole: kotlin.String? = null
        /**
         * The ID of the Amazon Web Services domain that is to be updated.
         */
        public var identifier: kotlin.String? = null
        /**
         * The name to be updated as part of the `UpdateDomain` action.
         */
        public var name: kotlin.String? = null
        /**
         * The single sign-on option to be updated as part of the `UpdateDomain` action.
         */
        public var singleSignOn: aws.sdk.kotlin.services.datazone.model.SingleSignOn? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateDomainRequest) : this() {
            this.clientToken = x.clientToken
            this.description = x.description
            this.domainExecutionRole = x.domainExecutionRole
            this.identifier = x.identifier
            this.name = x.name
            this.singleSignOn = x.singleSignOn
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.datazone.model.SingleSignOn] inside the given [block]
         */
        public fun singleSignOn(block: aws.sdk.kotlin.services.datazone.model.SingleSignOn.Builder.() -> kotlin.Unit) {
            this.singleSignOn = aws.sdk.kotlin.services.datazone.model.SingleSignOn.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy