commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DescribeOptedOutNumbersResponse.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 DescribeOptedOutNumbersResponse private constructor(builder: Builder) {
/**
* The token to be used for the next set of paginated results. If this field is empty then there are no more results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The Amazon Resource Name (ARN) of the OptOutList.
*/
public val optOutListArn: kotlin.String? = builder.optOutListArn
/**
* The name of the OptOutList.
*/
public val optOutListName: kotlin.String? = builder.optOutListName
/**
* An array of OptedOutNumbersInformation objects that provide information about the requested OptedOutNumbers.
*/
public val optedOutNumbers: List? = builder.optedOutNumbers
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DescribeOptedOutNumbersResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeOptedOutNumbersResponse(")
append("nextToken=$nextToken,")
append("optOutListArn=$optOutListArn,")
append("optOutListName=$optOutListName,")
append("optedOutNumbers=$optedOutNumbers")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (optOutListArn?.hashCode() ?: 0)
result = 31 * result + (optOutListName?.hashCode() ?: 0)
result = 31 * result + (optedOutNumbers?.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 DescribeOptedOutNumbersResponse
if (nextToken != other.nextToken) return false
if (optOutListArn != other.optOutListArn) return false
if (optOutListName != other.optOutListName) return false
if (optedOutNumbers != other.optedOutNumbers) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DescribeOptedOutNumbersResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The token to be used for the next set of paginated results. If this field is empty then there are no more results.
*/
public var nextToken: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the OptOutList.
*/
public var optOutListArn: kotlin.String? = null
/**
* The name of the OptOutList.
*/
public var optOutListName: kotlin.String? = null
/**
* An array of OptedOutNumbersInformation objects that provide information about the requested OptedOutNumbers.
*/
public var optedOutNumbers: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DescribeOptedOutNumbersResponse) : this() {
this.nextToken = x.nextToken
this.optOutListArn = x.optOutListArn
this.optOutListName = x.optOutListName
this.optedOutNumbers = x.optedOutNumbers
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.DescribeOptedOutNumbersResponse = DescribeOptedOutNumbersResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}