
commonMain.aws.sdk.kotlin.services.emr.model.ModifyInstanceGroupsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* Change the size of some instance groups.
*/
public class ModifyInstanceGroupsRequest private constructor(builder: Builder) {
/**
* The ID of the cluster to which the instance group belongs.
*/
public val clusterId: kotlin.String? = builder.clusterId
/**
* Instance groups to change.
*/
public val instanceGroups: List? = builder.instanceGroups
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.ModifyInstanceGroupsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyInstanceGroupsRequest(")
append("clusterId=$clusterId,")
append("instanceGroups=$instanceGroups)")
}
override fun hashCode(): kotlin.Int {
var result = clusterId?.hashCode() ?: 0
result = 31 * result + (instanceGroups?.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 ModifyInstanceGroupsRequest
if (clusterId != other.clusterId) return false
if (instanceGroups != other.instanceGroups) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.ModifyInstanceGroupsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the cluster to which the instance group belongs.
*/
public var clusterId: kotlin.String? = null
/**
* Instance groups to change.
*/
public var instanceGroups: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.ModifyInstanceGroupsRequest) : this() {
this.clusterId = x.clusterId
this.instanceGroups = x.instanceGroups
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.ModifyInstanceGroupsRequest = ModifyInstanceGroupsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy