commonMain.aws.sdk.kotlin.services.datazone.model.CreateDomainUnitRequest.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 CreateDomainUnitRequest 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 the domain unit.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the domain where you want to crate a domain unit.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The name of the domain unit.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the parent domain unit.
*/
public val parentDomainUnitIdentifier: kotlin.String? = builder.parentDomainUnitIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateDomainUnitRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDomainUnitRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("name=*** Sensitive Data Redacted ***,")
append("parentDomainUnitIdentifier=$parentDomainUnitIdentifier")
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 + (parentDomainUnitIdentifier?.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 CreateDomainUnitRequest
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 (parentDomainUnitIdentifier != other.parentDomainUnitIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateDomainUnitRequest = 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 the domain unit.
*/
public var description: kotlin.String? = null
/**
* The ID of the domain where you want to crate a domain unit.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The name of the domain unit.
*/
public var name: kotlin.String? = null
/**
* The ID of the parent domain unit.
*/
public var parentDomainUnitIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateDomainUnitRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.name = x.name
this.parentDomainUnitIdentifier = x.parentDomainUnitIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateDomainUnitRequest = CreateDomainUnitRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy