
commonMain.aws.sdk.kotlin.services.emr.model.DescribeStepResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* This output contains the description of the cluster step.
*/
public class DescribeStepResponse private constructor(builder: Builder) {
/**
* The step details for the requested step identifier.
*/
public val step: aws.sdk.kotlin.services.emr.model.Step? = builder.step
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.DescribeStepResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeStepResponse(")
append("step=$step)")
}
override fun hashCode(): kotlin.Int {
var result = step?.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 DescribeStepResponse
if (step != other.step) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.DescribeStepResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The step details for the requested step identifier.
*/
public var step: aws.sdk.kotlin.services.emr.model.Step? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.DescribeStepResponse) : this() {
this.step = x.step
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.DescribeStepResponse = DescribeStepResponse(this)
/**
* construct an [aws.sdk.kotlin.services.emr.model.Step] inside the given [block]
*/
public fun step(block: aws.sdk.kotlin.services.emr.model.Step.Builder.() -> kotlin.Unit) {
this.step = aws.sdk.kotlin.services.emr.model.Step.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy