
commonMain.aws.sdk.kotlin.services.lightsail.model.AutoSnapshotDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes an automatic snapshot.
*/
public class AutoSnapshotDetails private constructor(builder: Builder) {
/**
* The timestamp when the automatic snapshot was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The date of the automatic snapshot in `YYYY-MM-DD` format.
*/
public val date: kotlin.String? = builder.date
/**
* An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
*/
public val fromAttachedDisks: List? = builder.fromAttachedDisks
/**
* The status of the automatic snapshot.
*/
public val status: aws.sdk.kotlin.services.lightsail.model.AutoSnapshotStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.AutoSnapshotDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AutoSnapshotDetails(")
append("createdAt=$createdAt,")
append("date=$date,")
append("fromAttachedDisks=$fromAttachedDisks,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (date?.hashCode() ?: 0)
result = 31 * result + (fromAttachedDisks?.hashCode() ?: 0)
result = 31 * result + (status?.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 AutoSnapshotDetails
if (createdAt != other.createdAt) return false
if (date != other.date) return false
if (fromAttachedDisks != other.fromAttachedDisks) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.AutoSnapshotDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp when the automatic snapshot was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date of the automatic snapshot in `YYYY-MM-DD` format.
*/
public var date: kotlin.String? = null
/**
* An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.
*/
public var fromAttachedDisks: List? = null
/**
* The status of the automatic snapshot.
*/
public var status: aws.sdk.kotlin.services.lightsail.model.AutoSnapshotStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.AutoSnapshotDetails) : this() {
this.createdAt = x.createdAt
this.date = x.date
this.fromAttachedDisks = x.fromAttachedDisks
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.AutoSnapshotDetails = AutoSnapshotDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy