commonMain.aws.sdk.kotlin.services.glue.model.DynamicTransform.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the set of parameters needed to perform the dynamic transform.
*/
public class DynamicTransform private constructor(builder: Builder) {
/**
* Specifies the name of the function of the dynamic transform.
*/
public val functionName: kotlin.String = requireNotNull(builder.functionName) { "A non-null value must be provided for functionName" }
/**
* Specifies the inputs for the dynamic transform that are required.
*/
public val inputs: List = requireNotNull(builder.inputs) { "A non-null value must be provided for inputs" }
/**
* Specifies the name of the dynamic transform.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* Specifies the data schema for the dynamic transform.
*/
public val outputSchemas: List? = builder.outputSchemas
/**
* Specifies the parameters of the dynamic transform.
*/
public val parameters: List? = builder.parameters
/**
* Specifies the path of the dynamic transform source and config files.
*/
public val path: kotlin.String = requireNotNull(builder.path) { "A non-null value must be provided for path" }
/**
* Specifies the name of the dynamic transform as it appears in the Glue Studio visual editor.
*/
public val transformName: kotlin.String = requireNotNull(builder.transformName) { "A non-null value must be provided for transformName" }
/**
* This field is not used and will be deprecated in future release.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DynamicTransform = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DynamicTransform(")
append("functionName=$functionName,")
append("inputs=$inputs,")
append("name=$name,")
append("outputSchemas=$outputSchemas,")
append("parameters=$parameters,")
append("path=$path,")
append("transformName=$transformName,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = functionName.hashCode()
result = 31 * result + (inputs.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (outputSchemas?.hashCode() ?: 0)
result = 31 * result + (parameters?.hashCode() ?: 0)
result = 31 * result + (path.hashCode())
result = 31 * result + (transformName.hashCode())
result = 31 * result + (version?.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 DynamicTransform
if (functionName != other.functionName) return false
if (inputs != other.inputs) return false
if (name != other.name) return false
if (outputSchemas != other.outputSchemas) return false
if (parameters != other.parameters) return false
if (path != other.path) return false
if (transformName != other.transformName) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DynamicTransform = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the name of the function of the dynamic transform.
*/
public var functionName: kotlin.String? = null
/**
* Specifies the inputs for the dynamic transform that are required.
*/
public var inputs: List? = null
/**
* Specifies the name of the dynamic transform.
*/
public var name: kotlin.String? = null
/**
* Specifies the data schema for the dynamic transform.
*/
public var outputSchemas: List? = null
/**
* Specifies the parameters of the dynamic transform.
*/
public var parameters: List? = null
/**
* Specifies the path of the dynamic transform source and config files.
*/
public var path: kotlin.String? = null
/**
* Specifies the name of the dynamic transform as it appears in the Glue Studio visual editor.
*/
public var transformName: kotlin.String? = null
/**
* This field is not used and will be deprecated in future release.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DynamicTransform) : this() {
this.functionName = x.functionName
this.inputs = x.inputs
this.name = x.name
this.outputSchemas = x.outputSchemas
this.parameters = x.parameters
this.path = x.path
this.transformName = x.transformName
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DynamicTransform = DynamicTransform(this)
internal fun correctErrors(): Builder {
if (functionName == null) functionName = ""
if (inputs == null) inputs = emptyList()
if (name == null) name = ""
if (path == null) path = ""
if (transformName == null) transformName = ""
return this
}
}
}