
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.ContactChannelAddress.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmcontacts.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details that Incident Manager uses when trying to engage the contact channel.
*/
public class ContactChannelAddress private constructor(builder: Builder) {
/**
* The format is dependent on the type of the contact channel. The following are the expected formats:
* + SMS - '+' followed by the country code and phone number
* + VOICE - '+' followed by the country code and phone number
* + EMAIL - any standard email format
*/
public val simpleAddress: kotlin.String? = builder.simpleAddress
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.ContactChannelAddress = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ContactChannelAddress(")
append("simpleAddress=$simpleAddress")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = simpleAddress?.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 ContactChannelAddress
if (simpleAddress != other.simpleAddress) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.ContactChannelAddress = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The format is dependent on the type of the contact channel. The following are the expected formats:
* + SMS - '+' followed by the country code and phone number
* + VOICE - '+' followed by the country code and phone number
* + EMAIL - any standard email format
*/
public var simpleAddress: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.ContactChannelAddress) : this() {
this.simpleAddress = x.simpleAddress
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.ContactChannelAddress = ContactChannelAddress(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy