commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdateProtectConfigurationCountryRuleSetResponse.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 UpdateProtectConfigurationCountryRuleSetResponse private constructor(builder: Builder) {
/**
* An array of ProtectConfigurationCountryRuleSetInformation containing the rules for the NumberCapability.
*/
public val countryRuleSet: Map = requireNotNull(builder.countryRuleSet) { "A non-null value must be provided for countryRuleSet" }
/**
* The number capability that was updated
*/
public val numberCapability: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.NumberCapability = requireNotNull(builder.numberCapability) { "A non-null value must be provided for numberCapability" }
/**
* The Amazon Resource Name (ARN) of the protect configuration.
*/
public val protectConfigurationArn: kotlin.String = requireNotNull(builder.protectConfigurationArn) { "A non-null value must be provided for protectConfigurationArn" }
/**
* The unique identifier for the protect configuration.
*/
public val protectConfigurationId: kotlin.String = requireNotNull(builder.protectConfigurationId) { "A non-null value must be provided for protectConfigurationId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdateProtectConfigurationCountryRuleSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProtectConfigurationCountryRuleSetResponse(")
append("countryRuleSet=$countryRuleSet,")
append("numberCapability=$numberCapability,")
append("protectConfigurationArn=$protectConfigurationArn,")
append("protectConfigurationId=$protectConfigurationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = countryRuleSet.hashCode()
result = 31 * result + (numberCapability.hashCode())
result = 31 * result + (protectConfigurationArn.hashCode())
result = 31 * result + (protectConfigurationId.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 UpdateProtectConfigurationCountryRuleSetResponse
if (countryRuleSet != other.countryRuleSet) return false
if (numberCapability != other.numberCapability) return false
if (protectConfigurationArn != other.protectConfigurationArn) return false
if (protectConfigurationId != other.protectConfigurationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdateProtectConfigurationCountryRuleSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of ProtectConfigurationCountryRuleSetInformation containing the rules for the NumberCapability.
*/
public var countryRuleSet: Map? = null
/**
* The number capability that was updated
*/
public var numberCapability: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.NumberCapability? = null
/**
* The Amazon Resource Name (ARN) of the protect configuration.
*/
public var protectConfigurationArn: kotlin.String? = null
/**
* The unique identifier for the protect configuration.
*/
public var protectConfigurationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdateProtectConfigurationCountryRuleSetResponse) : this() {
this.countryRuleSet = x.countryRuleSet
this.numberCapability = x.numberCapability
this.protectConfigurationArn = x.protectConfigurationArn
this.protectConfigurationId = x.protectConfigurationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.UpdateProtectConfigurationCountryRuleSetResponse = UpdateProtectConfigurationCountryRuleSetResponse(this)
internal fun correctErrors(): Builder {
if (countryRuleSet == null) countryRuleSet = emptyMap()
if (numberCapability == null) numberCapability = NumberCapability.SdkUnknown("no value provided")
if (protectConfigurationArn == null) protectConfigurationArn = ""
if (protectConfigurationId == null) protectConfigurationId = ""
return this
}
}
}