commonMain.aws.sdk.kotlin.services.snowball.model.DescribeAddressesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS Kotlin client for Snowball
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeAddressesResponse private constructor(builder: Builder) {
/**
* The Snow device shipping addresses that were created for this account.
*/
public val addresses: List? = builder.addresses
/**
* HTTP requests are stateless. If you use the automatically generated `NextToken` value in your next `DescribeAddresses` call, your list of returned addresses will start from this point in the array.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.DescribeAddressesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAddressesResponse(")
append("addresses=$addresses,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addresses?.hashCode() ?: 0
result = 31 * result + (nextToken?.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 DescribeAddressesResponse
if (addresses != other.addresses) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.DescribeAddressesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Snow device shipping addresses that were created for this account.
*/
public var addresses: List? = null
/**
* HTTP requests are stateless. If you use the automatically generated `NextToken` value in your next `DescribeAddresses` call, your list of returned addresses will start from this point in the array.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.DescribeAddressesResponse) : this() {
this.addresses = x.addresses
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.DescribeAddressesResponse = DescribeAddressesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy