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

commonMain.aws.sdk.kotlin.services.resourcegroups.model.AccountSettings.kt Maven / Gradle / Ivy

There is a newer version: 1.3.36
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.resourcegroups.model



/**
 * The Resource Groups settings for this Amazon Web Services account.
 */
public class AccountSettings private constructor(builder: Builder) {
    /**
     * The desired target status of the group lifecycle events feature. If
     */
    public val groupLifecycleEventsDesiredStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsDesiredStatus? = builder.groupLifecycleEventsDesiredStatus
    /**
     * The current status of the group lifecycle events feature.
     */
    public val groupLifecycleEventsStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsStatus? = builder.groupLifecycleEventsStatus
    /**
     * The text of any error message occurs during an attempt to turn group lifecycle events on or off.
     */
    public val groupLifecycleEventsStatusMessage: kotlin.String? = builder.groupLifecycleEventsStatusMessage

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

    override fun toString(): kotlin.String = buildString {
        append("AccountSettings(")
        append("groupLifecycleEventsDesiredStatus=$groupLifecycleEventsDesiredStatus,")
        append("groupLifecycleEventsStatus=$groupLifecycleEventsStatus,")
        append("groupLifecycleEventsStatusMessage=$groupLifecycleEventsStatusMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = groupLifecycleEventsDesiredStatus?.hashCode() ?: 0
        result = 31 * result + (groupLifecycleEventsStatus?.hashCode() ?: 0)
        result = 31 * result + (groupLifecycleEventsStatusMessage?.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 AccountSettings

        if (groupLifecycleEventsDesiredStatus != other.groupLifecycleEventsDesiredStatus) return false
        if (groupLifecycleEventsStatus != other.groupLifecycleEventsStatus) return false
        if (groupLifecycleEventsStatusMessage != other.groupLifecycleEventsStatusMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The desired target status of the group lifecycle events feature. If
         */
        public var groupLifecycleEventsDesiredStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsDesiredStatus? = null
        /**
         * The current status of the group lifecycle events feature.
         */
        public var groupLifecycleEventsStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsStatus? = null
        /**
         * The text of any error message occurs during an attempt to turn group lifecycle events on or off.
         */
        public var groupLifecycleEventsStatusMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.AccountSettings) : this() {
            this.groupLifecycleEventsDesiredStatus = x.groupLifecycleEventsDesiredStatus
            this.groupLifecycleEventsStatus = x.groupLifecycleEventsStatus
            this.groupLifecycleEventsStatusMessage = x.groupLifecycleEventsStatusMessage
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.AccountSettings = AccountSettings(this)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy