
commonMain.aws.sdk.kotlin.services.mgn.model.SourceProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Source server properties.
*/
class SourceProperties private constructor(builder: Builder) {
/**
* Source Server CPUs.
*/
val cpus: List? = builder.cpus
/**
* Source Server disks.
*/
val disks: List? = builder.disks
/**
* Source server identification hints.
*/
val identificationHints: aws.sdk.kotlin.services.mgn.model.IdentificationHints? = builder.identificationHints
/**
* Source server last update date and time.
*/
val lastUpdatedDateTime: kotlin.String? = builder.lastUpdatedDateTime
/**
* Source server network interfaces.
*/
val networkInterfaces: List? = builder.networkInterfaces
/**
* Source server OS.
*/
val os: aws.sdk.kotlin.services.mgn.model.Os? = builder.os
/**
* Source server RAM in bytes.
*/
val ramBytes: kotlin.Long = builder.ramBytes
/**
* Source server recommended instance type.
*/
val recommendedInstanceType: kotlin.String? = builder.recommendedInstanceType
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.SourceProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceProperties(")
append("cpus=$cpus,")
append("disks=$disks,")
append("identificationHints=$identificationHints,")
append("lastUpdatedDateTime=$lastUpdatedDateTime,")
append("networkInterfaces=$networkInterfaces,")
append("os=$os,")
append("ramBytes=$ramBytes,")
append("recommendedInstanceType=$recommendedInstanceType)")
}
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())
result = 31 * result + (recommendedInstanceType?.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 SourceProperties
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
if (recommendedInstanceType != other.recommendedInstanceType) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.SourceProperties = Builder(this).apply(block).build()
class Builder {
/**
* Source Server CPUs.
*/
var cpus: List? = null
/**
* Source Server disks.
*/
var disks: List? = null
/**
* Source server identification hints.
*/
var identificationHints: aws.sdk.kotlin.services.mgn.model.IdentificationHints? = null
/**
* Source server last update date and time.
*/
var lastUpdatedDateTime: kotlin.String? = null
/**
* Source server network interfaces.
*/
var networkInterfaces: List? = null
/**
* Source server OS.
*/
var os: aws.sdk.kotlin.services.mgn.model.Os? = null
/**
* Source server RAM in bytes.
*/
var ramBytes: kotlin.Long = 0L
/**
* Source server recommended instance type.
*/
var recommendedInstanceType: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.SourceProperties) : 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
this.recommendedInstanceType = x.recommendedInstanceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.SourceProperties = SourceProperties(this)
/**
* construct an [aws.sdk.kotlin.services.mgn.model.IdentificationHints] inside the given [block]
*/
fun identificationHints(block: aws.sdk.kotlin.services.mgn.model.IdentificationHints.Builder.() -> kotlin.Unit) {
this.identificationHints = aws.sdk.kotlin.services.mgn.model.IdentificationHints.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mgn.model.Os] inside the given [block]
*/
fun os(block: aws.sdk.kotlin.services.mgn.model.Os.Builder.() -> kotlin.Unit) {
this.os = aws.sdk.kotlin.services.mgn.model.Os.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy