commonMain.aws.sdk.kotlin.services.snowball.model.EksOnDeviceServiceConfiguration.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object representing the metadata and configuration settings of EKS Anywhere on the Snow Family device.
*/
public class EksOnDeviceServiceConfiguration private constructor(builder: Builder) {
/**
* The optional version of EKS Anywhere on the Snow Family device.
*/
public val eksAnywhereVersion: kotlin.String? = builder.eksAnywhereVersion
/**
* The Kubernetes version for EKS Anywhere on the Snow Family device.
*/
public val kubernetesVersion: kotlin.String? = builder.kubernetesVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.EksOnDeviceServiceConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EksOnDeviceServiceConfiguration(")
append("eksAnywhereVersion=$eksAnywhereVersion,")
append("kubernetesVersion=$kubernetesVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eksAnywhereVersion?.hashCode() ?: 0
result = 31 * result + (kubernetesVersion?.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 EksOnDeviceServiceConfiguration
if (eksAnywhereVersion != other.eksAnywhereVersion) return false
if (kubernetesVersion != other.kubernetesVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.EksOnDeviceServiceConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The optional version of EKS Anywhere on the Snow Family device.
*/
public var eksAnywhereVersion: kotlin.String? = null
/**
* The Kubernetes version for EKS Anywhere on the Snow Family device.
*/
public var kubernetesVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.EksOnDeviceServiceConfiguration) : this() {
this.eksAnywhereVersion = x.eksAnywhereVersion
this.kubernetesVersion = x.kubernetesVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.EksOnDeviceServiceConfiguration = EksOnDeviceServiceConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}