commonMain.aws.sdk.kotlin.services.fms.model.PutAdminAccountRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class PutAdminAccountRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. For more information about Organizations, see [Managing the Amazon Web Services Accounts in Your Organization](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts.html).
*/
public val adminAccount: kotlin.String? = builder.adminAccount
/**
* Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role.
*/
public val adminScope: aws.sdk.kotlin.services.fms.model.AdminScope? = builder.adminScope
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.PutAdminAccountRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutAdminAccountRequest(")
append("adminAccount=$adminAccount,")
append("adminScope=$adminScope")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adminAccount?.hashCode() ?: 0
result = 31 * result + (adminScope?.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 PutAdminAccountRequest
if (adminAccount != other.adminAccount) return false
if (adminScope != other.adminScope) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.PutAdminAccountRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount. For more information about Organizations, see [Managing the Amazon Web Services Accounts in Your Organization](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts.html).
*/
public var adminAccount: kotlin.String? = null
/**
* Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role.
*/
public var adminScope: aws.sdk.kotlin.services.fms.model.AdminScope? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.PutAdminAccountRequest) : this() {
this.adminAccount = x.adminAccount
this.adminScope = x.adminScope
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.PutAdminAccountRequest = PutAdminAccountRequest(this)
/**
* construct an [aws.sdk.kotlin.services.fms.model.AdminScope] inside the given [block]
*/
public fun adminScope(block: aws.sdk.kotlin.services.fms.model.AdminScope.Builder.() -> kotlin.Unit) {
this.adminScope = aws.sdk.kotlin.services.fms.model.AdminScope.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy