commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteProtectConfigurationRuleSetNumberOverrideRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteProtectConfigurationRuleSetNumberOverrideRequest private constructor(builder: Builder) {
/**
* The destination phone number in E.164 format.
*/
public val destinationPhoneNumber: kotlin.String? = builder.destinationPhoneNumber
/**
* The unique identifier for the protect configuration.
*/
public val protectConfigurationId: kotlin.String? = builder.protectConfigurationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteProtectConfigurationRuleSetNumberOverrideRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteProtectConfigurationRuleSetNumberOverrideRequest(")
append("destinationPhoneNumber=$destinationPhoneNumber,")
append("protectConfigurationId=$protectConfigurationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationPhoneNumber?.hashCode() ?: 0
result = 31 * result + (protectConfigurationId?.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 DeleteProtectConfigurationRuleSetNumberOverrideRequest
if (destinationPhoneNumber != other.destinationPhoneNumber) return false
if (protectConfigurationId != other.protectConfigurationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteProtectConfigurationRuleSetNumberOverrideRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The destination phone number in E.164 format.
*/
public var destinationPhoneNumber: 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.DeleteProtectConfigurationRuleSetNumberOverrideRequest) : this() {
this.destinationPhoneNumber = x.destinationPhoneNumber
this.protectConfigurationId = x.protectConfigurationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DeleteProtectConfigurationRuleSetNumberOverrideRequest = DeleteProtectConfigurationRuleSetNumberOverrideRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy