All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.GetAssetResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.time.Instant

public class GetAssetResponse private constructor(builder: Builder) {
    /**
     * The timestamp of when the asset was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The Amazon DataZone user who created the asset.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The description of the Amazon DataZone asset.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the Amazon DataZone domain to which the asset belongs.
     */
    public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
    /**
     * The external ID of the asset.
     */
    public val externalIdentifier: kotlin.String? = builder.externalIdentifier
    /**
     * The timestamp of when the first revision of the asset was created.
     */
    public val firstRevisionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.firstRevisionCreatedAt
    /**
     * The Amazon DataZone user who created the first revision of the asset.
     */
    public val firstRevisionCreatedBy: kotlin.String? = builder.firstRevisionCreatedBy
    /**
     * The metadata forms attached to the asset.
     */
    public val formsOutput: List = requireNotNull(builder.formsOutput) { "A non-null value must be provided for formsOutput" }
    /**
     * The business glossary terms attached to the asset.
     */
    public val glossaryTerms: List? = builder.glossaryTerms
    /**
     * The ID of the asset.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The listing of the asset.
     */
    public val listing: aws.sdk.kotlin.services.datazone.model.AssetListingDetails? = builder.listing
    /**
     * The name of the asset.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The ID of the project that owns the asset.
     */
    public val owningProjectId: kotlin.String = requireNotNull(builder.owningProjectId) { "A non-null value must be provided for owningProjectId" }
    /**
     * The read-only metadata forms attached to the asset.
     */
    public val readOnlyFormsOutput: List? = builder.readOnlyFormsOutput
    /**
     * The revision of the asset.
     */
    public val revision: kotlin.String = requireNotNull(builder.revision) { "A non-null value must be provided for revision" }
    /**
     * The ID of the asset type.
     */
    public val typeIdentifier: kotlin.String = requireNotNull(builder.typeIdentifier) { "A non-null value must be provided for typeIdentifier" }
    /**
     * The revision of the asset type.
     */
    public val typeRevision: kotlin.String = requireNotNull(builder.typeRevision) { "A non-null value must be provided for typeRevision" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.GetAssetResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetAssetResponse(")
        append("createdAt=$createdAt,")
        append("createdBy=$createdBy,")
        append("description=*** Sensitive Data Redacted ***,")
        append("domainId=$domainId,")
        append("externalIdentifier=*** Sensitive Data Redacted ***,")
        append("firstRevisionCreatedAt=$firstRevisionCreatedAt,")
        append("firstRevisionCreatedBy=$firstRevisionCreatedBy,")
        append("formsOutput=$formsOutput,")
        append("glossaryTerms=$glossaryTerms,")
        append("id=$id,")
        append("listing=$listing,")
        append("name=*** Sensitive Data Redacted ***,")
        append("owningProjectId=$owningProjectId,")
        append("readOnlyFormsOutput=$readOnlyFormsOutput,")
        append("revision=$revision,")
        append("typeIdentifier=$typeIdentifier,")
        append("typeRevision=$typeRevision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainId.hashCode())
        result = 31 * result + (externalIdentifier?.hashCode() ?: 0)
        result = 31 * result + (firstRevisionCreatedAt?.hashCode() ?: 0)
        result = 31 * result + (firstRevisionCreatedBy?.hashCode() ?: 0)
        result = 31 * result + (formsOutput.hashCode())
        result = 31 * result + (glossaryTerms?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (listing?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        result = 31 * result + (owningProjectId.hashCode())
        result = 31 * result + (readOnlyFormsOutput?.hashCode() ?: 0)
        result = 31 * result + (revision.hashCode())
        result = 31 * result + (typeIdentifier.hashCode())
        result = 31 * result + (typeRevision.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 GetAssetResponse

        if (createdAt != other.createdAt) return false
        if (createdBy != other.createdBy) return false
        if (description != other.description) return false
        if (domainId != other.domainId) return false
        if (externalIdentifier != other.externalIdentifier) return false
        if (firstRevisionCreatedAt != other.firstRevisionCreatedAt) return false
        if (firstRevisionCreatedBy != other.firstRevisionCreatedBy) return false
        if (formsOutput != other.formsOutput) return false
        if (glossaryTerms != other.glossaryTerms) return false
        if (id != other.id) return false
        if (listing != other.listing) return false
        if (name != other.name) return false
        if (owningProjectId != other.owningProjectId) return false
        if (readOnlyFormsOutput != other.readOnlyFormsOutput) return false
        if (revision != other.revision) 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.GetAssetResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The timestamp of when the asset was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon DataZone user who created the asset.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The description of the Amazon DataZone asset.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the Amazon DataZone domain to which the asset belongs.
         */
        public var domainId: kotlin.String? = null
        /**
         * The external ID of the asset.
         */
        public var externalIdentifier: kotlin.String? = null
        /**
         * The timestamp of when the first revision of the asset was created.
         */
        public var firstRevisionCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon DataZone user who created the first revision of the asset.
         */
        public var firstRevisionCreatedBy: kotlin.String? = null
        /**
         * The metadata forms attached to the asset.
         */
        public var formsOutput: List? = null
        /**
         * The business glossary terms attached to the asset.
         */
        public var glossaryTerms: List? = null
        /**
         * The ID of the asset.
         */
        public var id: kotlin.String? = null
        /**
         * The listing of the asset.
         */
        public var listing: aws.sdk.kotlin.services.datazone.model.AssetListingDetails? = null
        /**
         * The name of the asset.
         */
        public var name: kotlin.String? = null
        /**
         * The ID of the project that owns the asset.
         */
        public var owningProjectId: kotlin.String? = null
        /**
         * The read-only metadata forms attached to the asset.
         */
        public var readOnlyFormsOutput: List? = null
        /**
         * The revision of the asset.
         */
        public var revision: kotlin.String? = null
        /**
         * The ID of the asset type.
         */
        public var typeIdentifier: kotlin.String? = null
        /**
         * The revision of the asset type.
         */
        public var typeRevision: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetAssetResponse) : this() {
            this.createdAt = x.createdAt
            this.createdBy = x.createdBy
            this.description = x.description
            this.domainId = x.domainId
            this.externalIdentifier = x.externalIdentifier
            this.firstRevisionCreatedAt = x.firstRevisionCreatedAt
            this.firstRevisionCreatedBy = x.firstRevisionCreatedBy
            this.formsOutput = x.formsOutput
            this.glossaryTerms = x.glossaryTerms
            this.id = x.id
            this.listing = x.listing
            this.name = x.name
            this.owningProjectId = x.owningProjectId
            this.readOnlyFormsOutput = x.readOnlyFormsOutput
            this.revision = x.revision
            this.typeIdentifier = x.typeIdentifier
            this.typeRevision = x.typeRevision
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.GetAssetResponse = GetAssetResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.datazone.model.AssetListingDetails] inside the given [block]
         */
        public fun listing(block: aws.sdk.kotlin.services.datazone.model.AssetListingDetails.Builder.() -> kotlin.Unit) {
            this.listing = aws.sdk.kotlin.services.datazone.model.AssetListingDetails.invoke(block)
        }

        internal fun correctErrors(): Builder {
            if (domainId == null) domainId = ""
            if (formsOutput == null) formsOutput = emptyList()
            if (id == null) id = ""
            if (name == null) name = ""
            if (owningProjectId == null) owningProjectId = ""
            if (revision == null) revision = ""
            if (typeIdentifier == null) typeIdentifier = ""
            if (typeRevision == null) typeRevision = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy