
commonMain.aws.sdk.kotlin.services.auditmanager.model.GetOrganizationAdminAccountResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.auditmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetOrganizationAdminAccountResponse private constructor(builder: Builder) {
/**
* The identifier for the administrator account.
*/
public val adminAccountId: kotlin.String? = builder.adminAccountId
/**
* The identifier for the organization.
*/
public val organizationId: kotlin.String? = builder.organizationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.GetOrganizationAdminAccountResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetOrganizationAdminAccountResponse(")
append("adminAccountId=$adminAccountId,")
append("organizationId=$organizationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adminAccountId?.hashCode() ?: 0
result = 31 * result + (organizationId?.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 GetOrganizationAdminAccountResponse
if (adminAccountId != other.adminAccountId) return false
if (organizationId != other.organizationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.GetOrganizationAdminAccountResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier for the administrator account.
*/
public var adminAccountId: kotlin.String? = null
/**
* The identifier for the organization.
*/
public var organizationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.GetOrganizationAdminAccountResponse) : this() {
this.adminAccountId = x.adminAccountId
this.organizationId = x.organizationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.GetOrganizationAdminAccountResponse = GetOrganizationAdminAccountResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy