commonMain.aws.sdk.kotlin.services.servicediscovery.model.HttpNamespaceChange.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 HTTP namespace.
*/
public class HttpNamespaceChange private constructor(builder: Builder) {
/**
* An updated description for the HTTP namespace.
*/
public val description: kotlin.String = requireNotNull(builder.description) { "A non-null value must be provided for description" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.servicediscovery.model.HttpNamespaceChange = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HttpNamespaceChange(")
append("description=$description")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description.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 HttpNamespaceChange
if (description != other.description) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.servicediscovery.model.HttpNamespaceChange = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An updated description for the HTTP namespace.
*/
public var description: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.servicediscovery.model.HttpNamespaceChange) : this() {
this.description = x.description
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.servicediscovery.model.HttpNamespaceChange = HttpNamespaceChange(this)
internal fun correctErrors(): Builder {
if (description == null) description = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy