commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobInputConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakergeospatial-jvm Show documentation
Show all versions of sagemakergeospatial-jvm Show documentation
The AWS SDK for Kotlin client for SageMaker Geospatial
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The input structure for the InputConfig in a VectorEnrichmentJob.
*/
public class VectorEnrichmentJobInputConfig private constructor(builder: Builder) {
/**
* The input structure for the data source that represents the storage type of the input data objects.
*/
public val dataSourceConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobDataSourceConfigInput? = builder.dataSourceConfig
/**
* The input structure that defines the data source file type.
*/
public val documentType: aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobDocumentType = requireNotNull(builder.documentType) { "A non-null value must be provided for documentType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobInputConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VectorEnrichmentJobInputConfig(")
append("dataSourceConfig=$dataSourceConfig,")
append("documentType=$documentType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataSourceConfig?.hashCode() ?: 0
result = 31 * result + (documentType.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 VectorEnrichmentJobInputConfig
if (dataSourceConfig != other.dataSourceConfig) return false
if (documentType != other.documentType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobInputConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The input structure for the data source that represents the storage type of the input data objects.
*/
public var dataSourceConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobDataSourceConfigInput? = null
/**
* The input structure that defines the data source file type.
*/
public var documentType: aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobDocumentType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobInputConfig) : this() {
this.dataSourceConfig = x.dataSourceConfig
this.documentType = x.documentType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.VectorEnrichmentJobInputConfig = VectorEnrichmentJobInputConfig(this)
internal fun correctErrors(): Builder {
if (documentType == null) documentType = VectorEnrichmentJobDocumentType.SdkUnknown("no value provided")
return this
}
}
}