
commonMain.aws.sdk.kotlin.services.emr.model.OsRelease.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* The Amazon Linux release specified for a cluster in the RunJobFlow request.
*/
public class OsRelease private constructor(builder: Builder) {
/**
* The Amazon Linux release specified for a cluster in the RunJobFlow request. The format is as shown in *Amazon Linux 2 Release Notes*[](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20220218.html). For example, 2.0.20220218.1.
*/
public val label: kotlin.String? = builder.label
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.OsRelease = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OsRelease(")
append("label=$label)")
}
override fun hashCode(): kotlin.Int {
var result = label?.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 OsRelease
if (label != other.label) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.OsRelease = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Linux release specified for a cluster in the RunJobFlow request. The format is as shown in *Amazon Linux 2 Release Notes*[](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20220218.html). For example, 2.0.20220218.1.
*/
public var label: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.OsRelease) : this() {
this.label = x.label
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.OsRelease = OsRelease(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy