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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateAccountSettingsRequest private constructor(builder: Builder) {
    /**
     * Specifies whether you want to turn [group lifecycle events](https://docs.aws.amazon.com/ARG/latest/userguide/monitor-groups.html) on or off.
     *
     * You can't turn on group lifecycle events if your resource groups quota is greater than 2,000.
     */
    public val groupLifecycleEventsDesiredStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsDesiredStatus? = builder.groupLifecycleEventsDesiredStatus

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAccountSettingsRequest(")
        append("groupLifecycleEventsDesiredStatus=$groupLifecycleEventsDesiredStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = groupLifecycleEventsDesiredStatus?.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 UpdateAccountSettingsRequest

        if (groupLifecycleEventsDesiredStatus != other.groupLifecycleEventsDesiredStatus) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies whether you want to turn [group lifecycle events](https://docs.aws.amazon.com/ARG/latest/userguide/monitor-groups.html) on or off.
         *
         * You can't turn on group lifecycle events if your resource groups quota is greater than 2,000.
         */
        public var groupLifecycleEventsDesiredStatus: aws.sdk.kotlin.services.resourcegroups.model.GroupLifecycleEventsDesiredStatus? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy