
commonMain.aws.sdk.kotlin.services.quicksight.model.TemplateVersion.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A version of a template.
*/
class TemplateVersion private constructor(builder: Builder) {
/**
* The time that this template version was created.
*/
val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to new datasets matching the same schema described through this API operation.
*/
val dataSetConfigurations: List? = builder.dataSetConfigurations
/**
* The description of the template.
*/
val description: kotlin.String? = builder.description
/**
* Errors associated with this template version.
*/
val errors: List? = builder.errors
/**
* A list of the associated sheets with the unique identifier and name of each sheet.
*/
val sheets: List? = builder.sheets
/**
* The Amazon Resource Name (ARN) of an analysis or template that was used to create this template.
*/
val sourceEntityArn: kotlin.String? = builder.sourceEntityArn
/**
* The HTTP status of the request.
*/
val status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = builder.status
/**
* The ARN of the theme associated with this version of the template.
*/
val themeArn: kotlin.String? = builder.themeArn
/**
* The version number of the template version.
*/
val versionNumber: kotlin.Long? = builder.versionNumber
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.TemplateVersion = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemplateVersion(")
append("createdTime=$createdTime,")
append("dataSetConfigurations=$dataSetConfigurations,")
append("description=$description,")
append("errors=$errors,")
append("sheets=$sheets,")
append("sourceEntityArn=$sourceEntityArn,")
append("status=$status,")
append("themeArn=$themeArn,")
append("versionNumber=$versionNumber)")
}
override fun hashCode(): kotlin.Int {
var result = createdTime?.hashCode() ?: 0
result = 31 * result + (dataSetConfigurations?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (sheets?.hashCode() ?: 0)
result = 31 * result + (sourceEntityArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (themeArn?.hashCode() ?: 0)
result = 31 * result + (versionNumber?.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 TemplateVersion
if (createdTime != other.createdTime) return false
if (dataSetConfigurations != other.dataSetConfigurations) return false
if (description != other.description) return false
if (errors != other.errors) return false
if (sheets != other.sheets) return false
if (sourceEntityArn != other.sourceEntityArn) return false
if (status != other.status) return false
if (themeArn != other.themeArn) return false
if (versionNumber != other.versionNumber) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.TemplateVersion = Builder(this).apply(block).build()
class Builder {
/**
* The time that this template version was created.
*/
var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to new datasets matching the same schema described through this API operation.
*/
var dataSetConfigurations: List? = null
/**
* The description of the template.
*/
var description: kotlin.String? = null
/**
* Errors associated with this template version.
*/
var errors: List? = null
/**
* A list of the associated sheets with the unique identifier and name of each sheet.
*/
var sheets: List? = null
/**
* The Amazon Resource Name (ARN) of an analysis or template that was used to create this template.
*/
var sourceEntityArn: kotlin.String? = null
/**
* The HTTP status of the request.
*/
var status: aws.sdk.kotlin.services.quicksight.model.ResourceStatus? = null
/**
* The ARN of the theme associated with this version of the template.
*/
var themeArn: kotlin.String? = null
/**
* The version number of the template version.
*/
var versionNumber: kotlin.Long? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.TemplateVersion) : this() {
this.createdTime = x.createdTime
this.dataSetConfigurations = x.dataSetConfigurations
this.description = x.description
this.errors = x.errors
this.sheets = x.sheets
this.sourceEntityArn = x.sourceEntityArn
this.status = x.status
this.themeArn = x.themeArn
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.TemplateVersion = TemplateVersion(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy