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

commonMain.aws.sdk.kotlin.services.route53.model.HostedZoneConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show 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 an optional comment about your hosted zone. If you don't want to specify a comment, omit both the `HostedZoneConfig` and `Comment` elements.
 */
public class HostedZoneConfig private constructor(builder: Builder) {
    /**
     * Any comments that you want to include about the hosted zone.
     */
    public val comment: kotlin.String? = builder.comment
    /**
     * A value that indicates whether this is a private hosted zone.
     */
    public val privateZone: kotlin.Boolean = builder.privateZone

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

    override fun toString(): kotlin.String = buildString {
        append("HostedZoneConfig(")
        append("comment=$comment,")
        append("privateZone=$privateZone")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = comment?.hashCode() ?: 0
        result = 31 * result + (privateZone.hashCode())
        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 HostedZoneConfig

        if (comment != other.comment) return false
        if (privateZone != other.privateZone) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Any comments that you want to include about the hosted zone.
         */
        public var comment: kotlin.String? = null
        /**
         * A value that indicates whether this is a private hosted zone.
         */
        public var privateZone: kotlin.Boolean = false

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53.model.HostedZoneConfig) : this() {
            this.comment = x.comment
            this.privateZone = x.privateZone
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy