commonMain.aws.sdk.kotlin.services.route53.model.Vpc.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
/**
* (Private hosted zones only) A complex type that contains information about an Amazon VPC.
*
* If you associate a private hosted zone with an Amazon VPC when you make a [CreateHostedZone](https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateHostedZone.html) request, the following parameters are also required.
*/
public class Vpc private constructor(builder: Builder) {
/**
* (Private hosted zones only) The ID of an Amazon VPC.
*/
public val vpcId: kotlin.String? = builder.vpcId
/**
* (Private hosted zones only) The region that an Amazon VPC was created in.
*/
public val vpcRegion: aws.sdk.kotlin.services.route53.model.VpcRegion? = builder.vpcRegion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.Vpc = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Vpc(")
append("vpcId=$vpcId,")
append("vpcRegion=$vpcRegion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = vpcId?.hashCode() ?: 0
result = 31 * result + (vpcRegion?.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 Vpc
if (vpcId != other.vpcId) return false
if (vpcRegion != other.vpcRegion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.Vpc = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* (Private hosted zones only) The ID of an Amazon VPC.
*/
public var vpcId: kotlin.String? = null
/**
* (Private hosted zones only) The region that an Amazon VPC was created in.
*/
public var vpcRegion: aws.sdk.kotlin.services.route53.model.VpcRegion? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.Vpc) : this() {
this.vpcId = x.vpcId
this.vpcRegion = x.vpcRegion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.Vpc = Vpc(this)
internal fun correctErrors(): Builder {
return this
}
}
}