
commonMain.aws.sdk.kotlin.services.sns.model.CheckIfPhoneNumberIsOptedOutResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
/**
* The response from the `CheckIfPhoneNumberIsOptedOut` action.
*/
public class CheckIfPhoneNumberIsOptedOutResponse private constructor(builder: Builder) {
/**
* Indicates whether the phone number is opted out:
* + `true` – The phone number is opted out, meaning you cannot publish SMS messages to it.
* + `false` – The phone number is opted in, meaning you can publish SMS messages to it.
*/
public val isOptedOut: kotlin.Boolean = builder.isOptedOut
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.CheckIfPhoneNumberIsOptedOutResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CheckIfPhoneNumberIsOptedOutResponse(")
append("isOptedOut=$isOptedOut")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isOptedOut.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 CheckIfPhoneNumberIsOptedOutResponse
if (isOptedOut != other.isOptedOut) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.CheckIfPhoneNumberIsOptedOutResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Indicates whether the phone number is opted out:
* + `true` – The phone number is opted out, meaning you cannot publish SMS messages to it.
* + `false` – The phone number is opted in, meaning you can publish SMS messages to it.
*/
public var isOptedOut: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.CheckIfPhoneNumberIsOptedOutResponse) : this() {
this.isOptedOut = x.isOptedOut
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.CheckIfPhoneNumberIsOptedOutResponse = CheckIfPhoneNumberIsOptedOutResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy