aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataSource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The Amazon S3 data source.
*/
class AutoMls3DataSource private constructor(builder: Builder) {
/**
* The data type.
*/
val s3DataType: aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataType? = builder.s3DataType
/**
* The URL to the Amazon S3 data source.
*/
val s3Uri: kotlin.String? = builder.s3Uri
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AutoMls3DataSource(")
append("s3DataType=$s3DataType,")
append("s3Uri=$s3Uri)")
}
override fun hashCode(): kotlin.Int {
var result = s3DataType?.hashCode() ?: 0
result = 31 * result + (s3Uri?.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 AutoMls3DataSource
if (s3DataType != other.s3DataType) return false
if (s3Uri != other.s3Uri) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataSource = Builder(this).apply(block).build()
class Builder {
/**
* The data type.
*/
var s3DataType: aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataType? = null
/**
* The URL to the Amazon S3 data source.
*/
var s3Uri: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataSource) : this() {
this.s3DataType = x.s3DataType
this.s3Uri = x.s3Uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.AutoMls3DataSource = AutoMls3DataSource(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy