commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteAccountDefaultProtectConfigurationResponse.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 DeleteAccountDefaultProtectConfigurationResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the account default protect configuration.
*/
public val defaultProtectConfigurationArn: kotlin.String = requireNotNull(builder.defaultProtectConfigurationArn) { "A non-null value must be provided for defaultProtectConfigurationArn" }
/**
* The unique identifier of the account default protect configuration.
*/
public val defaultProtectConfigurationId: kotlin.String = requireNotNull(builder.defaultProtectConfigurationId) { "A non-null value must be provided for defaultProtectConfigurationId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteAccountDefaultProtectConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteAccountDefaultProtectConfigurationResponse(")
append("defaultProtectConfigurationArn=$defaultProtectConfigurationArn,")
append("defaultProtectConfigurationId=$defaultProtectConfigurationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultProtectConfigurationArn.hashCode()
result = 31 * result + (defaultProtectConfigurationId.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 DeleteAccountDefaultProtectConfigurationResponse
if (defaultProtectConfigurationArn != other.defaultProtectConfigurationArn) return false
if (defaultProtectConfigurationId != other.defaultProtectConfigurationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteAccountDefaultProtectConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the account default protect configuration.
*/
public var defaultProtectConfigurationArn: kotlin.String? = null
/**
* The unique identifier of the account default protect configuration.
*/
public var defaultProtectConfigurationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteAccountDefaultProtectConfigurationResponse) : this() {
this.defaultProtectConfigurationArn = x.defaultProtectConfigurationArn
this.defaultProtectConfigurationId = x.defaultProtectConfigurationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteAccountDefaultProtectConfigurationResponse = DeleteAccountDefaultProtectConfigurationResponse(this)
internal fun correctErrors(): Builder {
if (defaultProtectConfigurationArn == null) defaultProtectConfigurationArn = ""
if (defaultProtectConfigurationId == null) defaultProtectConfigurationId = ""
return this
}
}
}