commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SetDefaultSenderIdRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SetDefaultSenderIdRequest private constructor(builder: Builder) {
/**
* The configuration set to updated with a new default SenderId. This field can be the ConsigurationSetName or ConfigurationSetArn.
*/
public val configurationSetName: kotlin.String? = builder.configurationSetName
/**
* The current sender ID for the configuration set. When sending a text message to a destination country which supports SenderIds, the default sender ID on the configuration set specified on SendTextMessage will be used if no dedicated origination phone numbers or registered SenderIds are available in your account, instead of a generic sender ID, such as 'NOTICE'.
*/
public val senderId: kotlin.String? = builder.senderId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SetDefaultSenderIdRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetDefaultSenderIdRequest(")
append("configurationSetName=$configurationSetName,")
append("senderId=$senderId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationSetName?.hashCode() ?: 0
result = 31 * result + (senderId?.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 SetDefaultSenderIdRequest
if (configurationSetName != other.configurationSetName) return false
if (senderId != other.senderId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SetDefaultSenderIdRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration set to updated with a new default SenderId. This field can be the ConsigurationSetName or ConfigurationSetArn.
*/
public var configurationSetName: kotlin.String? = null
/**
* The current sender ID for the configuration set. When sending a text message to a destination country which supports SenderIds, the default sender ID on the configuration set specified on SendTextMessage will be used if no dedicated origination phone numbers or registered SenderIds are available in your account, instead of a generic sender ID, such as 'NOTICE'.
*/
public var senderId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SetDefaultSenderIdRequest) : this() {
this.configurationSetName = x.configurationSetName
this.senderId = x.senderId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SetDefaultSenderIdRequest = SetDefaultSenderIdRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}