
commonMain.aws.sdk.kotlin.services.ssmcontacts.model.ActivateContactChannelRequest.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
public class ActivateContactChannelRequest private constructor(builder: Builder) {
/**
* The code sent to the contact channel when it was created in the contact.
*/
public val activationCode: kotlin.String? = builder.activationCode
/**
* The Amazon Resource Name (ARN) of the contact channel.
*/
public val contactChannelId: kotlin.String? = builder.contactChannelId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmcontacts.model.ActivateContactChannelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActivateContactChannelRequest(")
append("activationCode=$activationCode,")
append("contactChannelId=$contactChannelId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = activationCode?.hashCode() ?: 0
result = 31 * result + (contactChannelId?.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 ActivateContactChannelRequest
if (activationCode != other.activationCode) return false
if (contactChannelId != other.contactChannelId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmcontacts.model.ActivateContactChannelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The code sent to the contact channel when it was created in the contact.
*/
public var activationCode: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the contact channel.
*/
public var contactChannelId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmcontacts.model.ActivateContactChannelRequest) : this() {
this.activationCode = x.activationCode
this.contactChannelId = x.contactChannelId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmcontacts.model.ActivateContactChannelRequest = ActivateContactChannelRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy