commonMain.aws.sdk.kotlin.services.fms.model.GetAdminScopeResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class GetAdminScopeResponse private constructor(builder: Builder) {
/**
* Contains details about the administrative scope of the requested account.
*/
public val adminScope: aws.sdk.kotlin.services.fms.model.AdminScope? = builder.adminScope
/**
* 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.GetAdminScopeResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAdminScopeResponse(")
append("adminScope=$adminScope,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adminScope?.hashCode() ?: 0
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 GetAdminScopeResponse
if (adminScope != other.adminScope) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.GetAdminScopeResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Contains details about the administrative scope of the requested account.
*/
public var adminScope: aws.sdk.kotlin.services.fms.model.AdminScope? = null
/**
* 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.GetAdminScopeResponse) : this() {
this.adminScope = x.adminScope
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.GetAdminScopeResponse = GetAdminScopeResponse(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