commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteVerifiedDestinationNumberResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class DeleteVerifiedDestinationNumberResponse private constructor(builder: Builder) {
/**
* The time when the destination phone number was created, in [UNIX epoch time](https://www.epochconverter.com/) format.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createdTimestamp) { "A non-null value must be provided for createdTimestamp" }
/**
* The verified destination phone number, in E.164 format.
*/
public val destinationPhoneNumber: kotlin.String = requireNotNull(builder.destinationPhoneNumber) { "A non-null value must be provided for destinationPhoneNumber" }
/**
* The Amazon Resource Name (ARN) for the verified destination phone number.
*/
public val verifiedDestinationNumberArn: kotlin.String = requireNotNull(builder.verifiedDestinationNumberArn) { "A non-null value must be provided for verifiedDestinationNumberArn" }
/**
* The unique identifier for the verified destination phone number.
*/
public val verifiedDestinationNumberId: kotlin.String = requireNotNull(builder.verifiedDestinationNumberId) { "A non-null value must be provided for verifiedDestinationNumberId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteVerifiedDestinationNumberResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteVerifiedDestinationNumberResponse(")
append("createdTimestamp=$createdTimestamp,")
append("destinationPhoneNumber=$destinationPhoneNumber,")
append("verifiedDestinationNumberArn=$verifiedDestinationNumberArn,")
append("verifiedDestinationNumberId=$verifiedDestinationNumberId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimestamp.hashCode()
result = 31 * result + (destinationPhoneNumber.hashCode())
result = 31 * result + (verifiedDestinationNumberArn.hashCode())
result = 31 * result + (verifiedDestinationNumberId.hashCode())
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 DeleteVerifiedDestinationNumberResponse
if (createdTimestamp != other.createdTimestamp) return false
if (destinationPhoneNumber != other.destinationPhoneNumber) return false
if (verifiedDestinationNumberArn != other.verifiedDestinationNumberArn) return false
if (verifiedDestinationNumberId != other.verifiedDestinationNumberId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteVerifiedDestinationNumberResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time when the destination phone number was created, in [UNIX epoch time](https://www.epochconverter.com/) format.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The verified destination phone number, in E.164 format.
*/
public var destinationPhoneNumber: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the verified destination phone number.
*/
public var verifiedDestinationNumberArn: kotlin.String? = null
/**
* The unique identifier for the verified destination phone number.
*/
public var verifiedDestinationNumberId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteVerifiedDestinationNumberResponse) : this() {
this.createdTimestamp = x.createdTimestamp
this.destinationPhoneNumber = x.destinationPhoneNumber
this.verifiedDestinationNumberArn = x.verifiedDestinationNumberArn
this.verifiedDestinationNumberId = x.verifiedDestinationNumberId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteVerifiedDestinationNumberResponse = DeleteVerifiedDestinationNumberResponse(this)
internal fun correctErrors(): Builder {
if (createdTimestamp == null) createdTimestamp = Instant.fromEpochSeconds(0)
if (destinationPhoneNumber == null) destinationPhoneNumber = ""
if (verifiedDestinationNumberArn == null) verifiedDestinationNumberArn = ""
if (verifiedDestinationNumberId == null) verifiedDestinationNumberId = ""
return this
}
}
}