commonMain.aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpWarmupAttributesRequest.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 change the warm-up attributes for a dedicated IP address. This operation is useful when you want to resume the warm-up process for an existing IP address.
*/
public class PutDedicatedIpWarmupAttributesRequest private constructor(builder: Builder) {
/**
* The dedicated IP address that you want to update the warm-up attributes for.
*/
public val ip: kotlin.String? = builder.ip
/**
* The warm-up percentage that you want to associate with the dedicated IP address.
*/
public val warmupPercentage: kotlin.Int? = builder.warmupPercentage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpWarmupAttributesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutDedicatedIpWarmupAttributesRequest(")
append("ip=$ip,")
append("warmupPercentage=$warmupPercentage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ip?.hashCode() ?: 0
result = 31 * result + (warmupPercentage ?: 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 PutDedicatedIpWarmupAttributesRequest
if (ip != other.ip) return false
if (warmupPercentage != other.warmupPercentage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpWarmupAttributesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The dedicated IP address that you want to update the warm-up attributes for.
*/
public var ip: kotlin.String? = null
/**
* The warm-up percentage that you want to associate with the dedicated IP address.
*/
public var warmupPercentage: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpWarmupAttributesRequest) : this() {
this.ip = x.ip
this.warmupPercentage = x.warmupPercentage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.PutDedicatedIpWarmupAttributesRequest = PutDedicatedIpWarmupAttributesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}