commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpResponse.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 a dedicated IP address.
*/
public class GetDedicatedIpResponse private constructor(builder: Builder) {
/**
* An object that contains information about a dedicated IP address.
*/
public val dedicatedIp: aws.sdk.kotlin.services.pinpointemail.model.DedicatedIp? = builder.dedicatedIp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDedicatedIpResponse(")
append("dedicatedIp=$dedicatedIp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dedicatedIp?.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 GetDedicatedIpResponse
if (dedicatedIp != other.dedicatedIp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains information about a dedicated IP address.
*/
public var dedicatedIp: aws.sdk.kotlin.services.pinpointemail.model.DedicatedIp? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpResponse) : this() {
this.dedicatedIp = x.dedicatedIp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDedicatedIpResponse = GetDedicatedIpResponse(this)
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.DedicatedIp] inside the given [block]
*/
public fun dedicatedIp(block: aws.sdk.kotlin.services.pinpointemail.model.DedicatedIp.Builder.() -> kotlin.Unit) {
this.dedicatedIp = aws.sdk.kotlin.services.pinpointemail.model.DedicatedIp.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}