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

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

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

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



public class GetAdminAccountResponse private constructor(builder: Builder) {
    /**
     * The account that is set as the Firewall Manager default administrator.
     */
    public val adminAccount: kotlin.String? = builder.adminAccount
    /**
     * The status of the account that you set as the Firewall Manager default administrator.
     */
    public val roleStatus: aws.sdk.kotlin.services.fms.model.AccountRoleStatus? = builder.roleStatus

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

    override fun toString(): kotlin.String = buildString {
        append("GetAdminAccountResponse(")
        append("adminAccount=$adminAccount,")
        append("roleStatus=$roleStatus")
        append(")")
    }

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

        if (adminAccount != other.adminAccount) return false
        if (roleStatus != other.roleStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * The account that is set as the Firewall Manager default administrator.
         */
        public var adminAccount: kotlin.String? = null
        /**
         * The status of the account that you set as the Firewall Manager default administrator.
         */
        public var roleStatus: aws.sdk.kotlin.services.fms.model.AccountRoleStatus? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy