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