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: BuilderImpl) {
/**
* The data type.
*/
val s3DataType: AutoMls3DataType? = builder.s3DataType
/**
* The URL to the Amazon S3 data source.
*/
val s3Uri: String? = builder.s3Uri
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): AutoMls3DataSource = BuilderImpl().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 (javaClass != other?.javaClass) return false
other as AutoMls3DataSource
if (s3DataType != other.s3DataType) return false
if (s3Uri != other.s3Uri) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): AutoMls3DataSource = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): AutoMls3DataSource
/**
* The data type.
*/
fun s3DataType(s3DataType: AutoMls3DataType): FluentBuilder
/**
* The URL to the Amazon S3 data source.
*/
fun s3Uri(s3Uri: String): FluentBuilder
}
interface DslBuilder {
/**
* The data type.
*/
var s3DataType: AutoMls3DataType?
/**
* The URL to the Amazon S3 data source.
*/
var s3Uri: String?
fun build(): AutoMls3DataSource
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var s3DataType: AutoMls3DataType? = null
override var s3Uri: String? = null
constructor(x: AutoMls3DataSource) : this() {
this.s3DataType = x.s3DataType
this.s3Uri = x.s3Uri
}
override fun build(): AutoMls3DataSource = AutoMls3DataSource(this)
override fun s3DataType(s3DataType: AutoMls3DataType): FluentBuilder = apply { this.s3DataType = s3DataType }
override fun s3Uri(s3Uri: String): FluentBuilder = apply { this.s3Uri = s3Uri }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy