commonMain.aws.sdk.kotlin.services.servicediscovery.model.NamespaceProperties.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
/**
* A complex type that contains information that's specific to the namespace type.
*/
public class NamespaceProperties private constructor(builder: Builder) {
/**
* A complex type that contains the ID for the Route 53 hosted zone that Cloud Map creates when you create a namespace.
*/
public val dnsProperties: aws.sdk.kotlin.services.servicediscovery.model.DnsProperties? = builder.dnsProperties
/**
* A complex type that contains the name of an HTTP namespace.
*/
public val httpProperties: aws.sdk.kotlin.services.servicediscovery.model.HttpProperties? = builder.httpProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.servicediscovery.model.NamespaceProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NamespaceProperties(")
append("dnsProperties=$dnsProperties,")
append("httpProperties=$httpProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dnsProperties?.hashCode() ?: 0
result = 31 * result + (httpProperties?.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 NamespaceProperties
if (dnsProperties != other.dnsProperties) return false
if (httpProperties != other.httpProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.servicediscovery.model.NamespaceProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that contains the ID for the Route 53 hosted zone that Cloud Map creates when you create a namespace.
*/
public var dnsProperties: aws.sdk.kotlin.services.servicediscovery.model.DnsProperties? = null
/**
* A complex type that contains the name of an HTTP namespace.
*/
public var httpProperties: aws.sdk.kotlin.services.servicediscovery.model.HttpProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.servicediscovery.model.NamespaceProperties) : this() {
this.dnsProperties = x.dnsProperties
this.httpProperties = x.httpProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.servicediscovery.model.NamespaceProperties = NamespaceProperties(this)
/**
* construct an [aws.sdk.kotlin.services.servicediscovery.model.DnsProperties] inside the given [block]
*/
public fun dnsProperties(block: aws.sdk.kotlin.services.servicediscovery.model.DnsProperties.Builder.() -> kotlin.Unit) {
this.dnsProperties = aws.sdk.kotlin.services.servicediscovery.model.DnsProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.servicediscovery.model.HttpProperties] inside the given [block]
*/
public fun httpProperties(block: aws.sdk.kotlin.services.servicediscovery.model.HttpProperties.Builder.() -> kotlin.Unit) {
this.httpProperties = aws.sdk.kotlin.services.servicediscovery.model.HttpProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy