
commonMain.aws.sdk.kotlin.services.drs.model.RecoveryInstanceProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.drs.model
/**
* Properties of the Recovery Instance machine.
*/
public class RecoveryInstanceProperties private constructor(builder: Builder) {
/**
* An array of CPUs.
*/
public val cpus: List? = builder.cpus
/**
* An array of disks.
*/
public val disks: List? = builder.disks
/**
* Hints used to uniquely identify a machine.
*/
public val identificationHints: aws.sdk.kotlin.services.drs.model.IdentificationHints? = builder.identificationHints
/**
* The date and time the Recovery Instance properties were last updated on.
*/
public val lastUpdatedDateTime: kotlin.String? = builder.lastUpdatedDateTime
/**
* An array of network interfaces.
*/
public val networkInterfaces: List? = builder.networkInterfaces
/**
* Operating system.
*/
public val os: aws.sdk.kotlin.services.drs.model.Os? = builder.os
/**
* The amount of RAM in bytes.
*/
public val ramBytes: kotlin.Long = builder.ramBytes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.drs.model.RecoveryInstanceProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecoveryInstanceProperties(")
append("cpus=$cpus,")
append("disks=$disks,")
append("identificationHints=$identificationHints,")
append("lastUpdatedDateTime=$lastUpdatedDateTime,")
append("networkInterfaces=$networkInterfaces,")
append("os=$os,")
append("ramBytes=$ramBytes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cpus?.hashCode() ?: 0
result = 31 * result + (disks?.hashCode() ?: 0)
result = 31 * result + (identificationHints?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedDateTime?.hashCode() ?: 0)
result = 31 * result + (networkInterfaces?.hashCode() ?: 0)
result = 31 * result + (os?.hashCode() ?: 0)
result = 31 * result + (ramBytes.hashCode())
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 RecoveryInstanceProperties
if (cpus != other.cpus) return false
if (disks != other.disks) return false
if (identificationHints != other.identificationHints) return false
if (lastUpdatedDateTime != other.lastUpdatedDateTime) return false
if (networkInterfaces != other.networkInterfaces) return false
if (os != other.os) return false
if (ramBytes != other.ramBytes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.drs.model.RecoveryInstanceProperties = Builder(this).apply(block).build()
public class Builder {
/**
* An array of CPUs.
*/
public var cpus: List? = null
/**
* An array of disks.
*/
public var disks: List? = null
/**
* Hints used to uniquely identify a machine.
*/
public var identificationHints: aws.sdk.kotlin.services.drs.model.IdentificationHints? = null
/**
* The date and time the Recovery Instance properties were last updated on.
*/
public var lastUpdatedDateTime: kotlin.String? = null
/**
* An array of network interfaces.
*/
public var networkInterfaces: List? = null
/**
* Operating system.
*/
public var os: aws.sdk.kotlin.services.drs.model.Os? = null
/**
* The amount of RAM in bytes.
*/
public var ramBytes: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.drs.model.RecoveryInstanceProperties) : this() {
this.cpus = x.cpus
this.disks = x.disks
this.identificationHints = x.identificationHints
this.lastUpdatedDateTime = x.lastUpdatedDateTime
this.networkInterfaces = x.networkInterfaces
this.os = x.os
this.ramBytes = x.ramBytes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.drs.model.RecoveryInstanceProperties = RecoveryInstanceProperties(this)
/**
* construct an [aws.sdk.kotlin.services.drs.model.IdentificationHints] inside the given [block]
*/
public fun identificationHints(block: aws.sdk.kotlin.services.drs.model.IdentificationHints.Builder.() -> kotlin.Unit) {
this.identificationHints = aws.sdk.kotlin.services.drs.model.IdentificationHints.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.drs.model.Os] inside the given [block]
*/
public fun os(block: aws.sdk.kotlin.services.drs.model.Os.Builder.() -> kotlin.Unit) {
this.os = aws.sdk.kotlin.services.drs.model.Os.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy