
commonMain.aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateRequest.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
public class UpdateExperimentTemplateRequest private constructor(builder: Builder) {
/**
* The actions for the experiment.
*/
public val actions: Map? = builder.actions
/**
* A description for the template.
*/
public val description: kotlin.String? = builder.description
/**
* The experiment options for the experiment template.
*/
public val experimentOptions: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput? = builder.experimentOptions
/**
* The ID of the experiment template.
*/
public val id: kotlin.String? = builder.id
/**
* The configuration for experiment logging.
*/
public val logConfiguration: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateLogConfigurationInput? = builder.logConfiguration
/**
* The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The stop conditions for the experiment.
*/
public val stopConditions: List? = builder.stopConditions
/**
* The targets for the experiment.
*/
public val targets: Map? = builder.targets
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateExperimentTemplateRequest(")
append("actions=$actions,")
append("description=$description,")
append("experimentOptions=$experimentOptions,")
append("id=$id,")
append("logConfiguration=$logConfiguration,")
append("roleArn=$roleArn,")
append("stopConditions=$stopConditions,")
append("targets=$targets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actions?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (experimentOptions?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (logConfiguration?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (stopConditions?.hashCode() ?: 0)
result = 31 * result + (targets?.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 UpdateExperimentTemplateRequest
if (actions != other.actions) return false
if (description != other.description) return false
if (experimentOptions != other.experimentOptions) return false
if (id != other.id) return false
if (logConfiguration != other.logConfiguration) return false
if (roleArn != other.roleArn) return false
if (stopConditions != other.stopConditions) return false
if (targets != other.targets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The actions for the experiment.
*/
public var actions: Map? = null
/**
* A description for the template.
*/
public var description: kotlin.String? = null
/**
* The experiment options for the experiment template.
*/
public var experimentOptions: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput? = null
/**
* The ID of the experiment template.
*/
public var id: kotlin.String? = null
/**
* The configuration for experiment logging.
*/
public var logConfiguration: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateLogConfigurationInput? = null
/**
* The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.
*/
public var roleArn: kotlin.String? = null
/**
* The stop conditions for the experiment.
*/
public var stopConditions: List? = null
/**
* The targets for the experiment.
*/
public var targets: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateRequest) : this() {
this.actions = x.actions
this.description = x.description
this.experimentOptions = x.experimentOptions
this.id = x.id
this.logConfiguration = x.logConfiguration
this.roleArn = x.roleArn
this.stopConditions = x.stopConditions
this.targets = x.targets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateRequest = UpdateExperimentTemplateRequest(this)
/**
* construct an [aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput] inside the given [block]
*/
public fun experimentOptions(block: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput.Builder.() -> kotlin.Unit) {
this.experimentOptions = aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateExperimentOptionsInput.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateLogConfigurationInput] inside the given [block]
*/
public fun logConfiguration(block: aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateLogConfigurationInput.Builder.() -> kotlin.Unit) {
this.logConfiguration = aws.sdk.kotlin.services.fis.model.UpdateExperimentTemplateLogConfigurationInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy