commonMain.aws.sdk.kotlin.services.route53.model.AssociateVpcWithHostedZoneResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A complex type that contains the response information for the `AssociateVPCWithHostedZone` request.
*/
public class AssociateVpcWithHostedZoneResponse private constructor(builder: Builder) {
/**
* A complex type that describes the changes made to your hosted zone.
*/
public val changeInfo: aws.sdk.kotlin.services.route53.model.ChangeInfo? = builder.changeInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.AssociateVpcWithHostedZoneResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateVpcWithHostedZoneResponse(")
append("changeInfo=$changeInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeInfo?.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 AssociateVpcWithHostedZoneResponse
if (changeInfo != other.changeInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.AssociateVpcWithHostedZoneResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that describes the changes made to your hosted zone.
*/
public var changeInfo: aws.sdk.kotlin.services.route53.model.ChangeInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.AssociateVpcWithHostedZoneResponse) : this() {
this.changeInfo = x.changeInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.AssociateVpcWithHostedZoneResponse = AssociateVpcWithHostedZoneResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.ChangeInfo] inside the given [block]
*/
public fun changeInfo(block: aws.sdk.kotlin.services.route53.model.ChangeInfo.Builder.() -> kotlin.Unit) {
this.changeInfo = aws.sdk.kotlin.services.route53.model.ChangeInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}