commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointemail-jvm Show documentation
Show all versions of pinpointemail-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint Email
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointemail.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the dedicated IP addresses that are associated with your Amazon Pinpoint account.
*/
public class GetDedicatedIpsResponse private constructor(builder: Builder) {
/**
* A list of dedicated IP addresses that are reserved for use by your Amazon Pinpoint account.
*/
public val dedicatedIps: List? = builder.dedicatedIps
/**
* A token that indicates that there are additional dedicated IP addresses to list. To view additional addresses, issue another request to `GetDedicatedIps`, passing this token in the `NextToken` parameter.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDedicatedIpsResponse(")
append("dedicatedIps=$dedicatedIps,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dedicatedIps?.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 GetDedicatedIpsResponse
if (dedicatedIps != other.dedicatedIps) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of dedicated IP addresses that are reserved for use by your Amazon Pinpoint account.
*/
public var dedicatedIps: List? = null
/**
* A token that indicates that there are additional dedicated IP addresses to list. To view additional addresses, issue another request to `GetDedicatedIps`, passing this token in the `NextToken` parameter.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsResponse) : this() {
this.dedicatedIps = x.dedicatedIps
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsResponse = GetDedicatedIpsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}