All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aws.sdk.kotlin.services.sagemaker.model.TensorBoardOutputConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.sagemaker.model



/**
 * Configuration of storage locations for the Debugger TensorBoard output data.
 */
class TensorBoardOutputConfig private constructor(builder: BuilderImpl) {
    /**
     * Path to local storage location for tensorBoard output. Defaults to
     * /opt/ml/output/tensorboard.
     */
    val localPath: String? = builder.localPath
    /**
     * Path to Amazon S3 storage location for TensorBoard output.
     */
    val s3OutputPath: String? = builder.s3OutputPath

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): TensorBoardOutputConfig = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("TensorBoardOutputConfig(")
        append("localPath=$localPath,")
        append("s3OutputPath=$s3OutputPath)")
    }

    override fun hashCode(): kotlin.Int {
        var result = localPath?.hashCode() ?: 0
        result = 31 * result + (s3OutputPath?.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 TensorBoardOutputConfig

        if (localPath != other.localPath) return false
        if (s3OutputPath != other.s3OutputPath) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): TensorBoardOutputConfig = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): TensorBoardOutputConfig
        /**
         * Path to local storage location for tensorBoard output. Defaults to
         * /opt/ml/output/tensorboard.
         */
        fun localPath(localPath: String): FluentBuilder
        /**
         * Path to Amazon S3 storage location for TensorBoard output.
         */
        fun s3OutputPath(s3OutputPath: String): FluentBuilder
    }

    interface DslBuilder {
        /**
         * Path to local storage location for tensorBoard output. Defaults to
         * /opt/ml/output/tensorboard.
         */
        var localPath: String?
        /**
         * Path to Amazon S3 storage location for TensorBoard output.
         */
        var s3OutputPath: String?

        fun build(): TensorBoardOutputConfig
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var localPath: String? = null
        override var s3OutputPath: String? = null

        constructor(x: TensorBoardOutputConfig) : this() {
            this.localPath = x.localPath
            this.s3OutputPath = x.s3OutputPath
        }

        override fun build(): TensorBoardOutputConfig = TensorBoardOutputConfig(this)
        override fun localPath(localPath: String): FluentBuilder = apply { this.localPath = localPath }
        override fun s3OutputPath(s3OutputPath: String): FluentBuilder = apply { this.s3OutputPath = s3OutputPath }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy