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

commonMain.aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespaceChange.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.servicediscovery.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Updated properties for the public DNS namespace.
 */
public class PublicDnsNamespaceChange private constructor(builder: Builder) {
    /**
     * An updated description for the public DNS namespace.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Properties to be updated in the public DNS namespace.
     */
    public val properties: aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespacePropertiesChange? = builder.properties

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

    override fun toString(): kotlin.String = buildString {
        append("PublicDnsNamespaceChange(")
        append("description=$description,")
        append("properties=$properties")
        append(")")
    }

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

        if (description != other.description) return false
        if (properties != other.properties) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An updated description for the public DNS namespace.
         */
        public var description: kotlin.String? = null
        /**
         * Properties to be updated in the public DNS namespace.
         */
        public var properties: aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespacePropertiesChange? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespaceChange) : this() {
            this.description = x.description
            this.properties = x.properties
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespacePropertiesChange] inside the given [block]
         */
        public fun properties(block: aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespacePropertiesChange.Builder.() -> kotlin.Unit) {
            this.properties = aws.sdk.kotlin.services.servicediscovery.model.PublicDnsNamespacePropertiesChange.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy