
commonMain.aws.sdk.kotlin.services.emr.model.ModifyClusterRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
public class ModifyClusterRequest private constructor(builder: Builder) {
/**
* The unique identifier of the cluster.
*/
public val clusterId: kotlin.String? = builder.clusterId
/**
* The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256 steps. We recommend that you do not change this parameter while steps are running or the `ActionOnFailure` setting may not behave as expected. For more information see Step$ActionOnFailure.
*/
public val stepConcurrencyLevel: kotlin.Int? = builder.stepConcurrencyLevel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.ModifyClusterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyClusterRequest(")
append("clusterId=$clusterId,")
append("stepConcurrencyLevel=$stepConcurrencyLevel)")
}
override fun hashCode(): kotlin.Int {
var result = clusterId?.hashCode() ?: 0
result = 31 * result + (stepConcurrencyLevel ?: 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 ModifyClusterRequest
if (clusterId != other.clusterId) return false
if (stepConcurrencyLevel != other.stepConcurrencyLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.ModifyClusterRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier of the cluster.
*/
public var clusterId: kotlin.String? = null
/**
* The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256 steps. We recommend that you do not change this parameter while steps are running or the `ActionOnFailure` setting may not behave as expected. For more information see Step$ActionOnFailure.
*/
public var stepConcurrencyLevel: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.ModifyClusterRequest) : this() {
this.clusterId = x.clusterId
this.stepConcurrencyLevel = x.stepConcurrencyLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.ModifyClusterRequest = ModifyClusterRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy