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

commonMain.aws.sdk.kotlin.services.fms.model.AdminAccountSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.fms.model



/**
 * Contains high level information about the Firewall Manager administrator account.
 */
public class AdminAccountSummary private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account ID of the Firewall Manager administrator's account.
     */
    public val adminAccount: kotlin.String? = builder.adminAccount
    /**
     * A boolean value that indicates if the administrator is the default administrator. If true, then this is the default administrator account. The default administrator can manage third-party firewalls and has full administrative scope. There is only one default administrator account per organization. For information about Firewall Manager default administrator accounts, see [Managing Firewall Manager administrators](https://docs.aws.amazon.com/waf/latest/developerguide/fms-administrators.html) in the *Firewall Manager Developer Guide*.
     */
    public val defaultAdmin: kotlin.Boolean = builder.defaultAdmin
    /**
     * The current status of the request to onboard a member account as an Firewall Manager administator.
     * + `ONBOARDING` - The account is onboarding to Firewall Manager as an administrator.
     * + `ONBOARDING_COMPLETE` - Firewall Manager The account is onboarded to Firewall Manager as an administrator, and can perform actions on the resources defined in their AdminScope.
     * + `OFFBOARDING` - The account is being removed as an Firewall Manager administrator.
     * + `OFFBOARDING_COMPLETE` - The account has been removed as an Firewall Manager administrator.
     */
    public val status: aws.sdk.kotlin.services.fms.model.OrganizationStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("AdminAccountSummary(")
        append("adminAccount=$adminAccount,")
        append("defaultAdmin=$defaultAdmin,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = adminAccount?.hashCode() ?: 0
        result = 31 * result + (defaultAdmin.hashCode())
        result = 31 * result + (status?.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 AdminAccountSummary

        if (adminAccount != other.adminAccount) return false
        if (defaultAdmin != other.defaultAdmin) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Web Services account ID of the Firewall Manager administrator's account.
         */
        public var adminAccount: kotlin.String? = null
        /**
         * A boolean value that indicates if the administrator is the default administrator. If true, then this is the default administrator account. The default administrator can manage third-party firewalls and has full administrative scope. There is only one default administrator account per organization. For information about Firewall Manager default administrator accounts, see [Managing Firewall Manager administrators](https://docs.aws.amazon.com/waf/latest/developerguide/fms-administrators.html) in the *Firewall Manager Developer Guide*.
         */
        public var defaultAdmin: kotlin.Boolean = false
        /**
         * The current status of the request to onboard a member account as an Firewall Manager administator.
         * + `ONBOARDING` - The account is onboarding to Firewall Manager as an administrator.
         * + `ONBOARDING_COMPLETE` - Firewall Manager The account is onboarded to Firewall Manager as an administrator, and can perform actions on the resources defined in their AdminScope.
         * + `OFFBOARDING` - The account is being removed as an Firewall Manager administrator.
         * + `OFFBOARDING_COMPLETE` - The account has been removed as an Firewall Manager administrator.
         */
        public var status: aws.sdk.kotlin.services.fms.model.OrganizationStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fms.model.AdminAccountSummary) : this() {
            this.adminAccount = x.adminAccount
            this.defaultAdmin = x.defaultAdmin
            this.status = x.status
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy