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

commonMain.aws.sdk.kotlin.services.datazone.model.FormOutput.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



/**
 * The details of a metadata form.
 */
public class FormOutput private constructor(builder: Builder) {
    /**
     * The content of the metadata form.
     */
    public val content: kotlin.String? = builder.content
    /**
     * The name of the metadata form.
     */
    public val formName: kotlin.String = requireNotNull(builder.formName) { "A non-null value must be provided for formName" }
    /**
     * The name of the metadata form type.
     */
    public val typeName: kotlin.String? = builder.typeName
    /**
     * The revision of the metadata form 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.FormOutput = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("FormOutput(")
        append("content=$content,")
        append("formName=$formName,")
        append("typeName=*** Sensitive Data Redacted ***,")
        append("typeRevision=$typeRevision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = content?.hashCode() ?: 0
        result = 31 * result + (formName.hashCode())
        result = 31 * result + (typeName?.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 FormOutput

        if (content != other.content) return false
        if (formName != other.formName) return false
        if (typeName != other.typeName) return false
        if (typeRevision != other.typeRevision) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.FormOutput = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The content of the metadata form.
         */
        public var content: kotlin.String? = null
        /**
         * The name of the metadata form.
         */
        public var formName: kotlin.String? = null
        /**
         * The name of the metadata form type.
         */
        public var typeName: kotlin.String? = null
        /**
         * The revision of the metadata form type.
         */
        public var typeRevision: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.FormOutput) : this() {
            this.content = x.content
            this.formName = x.formName
            this.typeName = x.typeName
            this.typeRevision = x.typeRevision
        }

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

        internal fun correctErrors(): Builder {
            if (formName == null) formName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy