All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.apprunner.model.VpcDnsTarget.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.apprunner.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * DNS Target record for a custom domain of this Amazon VPC.
 */
public class VpcDnsTarget private constructor(builder: Builder) {
    /**
     * The domain name of your target DNS that is associated with the Amazon VPC.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The ID of the Amazon VPC that is associated with the custom domain name of the target DNS.
     */
    public val vpcId: kotlin.String? = builder.vpcId
    /**
     * The Amazon Resource Name (ARN) of the VPC Ingress Connection that is associated with your service.
     */
    public val vpcIngressConnectionArn: kotlin.String? = builder.vpcIngressConnectionArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.VpcDnsTarget = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("VpcDnsTarget(")
        append("domainName=$domainName,")
        append("vpcId=$vpcId,")
        append("vpcIngressConnectionArn=$vpcIngressConnectionArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (vpcId?.hashCode() ?: 0)
        result = 31 * result + (vpcIngressConnectionArn?.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 VpcDnsTarget

        if (domainName != other.domainName) return false
        if (vpcId != other.vpcId) return false
        if (vpcIngressConnectionArn != other.vpcIngressConnectionArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.VpcDnsTarget = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The domain name of your target DNS that is associated with the Amazon VPC.
         */
        public var domainName: kotlin.String? = null
        /**
         * The ID of the Amazon VPC that is associated with the custom domain name of the target DNS.
         */
        public var vpcId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the VPC Ingress Connection that is associated with your service.
         */
        public var vpcIngressConnectionArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apprunner.model.VpcDnsTarget) : this() {
            this.domainName = x.domainName
            this.vpcId = x.vpcId
            this.vpcIngressConnectionArn = x.vpcIngressConnectionArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.apprunner.model.VpcDnsTarget = VpcDnsTarget(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy