commonMain.aws.sdk.kotlin.services.route53.model.GetHostedZoneResponse.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
// 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 contain the response to a `GetHostedZone` request.
*/
public class GetHostedZoneResponse private constructor(builder: Builder) {
/**
* A complex type that lists the Amazon Route 53 name servers for the specified hosted zone.
*/
public val delegationSet: aws.sdk.kotlin.services.route53.model.DelegationSet? = builder.delegationSet
/**
* A complex type that contains general information about the specified hosted zone.
*/
public val hostedZone: aws.sdk.kotlin.services.route53.model.HostedZone? = builder.hostedZone
/**
* A complex type that contains information about the VPCs that are associated with the specified hosted zone.
*/
public val vpcs: List? = builder.vpcs
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.GetHostedZoneResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetHostedZoneResponse(")
append("delegationSet=$delegationSet,")
append("hostedZone=$hostedZone,")
append("vpcs=$vpcs")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = delegationSet?.hashCode() ?: 0
result = 31 * result + (hostedZone?.hashCode() ?: 0)
result = 31 * result + (vpcs?.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 GetHostedZoneResponse
if (delegationSet != other.delegationSet) return false
if (hostedZone != other.hostedZone) return false
if (vpcs != other.vpcs) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.GetHostedZoneResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that lists the Amazon Route 53 name servers for the specified hosted zone.
*/
public var delegationSet: aws.sdk.kotlin.services.route53.model.DelegationSet? = null
/**
* A complex type that contains general information about the specified hosted zone.
*/
public var hostedZone: aws.sdk.kotlin.services.route53.model.HostedZone? = null
/**
* A complex type that contains information about the VPCs that are associated with the specified hosted zone.
*/
public var vpcs: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.GetHostedZoneResponse) : this() {
this.delegationSet = x.delegationSet
this.hostedZone = x.hostedZone
this.vpcs = x.vpcs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.GetHostedZoneResponse = GetHostedZoneResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.DelegationSet] inside the given [block]
*/
public fun delegationSet(block: aws.sdk.kotlin.services.route53.model.DelegationSet.Builder.() -> kotlin.Unit) {
this.delegationSet = aws.sdk.kotlin.services.route53.model.DelegationSet.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53.model.HostedZone] inside the given [block]
*/
public fun hostedZone(block: aws.sdk.kotlin.services.route53.model.HostedZone.Builder.() -> kotlin.Unit) {
this.hostedZone = aws.sdk.kotlin.services.route53.model.HostedZone.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}