commonMain.aws.sdk.kotlin.services.backupgateway.model.GetVirtualMachineResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backupgateway-jvm Show documentation
Show all versions of backupgateway-jvm Show documentation
The AWS SDK for Kotlin client for Backup Gateway
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backupgateway.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetVirtualMachineResponse private constructor(builder: Builder) {
/**
* This object contains the basic attributes of `VirtualMachine` contained by the output of `GetVirtualMachine`
*/
public val virtualMachine: aws.sdk.kotlin.services.backupgateway.model.VirtualMachineDetails? = builder.virtualMachine
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backupgateway.model.GetVirtualMachineResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetVirtualMachineResponse(")
append("virtualMachine=$virtualMachine")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = virtualMachine?.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 GetVirtualMachineResponse
if (virtualMachine != other.virtualMachine) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backupgateway.model.GetVirtualMachineResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This object contains the basic attributes of `VirtualMachine` contained by the output of `GetVirtualMachine`
*/
public var virtualMachine: aws.sdk.kotlin.services.backupgateway.model.VirtualMachineDetails? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backupgateway.model.GetVirtualMachineResponse) : this() {
this.virtualMachine = x.virtualMachine
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backupgateway.model.GetVirtualMachineResponse = GetVirtualMachineResponse(this)
/**
* construct an [aws.sdk.kotlin.services.backupgateway.model.VirtualMachineDetails] inside the given [block]
*/
public fun virtualMachine(block: aws.sdk.kotlin.services.backupgateway.model.VirtualMachineDetails.Builder.() -> kotlin.Unit) {
this.virtualMachine = aws.sdk.kotlin.services.backupgateway.model.VirtualMachineDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}