aws.sdk.kotlin.services.sagemaker.model.MonitoringResources.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* Identifies the resources to deploy for a monitoring job.
*/
class MonitoringResources private constructor(builder: Builder) {
/**
* The configuration for the cluster resources used to run the processing job.
*/
val clusterConfig: aws.sdk.kotlin.services.sagemaker.model.MonitoringClusterConfig? = builder.clusterConfig
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.MonitoringResources = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MonitoringResources(")
append("clusterConfig=$clusterConfig)")
}
override fun hashCode(): kotlin.Int {
var result = clusterConfig?.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 MonitoringResources
if (clusterConfig != other.clusterConfig) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.MonitoringResources = Builder(this).apply(block).build()
class Builder {
/**
* The configuration for the cluster resources used to run the processing job.
*/
var clusterConfig: aws.sdk.kotlin.services.sagemaker.model.MonitoringClusterConfig? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.MonitoringResources) : this() {
this.clusterConfig = x.clusterConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.MonitoringResources = MonitoringResources(this)
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.MonitoringClusterConfig] inside the given [block]
*/
fun clusterConfig(block: aws.sdk.kotlin.services.sagemaker.model.MonitoringClusterConfig.Builder.() -> kotlin.Unit) {
this.clusterConfig = aws.sdk.kotlin.services.sagemaker.model.MonitoringClusterConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy