commonMain.aws.sdk.kotlin.services.glue.model.TransformConfigParameter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the parameters in the config file of the dynamic transform.
*/
public class TransformConfigParameter private constructor(builder: Builder) {
/**
* Specifies whether the parameter is optional or not in the config file of the dynamic transform.
*/
public val isOptional: kotlin.Boolean? = builder.isOptional
/**
* Specifies the list type of the parameter in the config file of the dynamic transform.
*/
public val listType: aws.sdk.kotlin.services.glue.model.ParamType? = builder.listType
/**
* Specifies the name of the parameter in the config file of the dynamic transform.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* Specifies the parameter type in the config file of the dynamic transform.
*/
public val type: aws.sdk.kotlin.services.glue.model.ParamType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
/**
* Specifies the validation message in the config file of the dynamic transform.
*/
public val validationMessage: kotlin.String? = builder.validationMessage
/**
* Specifies the validation rule in the config file of the dynamic transform.
*/
public val validationRule: kotlin.String? = builder.validationRule
/**
* Specifies the value of the parameter in the config file of the dynamic transform.
*/
public val value: List? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TransformConfigParameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TransformConfigParameter(")
append("isOptional=$isOptional,")
append("listType=$listType,")
append("name=$name,")
append("type=$type,")
append("validationMessage=$validationMessage,")
append("validationRule=$validationRule,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isOptional?.hashCode() ?: 0
result = 31 * result + (listType?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (type.hashCode())
result = 31 * result + (validationMessage?.hashCode() ?: 0)
result = 31 * result + (validationRule?.hashCode() ?: 0)
result = 31 * result + (value?.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 TransformConfigParameter
if (isOptional != other.isOptional) return false
if (listType != other.listType) return false
if (name != other.name) return false
if (type != other.type) return false
if (validationMessage != other.validationMessage) return false
if (validationRule != other.validationRule) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TransformConfigParameter = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether the parameter is optional or not in the config file of the dynamic transform.
*/
public var isOptional: kotlin.Boolean? = null
/**
* Specifies the list type of the parameter in the config file of the dynamic transform.
*/
public var listType: aws.sdk.kotlin.services.glue.model.ParamType? = null
/**
* Specifies the name of the parameter in the config file of the dynamic transform.
*/
public var name: kotlin.String? = null
/**
* Specifies the parameter type in the config file of the dynamic transform.
*/
public var type: aws.sdk.kotlin.services.glue.model.ParamType? = null
/**
* Specifies the validation message in the config file of the dynamic transform.
*/
public var validationMessage: kotlin.String? = null
/**
* Specifies the validation rule in the config file of the dynamic transform.
*/
public var validationRule: kotlin.String? = null
/**
* Specifies the value of the parameter in the config file of the dynamic transform.
*/
public var value: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TransformConfigParameter) : this() {
this.isOptional = x.isOptional
this.listType = x.listType
this.name = x.name
this.type = x.type
this.validationMessage = x.validationMessage
this.validationRule = x.validationRule
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TransformConfigParameter = TransformConfigParameter(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
if (type == null) type = ParamType.SdkUnknown("no value provided")
return this
}
}
}