commonMain.aws.sdk.kotlin.services.datazone.model.CreateDomainRequest.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
public class CreateDomainRequest 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 Amazon DataZone domain.
*/
public val description: kotlin.String? = builder.description
/**
* The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the Amazon Web Services account that houses the Amazon DataZone domain.
*/
public val domainExecutionRole: kotlin.String? = builder.domainExecutionRole
/**
* The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.
*/
public val kmsKeyIdentifier: kotlin.String? = builder.kmsKeyIdentifier
/**
* The name of the Amazon DataZone domain.
*/
public val name: kotlin.String? = builder.name
/**
* The single-sign on configuration of the Amazon DataZone domain.
*/
public val singleSignOn: aws.sdk.kotlin.services.datazone.model.SingleSignOn? = builder.singleSignOn
/**
* The tags specified for the Amazon DataZone domain.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateDomainRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDomainRequest(")
append("clientToken=$clientToken,")
append("description=$description,")
append("domainExecutionRole=$domainExecutionRole,")
append("kmsKeyIdentifier=$kmsKeyIdentifier,")
append("name=$name,")
append("singleSignOn=$singleSignOn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainExecutionRole?.hashCode() ?: 0)
result = 31 * result + (kmsKeyIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (singleSignOn?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateDomainRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (domainExecutionRole != other.domainExecutionRole) return false
if (kmsKeyIdentifier != other.kmsKeyIdentifier) return false
if (name != other.name) return false
if (singleSignOn != other.singleSignOn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateDomainRequest = Builder(this).apply(block).build()
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 Amazon DataZone domain.
*/
public var description: kotlin.String? = null
/**
* The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the Amazon Web Services account that houses the Amazon DataZone domain.
*/
public var domainExecutionRole: kotlin.String? = null
/**
* The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.
*/
public var kmsKeyIdentifier: kotlin.String? = null
/**
* The name of the Amazon DataZone domain.
*/
public var name: kotlin.String? = null
/**
* The single-sign on configuration of the Amazon DataZone domain.
*/
public var singleSignOn: aws.sdk.kotlin.services.datazone.model.SingleSignOn? = null
/**
* The tags specified for the Amazon DataZone domain.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateDomainRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.domainExecutionRole = x.domainExecutionRole
this.kmsKeyIdentifier = x.kmsKeyIdentifier
this.name = x.name
this.singleSignOn = x.singleSignOn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateDomainRequest = CreateDomainRequest(this)
/**
* construct an [aws.sdk.kotlin.services.datazone.model.SingleSignOn] inside the given [block]
*/
public fun singleSignOn(block: aws.sdk.kotlin.services.datazone.model.SingleSignOn.Builder.() -> kotlin.Unit) {
this.singleSignOn = aws.sdk.kotlin.services.datazone.model.SingleSignOn.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy