aws.sdk.kotlin.services.sagemaker.model.ModelBiasBaselineConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The configuration for a baseline model bias job.
*/
class ModelBiasBaselineConfig private constructor(builder: BuilderImpl) {
/**
* The name of the baseline model bias job.
*/
val baseliningJobName: String? = builder.baseliningJobName
/**
* The constraints resource for a monitoring job.
*/
val constraintsResource: MonitoringConstraintsResource? = builder.constraintsResource
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ModelBiasBaselineConfig = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModelBiasBaselineConfig(")
append("baseliningJobName=$baseliningJobName,")
append("constraintsResource=$constraintsResource)")
}
override fun hashCode(): kotlin.Int {
var result = baseliningJobName?.hashCode() ?: 0
result = 31 * result + (constraintsResource?.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 ModelBiasBaselineConfig
if (baseliningJobName != other.baseliningJobName) return false
if (constraintsResource != other.constraintsResource) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ModelBiasBaselineConfig = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): ModelBiasBaselineConfig
/**
* The name of the baseline model bias job.
*/
fun baseliningJobName(baseliningJobName: String): FluentBuilder
/**
* The constraints resource for a monitoring job.
*/
fun constraintsResource(constraintsResource: MonitoringConstraintsResource): FluentBuilder
}
interface DslBuilder {
/**
* The name of the baseline model bias job.
*/
var baseliningJobName: String?
/**
* The constraints resource for a monitoring job.
*/
var constraintsResource: MonitoringConstraintsResource?
fun build(): ModelBiasBaselineConfig
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.MonitoringConstraintsResource] inside the given [block]
*/
fun constraintsResource(block: MonitoringConstraintsResource.DslBuilder.() -> kotlin.Unit) {
this.constraintsResource = MonitoringConstraintsResource.invoke(block)
}
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var baseliningJobName: String? = null
override var constraintsResource: MonitoringConstraintsResource? = null
constructor(x: ModelBiasBaselineConfig) : this() {
this.baseliningJobName = x.baseliningJobName
this.constraintsResource = x.constraintsResource
}
override fun build(): ModelBiasBaselineConfig = ModelBiasBaselineConfig(this)
override fun baseliningJobName(baseliningJobName: String): FluentBuilder = apply { this.baseliningJobName = baseliningJobName }
override fun constraintsResource(constraintsResource: MonitoringConstraintsResource): FluentBuilder = apply { this.constraintsResource = constraintsResource }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy