
commonMain.aws.sdk.kotlin.services.lightsail.model.InstanceSnapshotInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
/**
* Describes an instance snapshot.
*/
public class InstanceSnapshotInfo private constructor(builder: Builder) {
/**
* The blueprint ID from which the source instance (`os_debian_8_3`).
*/
public val fromBlueprintId: kotlin.String? = builder.fromBlueprintId
/**
* The bundle ID from which the source instance was created (`micro_1_0`).
*/
public val fromBundleId: kotlin.String? = builder.fromBundleId
/**
* A list of objects describing the disks that were attached to the source instance.
*/
public val fromDiskInfo: List? = builder.fromDiskInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.InstanceSnapshotInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceSnapshotInfo(")
append("fromBlueprintId=$fromBlueprintId,")
append("fromBundleId=$fromBundleId,")
append("fromDiskInfo=$fromDiskInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fromBlueprintId?.hashCode() ?: 0
result = 31 * result + (fromBundleId?.hashCode() ?: 0)
result = 31 * result + (fromDiskInfo?.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 InstanceSnapshotInfo
if (fromBlueprintId != other.fromBlueprintId) return false
if (fromBundleId != other.fromBundleId) return false
if (fromDiskInfo != other.fromDiskInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.InstanceSnapshotInfo = Builder(this).apply(block).build()
public class Builder {
/**
* The blueprint ID from which the source instance (`os_debian_8_3`).
*/
public var fromBlueprintId: kotlin.String? = null
/**
* The bundle ID from which the source instance was created (`micro_1_0`).
*/
public var fromBundleId: kotlin.String? = null
/**
* A list of objects describing the disks that were attached to the source instance.
*/
public var fromDiskInfo: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.InstanceSnapshotInfo) : this() {
this.fromBlueprintId = x.fromBlueprintId
this.fromBundleId = x.fromBundleId
this.fromDiskInfo = x.fromDiskInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.InstanceSnapshotInfo = InstanceSnapshotInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy