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

aws.sdk.kotlin.services.sagemaker.model.CacheHitResult.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



/**
 * Details on the cache hit of a pipeline execution step.
 */
class CacheHitResult private constructor(builder: BuilderImpl) {
    /**
     * The Amazon Resource Name (ARN) of the pipeline execution.
     */
    val sourcePipelineExecutionArn: String? = builder.sourcePipelineExecutionArn

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

        internal fun builder(): DslBuilder = BuilderImpl()

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

    }

    override fun toString(): kotlin.String = buildString {
        append("CacheHitResult(")
        append("sourcePipelineExecutionArn=$sourcePipelineExecutionArn)")
    }

    override fun hashCode(): kotlin.Int {
        var result = sourcePipelineExecutionArn?.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 CacheHitResult

        if (sourcePipelineExecutionArn != other.sourcePipelineExecutionArn) return false

        return true
    }

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

    interface FluentBuilder {
        fun build(): CacheHitResult
        /**
         * The Amazon Resource Name (ARN) of the pipeline execution.
         */
        fun sourcePipelineExecutionArn(sourcePipelineExecutionArn: String): FluentBuilder
    }

    interface DslBuilder {
        /**
         * The Amazon Resource Name (ARN) of the pipeline execution.
         */
        var sourcePipelineExecutionArn: String?

        fun build(): CacheHitResult
    }

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

        constructor(x: CacheHitResult) : this() {
            this.sourcePipelineExecutionArn = x.sourcePipelineExecutionArn
        }

        override fun build(): CacheHitResult = CacheHitResult(this)
        override fun sourcePipelineExecutionArn(sourcePipelineExecutionArn: String): FluentBuilder = apply { this.sourcePipelineExecutionArn = sourcePipelineExecutionArn }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy