commonMain.aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpInPoolRequest.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 move a dedicated IP address to a dedicated IP pool.
*/
public class PutDedicatedIpInPoolRequest private constructor(builder: Builder) {
/**
* The name of the IP pool that you want to add the dedicated IP address to. You have to specify an IP pool that already exists.
*/
public val destinationPoolName: kotlin.String? = builder.destinationPoolName
/**
* The IP address that you want to move to the dedicated IP pool. The value you specify has to be a dedicated IP address that's associated with your Amazon Pinpoint account.
*/
public val ip: kotlin.String? = builder.ip
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpInPoolRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutDedicatedIpInPoolRequest(")
append("destinationPoolName=$destinationPoolName,")
append("ip=$ip")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationPoolName?.hashCode() ?: 0
result = 31 * result + (ip?.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 PutDedicatedIpInPoolRequest
if (destinationPoolName != other.destinationPoolName) return false
if (ip != other.ip) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpInPoolRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the IP pool that you want to add the dedicated IP address to. You have to specify an IP pool that already exists.
*/
public var destinationPoolName: kotlin.String? = null
/**
* The IP address that you want to move to the dedicated IP pool. The value you specify has to be a dedicated IP address that's associated with your Amazon Pinpoint account.
*/
public var ip: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpInPoolRequest) : this() {
this.destinationPoolName = x.destinationPoolName
this.ip = x.ip
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpInPoolRequest = PutDedicatedIpInPoolRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}