commonMain.aws.sdk.kotlin.services.snowball.model.CompatibleImage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS SDK for Kotlin client for Snowball
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A JSON-formatted object that describes a compatible Amazon Machine Image (AMI), including the ID and name for a Snow device AMI. This AMI is compatible with the device's physical hardware requirements, and it should be able to be run in an SBE1 instance on the device.
*/
public class CompatibleImage private constructor(builder: Builder) {
/**
* The unique identifier for an individual Snow device AMI.
*/
public val amiId: kotlin.String? = builder.amiId
/**
* The optional name of a compatible image.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.CompatibleImage = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CompatibleImage(")
append("amiId=$amiId,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = amiId?.hashCode() ?: 0
result = 31 * result + (name?.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 CompatibleImage
if (amiId != other.amiId) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.CompatibleImage = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for an individual Snow device AMI.
*/
public var amiId: kotlin.String? = null
/**
* The optional name of a compatible image.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.CompatibleImage) : this() {
this.amiId = x.amiId
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.CompatibleImage = CompatibleImage(this)
internal fun correctErrors(): Builder {
return this
}
}
}