commonMain.aws.sdk.kotlin.services.emrcontainers.model.DescribeVirtualClusterResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrcontainers-jvm Show documentation
Show all versions of emrcontainers-jvm Show documentation
The AWS Kotlin client for EMR containers
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrcontainers.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeVirtualClusterResponse private constructor(builder: Builder) {
/**
* This output displays information about the specified virtual cluster.
*/
public val virtualCluster: aws.sdk.kotlin.services.emrcontainers.model.VirtualCluster? = builder.virtualCluster
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emrcontainers.model.DescribeVirtualClusterResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeVirtualClusterResponse(")
append("virtualCluster=$virtualCluster")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = virtualCluster?.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 DescribeVirtualClusterResponse
if (virtualCluster != other.virtualCluster) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emrcontainers.model.DescribeVirtualClusterResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This output displays information about the specified virtual cluster.
*/
public var virtualCluster: aws.sdk.kotlin.services.emrcontainers.model.VirtualCluster? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emrcontainers.model.DescribeVirtualClusterResponse) : this() {
this.virtualCluster = x.virtualCluster
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emrcontainers.model.DescribeVirtualClusterResponse = DescribeVirtualClusterResponse(this)
/**
* construct an [aws.sdk.kotlin.services.emrcontainers.model.VirtualCluster] inside the given [block]
*/
public fun virtualCluster(block: aws.sdk.kotlin.services.emrcontainers.model.VirtualCluster.Builder.() -> kotlin.Unit) {
this.virtualCluster = aws.sdk.kotlin.services.emrcontainers.model.VirtualCluster.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy