
commonMain.aws.sdk.kotlin.services.emr.model.GetManagedScalingPolicyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
public class GetManagedScalingPolicyResponse private constructor(builder: Builder) {
/**
* Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
*/
public val managedScalingPolicy: aws.sdk.kotlin.services.emr.model.ManagedScalingPolicy? = builder.managedScalingPolicy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.GetManagedScalingPolicyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetManagedScalingPolicyResponse(")
append("managedScalingPolicy=$managedScalingPolicy)")
}
override fun hashCode(): kotlin.Int {
var result = managedScalingPolicy?.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 GetManagedScalingPolicyResponse
if (managedScalingPolicy != other.managedScalingPolicy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.GetManagedScalingPolicyResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
*/
public var managedScalingPolicy: aws.sdk.kotlin.services.emr.model.ManagedScalingPolicy? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.GetManagedScalingPolicyResponse) : this() {
this.managedScalingPolicy = x.managedScalingPolicy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.GetManagedScalingPolicyResponse = GetManagedScalingPolicyResponse(this)
/**
* construct an [aws.sdk.kotlin.services.emr.model.ManagedScalingPolicy] inside the given [block]
*/
public fun managedScalingPolicy(block: aws.sdk.kotlin.services.emr.model.ManagedScalingPolicy.Builder.() -> kotlin.Unit) {
this.managedScalingPolicy = aws.sdk.kotlin.services.emr.model.ManagedScalingPolicy.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy