commonMain.aws.sdk.kotlin.services.datazone.model.CreateAssetRequest.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 CreateAssetRequest 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
/**
* Asset description.
*/
public val description: kotlin.String? = builder.description
/**
* Amazon DataZone domain where the asset is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The external identifier of the asset.
*/
public val externalIdentifier: kotlin.String? = builder.externalIdentifier
/**
* Metadata forms attached to the asset.
*/
public val formsInput: List? = builder.formsInput
/**
* Glossary terms attached to the asset.
*/
public val glossaryTerms: List? = builder.glossaryTerms
/**
* Asset name.
*/
public val name: kotlin.String? = builder.name
/**
* The unique identifier of the project that owns this asset.
*/
public val owningProjectIdentifier: kotlin.String? = builder.owningProjectIdentifier
/**
* The configuration of the automatically generated business-friendly metadata for the asset.
*/
public val predictionConfiguration: aws.sdk.kotlin.services.datazone.model.PredictionConfiguration? = builder.predictionConfiguration
/**
* The unique identifier of this asset's type.
*/
public val typeIdentifier: kotlin.String? = builder.typeIdentifier
/**
* The revision of this asset's type.
*/
public val typeRevision: kotlin.String? = builder.typeRevision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateAssetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAssetRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("externalIdentifier=*** Sensitive Data Redacted ***,")
append("formsInput=*** Sensitive Data Redacted ***,")
append("glossaryTerms=$glossaryTerms,")
append("name=*** Sensitive Data Redacted ***,")
append("owningProjectIdentifier=$owningProjectIdentifier,")
append("predictionConfiguration=$predictionConfiguration,")
append("typeIdentifier=$typeIdentifier,")
append("typeRevision=$typeRevision")
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 + (externalIdentifier?.hashCode() ?: 0)
result = 31 * result + (formsInput?.hashCode() ?: 0)
result = 31 * result + (glossaryTerms?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (owningProjectIdentifier?.hashCode() ?: 0)
result = 31 * result + (predictionConfiguration?.hashCode() ?: 0)
result = 31 * result + (typeIdentifier?.hashCode() ?: 0)
result = 31 * result + (typeRevision?.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 CreateAssetRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (externalIdentifier != other.externalIdentifier) return false
if (formsInput != other.formsInput) return false
if (glossaryTerms != other.glossaryTerms) return false
if (name != other.name) return false
if (owningProjectIdentifier != other.owningProjectIdentifier) return false
if (predictionConfiguration != other.predictionConfiguration) return false
if (typeIdentifier != other.typeIdentifier) return false
if (typeRevision != other.typeRevision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateAssetRequest = 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
/**
* Asset description.
*/
public var description: kotlin.String? = null
/**
* Amazon DataZone domain where the asset is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The external identifier of the asset.
*/
public var externalIdentifier: kotlin.String? = null
/**
* Metadata forms attached to the asset.
*/
public var formsInput: List? = null
/**
* Glossary terms attached to the asset.
*/
public var glossaryTerms: List? = null
/**
* Asset name.
*/
public var name: kotlin.String? = null
/**
* The unique identifier of the project that owns this asset.
*/
public var owningProjectIdentifier: kotlin.String? = null
/**
* The configuration of the automatically generated business-friendly metadata for the asset.
*/
public var predictionConfiguration: aws.sdk.kotlin.services.datazone.model.PredictionConfiguration? = null
/**
* The unique identifier of this asset's type.
*/
public var typeIdentifier: kotlin.String? = null
/**
* The revision of this asset's type.
*/
public var typeRevision: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateAssetRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.externalIdentifier = x.externalIdentifier
this.formsInput = x.formsInput
this.glossaryTerms = x.glossaryTerms
this.name = x.name
this.owningProjectIdentifier = x.owningProjectIdentifier
this.predictionConfiguration = x.predictionConfiguration
this.typeIdentifier = x.typeIdentifier
this.typeRevision = x.typeRevision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateAssetRequest = CreateAssetRequest(this)
/**
* construct an [aws.sdk.kotlin.services.datazone.model.PredictionConfiguration] inside the given [block]
*/
public fun predictionConfiguration(block: aws.sdk.kotlin.services.datazone.model.PredictionConfiguration.Builder.() -> kotlin.Unit) {
this.predictionConfiguration = aws.sdk.kotlin.services.datazone.model.PredictionConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy