aws.sdk.kotlin.services.sagemaker.model.KernelGatewayImageConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* The configuration for the file system and kernels in a SageMaker image running as a
* KernelGateway app.
*/
class KernelGatewayImageConfig private constructor(builder: Builder) {
/**
* The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
*/
val fileSystemConfig: aws.sdk.kotlin.services.sagemaker.model.FileSystemConfig? = builder.fileSystemConfig
/**
* The specification of the Jupyter kernels in the image.
*/
val kernelSpecs: List? = builder.kernelSpecs
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.KernelGatewayImageConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KernelGatewayImageConfig(")
append("fileSystemConfig=$fileSystemConfig,")
append("kernelSpecs=$kernelSpecs)")
}
override fun hashCode(): kotlin.Int {
var result = fileSystemConfig?.hashCode() ?: 0
result = 31 * result + (kernelSpecs?.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 KernelGatewayImageConfig
if (fileSystemConfig != other.fileSystemConfig) return false
if (kernelSpecs != other.kernelSpecs) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.KernelGatewayImageConfig = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
*/
var fileSystemConfig: aws.sdk.kotlin.services.sagemaker.model.FileSystemConfig? = null
/**
* The specification of the Jupyter kernels in the image.
*/
var kernelSpecs: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.KernelGatewayImageConfig) : this() {
this.fileSystemConfig = x.fileSystemConfig
this.kernelSpecs = x.kernelSpecs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.KernelGatewayImageConfig = KernelGatewayImageConfig(this)
/**
* construct an [aws.sdk.kotlin.services.sagemaker.model.FileSystemConfig] inside the given [block]
*/
fun fileSystemConfig(block: aws.sdk.kotlin.services.sagemaker.model.FileSystemConfig.Builder.() -> kotlin.Unit) {
this.fileSystemConfig = aws.sdk.kotlin.services.sagemaker.model.FileSystemConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy