
commonMain.aws.sdk.kotlin.services.emr.model.DescribeReleaseLabelResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
public class DescribeReleaseLabelResponse private constructor(builder: Builder) {
/**
* The list of applications available for the target release label. `Name` is the name of the application. `Version` is the concise version of the application.
*/
public val applications: List? = builder.applications
/**
* The list of available Amazon Linux release versions for an Amazon EMR release. Contains a Label field that is formatted as shown in *Amazon Linux 2 Release Notes*[](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-al2.html). For example, [2.0.20220218.1](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20220218.html).
*/
public val availableOsReleases: List? = builder.availableOsReleases
/**
* The pagination token. Reserved for future use. Currently set to null.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The target release label described in the response.
*/
public val releaseLabel: kotlin.String? = builder.releaseLabel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.DescribeReleaseLabelResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeReleaseLabelResponse(")
append("applications=$applications,")
append("availableOsReleases=$availableOsReleases,")
append("nextToken=$nextToken,")
append("releaseLabel=$releaseLabel)")
}
override fun hashCode(): kotlin.Int {
var result = applications?.hashCode() ?: 0
result = 31 * result + (availableOsReleases?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (releaseLabel?.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 DescribeReleaseLabelResponse
if (applications != other.applications) return false
if (availableOsReleases != other.availableOsReleases) return false
if (nextToken != other.nextToken) return false
if (releaseLabel != other.releaseLabel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.DescribeReleaseLabelResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The list of applications available for the target release label. `Name` is the name of the application. `Version` is the concise version of the application.
*/
public var applications: List? = null
/**
* The list of available Amazon Linux release versions for an Amazon EMR release. Contains a Label field that is formatted as shown in *Amazon Linux 2 Release Notes*[](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-al2.html). For example, [2.0.20220218.1](https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-20220218.html).
*/
public var availableOsReleases: List? = null
/**
* The pagination token. Reserved for future use. Currently set to null.
*/
public var nextToken: kotlin.String? = null
/**
* The target release label described in the response.
*/
public var releaseLabel: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.DescribeReleaseLabelResponse) : this() {
this.applications = x.applications
this.availableOsReleases = x.availableOsReleases
this.nextToken = x.nextToken
this.releaseLabel = x.releaseLabel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.DescribeReleaseLabelResponse = DescribeReleaseLabelResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy