
commonMain.aws.sdk.kotlin.services.fis.model.ExperimentTemplate.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes an experiment template.
*/
public class ExperimentTemplate private constructor(builder: Builder) {
/**
* The actions for the experiment.
*/
public val actions: Map? = builder.actions
/**
* The Amazon Resource Name (ARN) of the experiment template.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time the experiment template was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The description for the experiment template.
*/
public val description: kotlin.String? = builder.description
/**
* The experiment options for an experiment template.
*/
public val experimentOptions: aws.sdk.kotlin.services.fis.model.ExperimentTemplateExperimentOptions? = builder.experimentOptions
/**
* The ID of the experiment template.
*/
public val id: kotlin.String? = builder.id
/**
* The time the experiment template was last updated.
*/
public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime
/**
* The configuration for experiment logging.
*/
public val logConfiguration: aws.sdk.kotlin.services.fis.model.ExperimentTemplateLogConfiguration? = builder.logConfiguration
/**
* The Amazon Resource Name (ARN) of an IAM role.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The stop conditions for the experiment.
*/
public val stopConditions: List? = builder.stopConditions
/**
* The tags for the experiment template.
*/
public val tags: Map? = builder.tags
/**
* The count of target account configurations for the experiment template.
*/
public val targetAccountConfigurationsCount: kotlin.Long? = builder.targetAccountConfigurationsCount
/**
* 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.ExperimentTemplate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExperimentTemplate(")
append("actions=$actions,")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("description=$description,")
append("experimentOptions=$experimentOptions,")
append("id=$id,")
append("lastUpdateTime=$lastUpdateTime,")
append("logConfiguration=$logConfiguration,")
append("roleArn=$roleArn,")
append("stopConditions=$stopConditions,")
append("tags=$tags,")
append("targetAccountConfigurationsCount=$targetAccountConfigurationsCount,")
append("targets=$targets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actions?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (experimentOptions?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastUpdateTime?.hashCode() ?: 0)
result = 31 * result + (logConfiguration?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (stopConditions?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (targetAccountConfigurationsCount?.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 ExperimentTemplate
if (actions != other.actions) return false
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (experimentOptions != other.experimentOptions) return false
if (id != other.id) return false
if (lastUpdateTime != other.lastUpdateTime) return false
if (logConfiguration != other.logConfiguration) return false
if (roleArn != other.roleArn) return false
if (stopConditions != other.stopConditions) return false
if (tags != other.tags) return false
if (targetAccountConfigurationsCount != other.targetAccountConfigurationsCount) return false
if (targets != other.targets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.ExperimentTemplate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The actions for the experiment.
*/
public var actions: Map? = null
/**
* The Amazon Resource Name (ARN) of the experiment template.
*/
public var arn: kotlin.String? = null
/**
* The time the experiment template was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description for the experiment template.
*/
public var description: kotlin.String? = null
/**
* The experiment options for an experiment template.
*/
public var experimentOptions: aws.sdk.kotlin.services.fis.model.ExperimentTemplateExperimentOptions? = null
/**
* The ID of the experiment template.
*/
public var id: kotlin.String? = null
/**
* The time the experiment template was last updated.
*/
public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The configuration for experiment logging.
*/
public var logConfiguration: aws.sdk.kotlin.services.fis.model.ExperimentTemplateLogConfiguration? = null
/**
* The Amazon Resource Name (ARN) of an IAM role.
*/
public var roleArn: kotlin.String? = null
/**
* The stop conditions for the experiment.
*/
public var stopConditions: List? = null
/**
* The tags for the experiment template.
*/
public var tags: Map? = null
/**
* The count of target account configurations for the experiment template.
*/
public var targetAccountConfigurationsCount: kotlin.Long? = null
/**
* The targets for the experiment.
*/
public var targets: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.ExperimentTemplate) : this() {
this.actions = x.actions
this.arn = x.arn
this.creationTime = x.creationTime
this.description = x.description
this.experimentOptions = x.experimentOptions
this.id = x.id
this.lastUpdateTime = x.lastUpdateTime
this.logConfiguration = x.logConfiguration
this.roleArn = x.roleArn
this.stopConditions = x.stopConditions
this.tags = x.tags
this.targetAccountConfigurationsCount = x.targetAccountConfigurationsCount
this.targets = x.targets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.ExperimentTemplate = ExperimentTemplate(this)
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentTemplateExperimentOptions] inside the given [block]
*/
public fun experimentOptions(block: aws.sdk.kotlin.services.fis.model.ExperimentTemplateExperimentOptions.Builder.() -> kotlin.Unit) {
this.experimentOptions = aws.sdk.kotlin.services.fis.model.ExperimentTemplateExperimentOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentTemplateLogConfiguration] inside the given [block]
*/
public fun logConfiguration(block: aws.sdk.kotlin.services.fis.model.ExperimentTemplateLogConfiguration.Builder.() -> kotlin.Unit) {
this.logConfiguration = aws.sdk.kotlin.services.fis.model.ExperimentTemplateLogConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy