commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsRequest.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
/**
* A request to obtain more information about dedicated IP pools.
*/
public class GetDedicatedIpsRequest private constructor(builder: Builder) {
/**
* A token returned from a previous call to `GetDedicatedIps` to indicate the position of the dedicated IP pool in the list of IP pools.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The number of results to show in a single call to `GetDedicatedIpsRequest`. If the number of results is larger than the number you specified in this parameter, then the response includes a `NextToken` element, which you can use to obtain additional results.
*/
public val pageSize: kotlin.Int? = builder.pageSize
/**
* The name of the IP pool that the dedicated IP address is associated with.
*/
public val poolName: kotlin.String? = builder.poolName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDedicatedIpsRequest(")
append("nextToken=$nextToken,")
append("pageSize=$pageSize,")
append("poolName=$poolName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (pageSize ?: 0)
result = 31 * result + (poolName?.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 GetDedicatedIpsRequest
if (nextToken != other.nextToken) return false
if (pageSize != other.pageSize) return false
if (poolName != other.poolName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A token returned from a previous call to `GetDedicatedIps` to indicate the position of the dedicated IP pool in the list of IP pools.
*/
public var nextToken: kotlin.String? = null
/**
* The number of results to show in a single call to `GetDedicatedIpsRequest`. If the number of results is larger than the number you specified in this parameter, then the response includes a `NextToken` element, which you can use to obtain additional results.
*/
public var pageSize: kotlin.Int? = null
/**
* The name of the IP pool that the dedicated IP address is associated with.
*/
public var poolName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsRequest) : this() {
this.nextToken = x.nextToken
this.pageSize = x.pageSize
this.poolName = x.poolName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpsRequest = GetDedicatedIpsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}