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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.UpdateGlobalSettingsRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.wellarchitected.model



public class UpdateGlobalSettingsRequest private constructor(builder: Builder) {
    /**
     * The status of discovery support settings.
     */
    public val discoveryIntegrationStatus: aws.sdk.kotlin.services.wellarchitected.model.DiscoveryIntegrationStatus? = builder.discoveryIntegrationStatus
    /**
     * The status of organization sharing settings.
     */
    public val organizationSharingStatus: aws.sdk.kotlin.services.wellarchitected.model.OrganizationSharingStatus? = builder.organizationSharingStatus

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateGlobalSettingsRequest(")
        append("discoveryIntegrationStatus=$discoveryIntegrationStatus,")
        append("organizationSharingStatus=$organizationSharingStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = discoveryIntegrationStatus?.hashCode() ?: 0
        result = 31 * result + (organizationSharingStatus?.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 UpdateGlobalSettingsRequest

        if (discoveryIntegrationStatus != other.discoveryIntegrationStatus) return false
        if (organizationSharingStatus != other.organizationSharingStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * The status of discovery support settings.
         */
        public var discoveryIntegrationStatus: aws.sdk.kotlin.services.wellarchitected.model.DiscoveryIntegrationStatus? = null
        /**
         * The status of organization sharing settings.
         */
        public var organizationSharingStatus: aws.sdk.kotlin.services.wellarchitected.model.OrganizationSharingStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateGlobalSettingsRequest) : this() {
            this.discoveryIntegrationStatus = x.discoveryIntegrationStatus
            this.organizationSharingStatus = x.organizationSharingStatus
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy