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

commonMain.aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.fis.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies an experiment option for an experiment template.
 */
public class UpdateExperimentTemplateExperimentOptionsInput private constructor(builder: Builder) {
    /**
     * The empty target resolution mode of the experiment template.
     */
    public val emptyTargetResolutionMode: aws.sdk.kotlin.services.fis.model.EmptyTargetResolutionMode? = builder.emptyTargetResolutionMode

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput = Builder().apply(block).build()
    }

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

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

        if (emptyTargetResolutionMode != other.emptyTargetResolutionMode) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The empty target resolution mode of the experiment template.
         */
        public var emptyTargetResolutionMode: aws.sdk.kotlin.services.fis.model.EmptyTargetResolutionMode? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput) : this() {
            this.emptyTargetResolutionMode = x.emptyTargetResolutionMode
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput = UpdateExperimentTemplateExperimentOptionsInput(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy