
commonMain.aws.sdk.kotlin.services.sso.model.AccountInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sso.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides information about your AWS account.
*/
public class AccountInfo private constructor(builder: Builder) {
/**
* The identifier of the AWS account that is assigned to the user.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The display name of the AWS account that is assigned to the user.
*/
public val accountName: kotlin.String? = builder.accountName
/**
* The email address of the AWS account that is assigned to the user.
*/
public val emailAddress: kotlin.String? = builder.emailAddress
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sso.model.AccountInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AccountInfo(")
append("accountId=$accountId,")
append("accountName=$accountName,")
append("emailAddress=$emailAddress")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (accountName?.hashCode() ?: 0)
result = 31 * result + (emailAddress?.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 AccountInfo
if (accountId != other.accountId) return false
if (accountName != other.accountName) return false
if (emailAddress != other.emailAddress) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sso.model.AccountInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the AWS account that is assigned to the user.
*/
public var accountId: kotlin.String? = null
/**
* The display name of the AWS account that is assigned to the user.
*/
public var accountName: kotlin.String? = null
/**
* The email address of the AWS account that is assigned to the user.
*/
public var emailAddress: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sso.model.AccountInfo) : this() {
this.accountId = x.accountId
this.accountName = x.accountName
this.emailAddress = x.emailAddress
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sso.model.AccountInfo = AccountInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy