commonMain.aws.sdk.kotlin.services.datazone.model.CreateGlossaryRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateGlossaryRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The description of this business glossary.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the Amazon DataZone domain in which this business glossary is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The name of this business glossary.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the project that currently owns business glossary.
*/
public val owningProjectIdentifier: kotlin.String? = builder.owningProjectIdentifier
/**
* The status of this business glossary.
*/
public val status: aws.sdk.kotlin.services.datazone.model.GlossaryStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateGlossaryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateGlossaryRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("name=*** Sensitive Data Redacted ***,")
append("owningProjectIdentifier=$owningProjectIdentifier,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (owningProjectIdentifier?.hashCode() ?: 0)
result = 31 * result + (status?.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 CreateGlossaryRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (name != other.name) return false
if (owningProjectIdentifier != other.owningProjectIdentifier) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateGlossaryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* The description of this business glossary.
*/
public var description: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain in which this business glossary is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The name of this business glossary.
*/
public var name: kotlin.String? = null
/**
* The ID of the project that currently owns business glossary.
*/
public var owningProjectIdentifier: kotlin.String? = null
/**
* The status of this business glossary.
*/
public var status: aws.sdk.kotlin.services.datazone.model.GlossaryStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateGlossaryRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.name = x.name
this.owningProjectIdentifier = x.owningProjectIdentifier
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateGlossaryRequest = CreateGlossaryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy