commonMain.aws.sdk.kotlin.services.datazone.model.FormInput.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
/**
* The details of a metadata form.
*/
public class FormInput 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 ID of the metadata form type.
*/
public val typeIdentifier: kotlin.String? = builder.typeIdentifier
/**
* 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.FormInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FormInput(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (formName.hashCode())
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 FormInput
if (content != other.content) return false
if (formName != other.formName) 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.FormInput = 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 ID of the metadata form type.
*/
public var typeIdentifier: 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.FormInput) : this() {
this.content = x.content
this.formName = x.formName
this.typeIdentifier = x.typeIdentifier
this.typeRevision = x.typeRevision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.FormInput = FormInput(this)
internal fun correctErrors(): Builder {
if (formName == null) formName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy