
commonMain.aws.sdk.kotlin.services.fis.model.CreateExperimentTemplateExperimentOptionsInput.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 experiment options for an experiment template.
*/
public class CreateExperimentTemplateExperimentOptionsInput private constructor(builder: Builder) {
/**
* Specifies the account targeting setting for experiment options.
*/
public val accountTargeting: aws.sdk.kotlin.services.fis.model.AccountTargeting? = builder.accountTargeting
/**
* Specifies the empty target resolution mode for experiment options.
*/
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.CreateExperimentTemplateExperimentOptionsInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateExperimentTemplateExperimentOptionsInput(")
append("accountTargeting=$accountTargeting,")
append("emptyTargetResolutionMode=$emptyTargetResolutionMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountTargeting?.hashCode() ?: 0
result = 31 * 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 CreateExperimentTemplateExperimentOptionsInput
if (accountTargeting != other.accountTargeting) return false
if (emptyTargetResolutionMode != other.emptyTargetResolutionMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.CreateExperimentTemplateExperimentOptionsInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the account targeting setting for experiment options.
*/
public var accountTargeting: aws.sdk.kotlin.services.fis.model.AccountTargeting? = null
/**
* Specifies the empty target resolution mode for experiment options.
*/
public var emptyTargetResolutionMode: aws.sdk.kotlin.services.fis.model.EmptyTargetResolutionMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.CreateExperimentTemplateExperimentOptionsInput) : this() {
this.accountTargeting = x.accountTargeting
this.emptyTargetResolutionMode = x.emptyTargetResolutionMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.CreateExperimentTemplateExperimentOptionsInput = CreateExperimentTemplateExperimentOptionsInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy