commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteConfigurationSetResponse.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 DeleteConfigurationSetResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the deleted configuration set.
*/
public val configurationSetArn: kotlin.String? = builder.configurationSetArn
/**
* The name of the deleted configuration set.
*/
public val configurationSetName: kotlin.String? = builder.configurationSetName
/**
* The time that the deleted configuration set was created in [UNIX epoch time](https://www.epochconverter.com/) format.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The default message type of the configuration set that was deleted.
*/
public val defaultMessageType: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.MessageType? = builder.defaultMessageType
/**
* The default Sender ID of the configuration set that was deleted.
*/
public val defaultSenderId: kotlin.String? = builder.defaultSenderId
/**
* An array of any EventDestination objects that were associated with the deleted configuration set.
*/
public val eventDestinations: List? = builder.eventDestinations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteConfigurationSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteConfigurationSetResponse(")
append("configurationSetArn=$configurationSetArn,")
append("configurationSetName=$configurationSetName,")
append("createdTimestamp=$createdTimestamp,")
append("defaultMessageType=$defaultMessageType,")
append("defaultSenderId=$defaultSenderId,")
append("eventDestinations=$eventDestinations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationSetArn?.hashCode() ?: 0
result = 31 * result + (configurationSetName?.hashCode() ?: 0)
result = 31 * result + (createdTimestamp?.hashCode() ?: 0)
result = 31 * result + (defaultMessageType?.hashCode() ?: 0)
result = 31 * result + (defaultSenderId?.hashCode() ?: 0)
result = 31 * result + (eventDestinations?.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 DeleteConfigurationSetResponse
if (configurationSetArn != other.configurationSetArn) return false
if (configurationSetName != other.configurationSetName) return false
if (createdTimestamp != other.createdTimestamp) return false
if (defaultMessageType != other.defaultMessageType) return false
if (defaultSenderId != other.defaultSenderId) return false
if (eventDestinations != other.eventDestinations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteConfigurationSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the deleted configuration set.
*/
public var configurationSetArn: kotlin.String? = null
/**
* The name of the deleted configuration set.
*/
public var configurationSetName: kotlin.String? = null
/**
* The time that the deleted configuration set was created in [UNIX epoch time](https://www.epochconverter.com/) format.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The default message type of the configuration set that was deleted.
*/
public var defaultMessageType: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.MessageType? = null
/**
* The default Sender ID of the configuration set that was deleted.
*/
public var defaultSenderId: kotlin.String? = null
/**
* An array of any EventDestination objects that were associated with the deleted configuration set.
*/
public var eventDestinations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteConfigurationSetResponse) : this() {
this.configurationSetArn = x.configurationSetArn
this.configurationSetName = x.configurationSetName
this.createdTimestamp = x.createdTimestamp
this.defaultMessageType = x.defaultMessageType
this.defaultSenderId = x.defaultSenderId
this.eventDestinations = x.eventDestinations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteConfigurationSetResponse = DeleteConfigurationSetResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}