commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdInformation.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 Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
/**
* The information for all SenderIds in an Amazon Web Services account.
*/
public class SenderIdInformation private constructor(builder: Builder) {
/**
* The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
*/
public val isoCountryCode: kotlin.String? = builder.isoCountryCode
/**
* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
*/
public val messageTypes: List? = builder.messageTypes
/**
* The monthly leasing price, in US dollars.
*/
public val monthlyLeasingPrice: kotlin.String? = builder.monthlyLeasingPrice
/**
* The alphanumeric sender ID in a specific country that you'd like to describe.
*/
public val senderId: kotlin.String? = builder.senderId
/**
* The Amazon Resource Name (ARN) associated with the SenderId.
*/
public val senderIdArn: kotlin.String? = builder.senderIdArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SenderIdInformation(")
append("isoCountryCode=$isoCountryCode,")
append("messageTypes=$messageTypes,")
append("monthlyLeasingPrice=$monthlyLeasingPrice,")
append("senderId=$senderId,")
append("senderIdArn=$senderIdArn)")
}
override fun hashCode(): kotlin.Int {
var result = isoCountryCode?.hashCode() ?: 0
result = 31 * result + (messageTypes?.hashCode() ?: 0)
result = 31 * result + (monthlyLeasingPrice?.hashCode() ?: 0)
result = 31 * result + (senderId?.hashCode() ?: 0)
result = 31 * result + (senderIdArn?.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 SenderIdInformation
if (isoCountryCode != other.isoCountryCode) return false
if (messageTypes != other.messageTypes) return false
if (monthlyLeasingPrice != other.monthlyLeasingPrice) return false
if (senderId != other.senderId) return false
if (senderIdArn != other.senderIdArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdInformation = Builder(this).apply(block).build()
public class Builder {
/**
* The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
*/
public var isoCountryCode: kotlin.String? = null
/**
* The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
*/
public var messageTypes: List? = null
/**
* The monthly leasing price, in US dollars.
*/
public var monthlyLeasingPrice: kotlin.String? = null
/**
* The alphanumeric sender ID in a specific country that you'd like to describe.
*/
public var senderId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) associated with the SenderId.
*/
public var senderIdArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdInformation) : this() {
this.isoCountryCode = x.isoCountryCode
this.messageTypes = x.messageTypes
this.monthlyLeasingPrice = x.monthlyLeasingPrice
this.senderId = x.senderId
this.senderIdArn = x.senderIdArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.SenderIdInformation = SenderIdInformation(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy