commonMain.aws.sdk.kotlin.services.shield.model.EmergencyContact.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
/**
* Contact information that the SRT can use to contact you if you have proactive engagement enabled, for escalations to the SRT and to initiate proactive customer support.
*/
public class EmergencyContact private constructor(builder: Builder) {
/**
* Additional notes regarding the contact.
*/
public val contactNotes: kotlin.String? = builder.contactNotes
/**
* The email address for the contact.
*/
public val emailAddress: kotlin.String? = builder.emailAddress
/**
* The phone number for the contact.
*/
public val phoneNumber: kotlin.String? = builder.phoneNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.EmergencyContact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EmergencyContact(")
append("contactNotes=$contactNotes,")
append("emailAddress=$emailAddress,")
append("phoneNumber=$phoneNumber)")
}
override fun hashCode(): kotlin.Int {
var result = contactNotes?.hashCode() ?: 0
result = 31 * result + (emailAddress?.hashCode() ?: 0)
result = 31 * result + (phoneNumber?.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 EmergencyContact
if (contactNotes != other.contactNotes) return false
if (emailAddress != other.emailAddress) return false
if (phoneNumber != other.phoneNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.EmergencyContact = Builder(this).apply(block).build()
public class Builder {
/**
* Additional notes regarding the contact.
*/
public var contactNotes: kotlin.String? = null
/**
* The email address for the contact.
*/
public var emailAddress: kotlin.String? = null
/**
* The phone number for the contact.
*/
public var phoneNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.EmergencyContact) : this() {
this.contactNotes = x.contactNotes
this.emailAddress = x.emailAddress
this.phoneNumber = x.phoneNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.EmergencyContact = EmergencyContact(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy