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

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

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

public class UpdateDomainResponse private constructor(builder: Builder) {
    /**
     * 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 identifier of the Amazon DataZone domain.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * Specifies the timestamp of when the domain was last updated.
     */
    public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
    /**
     * The name to be updated as part of the `UpdateDomain` action.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The single sign-on option of the Amazon DataZone domain.
     */
    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.UpdateDomainResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateDomainResponse(")
        append("description=$description,")
        append("domainExecutionRole=$domainExecutionRole,")
        append("id=$id,")
        append("lastUpdatedAt=$lastUpdatedAt,")
        append("name=$name,")
        append("singleSignOn=$singleSignOn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (domainExecutionRole?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (lastUpdatedAt?.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 UpdateDomainResponse

        if (description != other.description) return false
        if (domainExecutionRole != other.domainExecutionRole) return false
        if (id != other.id) return false
        if (lastUpdatedAt != other.lastUpdatedAt) 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.UpdateDomainResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * 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 identifier of the Amazon DataZone domain.
         */
        public var id: kotlin.String? = null
        /**
         * Specifies the timestamp of when the domain was last updated.
         */
        public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name to be updated as part of the `UpdateDomain` action.
         */
        public var name: kotlin.String? = null
        /**
         * The single sign-on option of the Amazon DataZone domain.
         */
        public var singleSignOn: aws.sdk.kotlin.services.datazone.model.SingleSignOn? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateDomainResponse) : this() {
            this.description = x.description
            this.domainExecutionRole = x.domainExecutionRole
            this.id = x.id
            this.lastUpdatedAt = x.lastUpdatedAt
            this.name = x.name
            this.singleSignOn = x.singleSignOn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.UpdateDomainResponse = UpdateDomainResponse(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 {
            if (id == null) id = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy