
commonMain.aws.sdk.kotlin.services.fis.model.ExperimentSummary.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
/**
* Provides a summary of an experiment.
*/
public class ExperimentSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the experiment.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time that the experiment was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The experiment options for the experiment.
*/
public val experimentOptions: aws.sdk.kotlin.services.fis.model.ExperimentOptions? = builder.experimentOptions
/**
* The ID of the experiment template.
*/
public val experimentTemplateId: kotlin.String? = builder.experimentTemplateId
/**
* The ID of the experiment.
*/
public val id: kotlin.String? = builder.id
/**
* The state of the experiment.
*/
public val state: aws.sdk.kotlin.services.fis.model.ExperimentState? = builder.state
/**
* The tags for the experiment.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.ExperimentSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExperimentSummary(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("experimentOptions=$experimentOptions,")
append("experimentTemplateId=$experimentTemplateId,")
append("id=$id,")
append("state=$state,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (experimentOptions?.hashCode() ?: 0)
result = 31 * result + (experimentTemplateId?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tags?.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 ExperimentSummary
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (experimentOptions != other.experimentOptions) return false
if (experimentTemplateId != other.experimentTemplateId) return false
if (id != other.id) return false
if (state != other.state) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.ExperimentSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the experiment.
*/
public var arn: kotlin.String? = null
/**
* The time that the experiment was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The experiment options for the experiment.
*/
public var experimentOptions: aws.sdk.kotlin.services.fis.model.ExperimentOptions? = null
/**
* The ID of the experiment template.
*/
public var experimentTemplateId: kotlin.String? = null
/**
* The ID of the experiment.
*/
public var id: kotlin.String? = null
/**
* The state of the experiment.
*/
public var state: aws.sdk.kotlin.services.fis.model.ExperimentState? = null
/**
* The tags for the experiment.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.ExperimentSummary) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.experimentOptions = x.experimentOptions
this.experimentTemplateId = x.experimentTemplateId
this.id = x.id
this.state = x.state
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.ExperimentSummary = ExperimentSummary(this)
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentOptions] inside the given [block]
*/
public fun experimentOptions(block: aws.sdk.kotlin.services.fis.model.ExperimentOptions.Builder.() -> kotlin.Unit) {
this.experimentOptions = aws.sdk.kotlin.services.fis.model.ExperimentOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fis.model.ExperimentState] inside the given [block]
*/
public fun state(block: aws.sdk.kotlin.services.fis.model.ExperimentState.Builder.() -> kotlin.Unit) {
this.state = aws.sdk.kotlin.services.fis.model.ExperimentState.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy