commonMain.aws.sdk.kotlin.services.datazone.model.FormEntryInput.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 the form entry.
*/
public class FormEntryInput private constructor(builder: Builder) {
/**
* Specifies whether a form entry is required.
*/
public val required: kotlin.Boolean? = builder.required
/**
* The type ID of the form entry.
*/
public val typeIdentifier: kotlin.String = requireNotNull(builder.typeIdentifier) { "A non-null value must be provided for typeIdentifier" }
/**
* The type revision of the form entry.
*/
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.FormEntryInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FormEntryInput(")
append("required=$required,")
append("typeIdentifier=$typeIdentifier,")
append("typeRevision=$typeRevision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = required?.hashCode() ?: 0
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 FormEntryInput
if (required != other.required) 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.FormEntryInput = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies whether a form entry is required.
*/
public var required: kotlin.Boolean? = null
/**
* The type ID of the form entry.
*/
public var typeIdentifier: kotlin.String? = null
/**
* The type revision of the form entry.
*/
public var typeRevision: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.FormEntryInput) : this() {
this.required = x.required
this.typeIdentifier = x.typeIdentifier
this.typeRevision = x.typeRevision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.FormEntryInput = FormEntryInput(this)
internal fun correctErrors(): Builder {
if (typeIdentifier == null) typeIdentifier = ""
if (typeRevision == null) typeRevision = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy