commonMain.aws.sdk.kotlin.services.account.model.AlternateContact.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of account-jvm Show documentation
Show all versions of account-jvm Show documentation
The AWS SDK for Kotlin client for Account
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.account.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure that contains the details of an alternate contact associated with an Amazon Web Services account
*/
public class AlternateContact private constructor(builder: Builder) {
/**
* The type of alternate contact.
*/
public val alternateContactType: aws.sdk.kotlin.services.account.model.AlternateContactType? = builder.alternateContactType
/**
* The email address associated with this alternate contact.
*/
public val emailAddress: kotlin.String? = builder.emailAddress
/**
* The name associated with this alternate contact.
*/
public val name: kotlin.String? = builder.name
/**
* The phone number associated with this alternate contact.
*/
public val phoneNumber: kotlin.String? = builder.phoneNumber
/**
* The title associated with this alternate contact.
*/
public val title: kotlin.String? = builder.title
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.account.model.AlternateContact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AlternateContact(")
append("alternateContactType=$alternateContactType,")
append("emailAddress=*** Sensitive Data Redacted ***,")
append("name=*** Sensitive Data Redacted ***,")
append("phoneNumber=*** Sensitive Data Redacted ***,")
append("title=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = alternateContactType?.hashCode() ?: 0
result = 31 * result + (emailAddress?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (phoneNumber?.hashCode() ?: 0)
result = 31 * result + (title?.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 AlternateContact
if (alternateContactType != other.alternateContactType) return false
if (emailAddress != other.emailAddress) return false
if (name != other.name) return false
if (phoneNumber != other.phoneNumber) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.account.model.AlternateContact = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of alternate contact.
*/
public var alternateContactType: aws.sdk.kotlin.services.account.model.AlternateContactType? = null
/**
* The email address associated with this alternate contact.
*/
public var emailAddress: kotlin.String? = null
/**
* The name associated with this alternate contact.
*/
public var name: kotlin.String? = null
/**
* The phone number associated with this alternate contact.
*/
public var phoneNumber: kotlin.String? = null
/**
* The title associated with this alternate contact.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.account.model.AlternateContact) : this() {
this.alternateContactType = x.alternateContactType
this.emailAddress = x.emailAddress
this.name = x.name
this.phoneNumber = x.phoneNumber
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.account.model.AlternateContact = AlternateContact(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy