
commonMain.aws.sdk.kotlin.services.emr.model.OnDemandResizingSpecification.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* The resize specification for On-Demand Instances in the instance fleet, which contains the resize timeout period.
*/
public class OnDemandResizingSpecification private constructor(builder: Builder) {
/**
* On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
*/
public val timeoutDurationMinutes: kotlin.Int? = builder.timeoutDurationMinutes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.OnDemandResizingSpecification = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OnDemandResizingSpecification(")
append("timeoutDurationMinutes=$timeoutDurationMinutes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timeoutDurationMinutes ?: 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 OnDemandResizingSpecification
if (timeoutDurationMinutes != other.timeoutDurationMinutes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.OnDemandResizingSpecification = Builder(this).apply(block).build()
public class Builder {
/**
* On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
*/
public var timeoutDurationMinutes: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.OnDemandResizingSpecification) : this() {
this.timeoutDurationMinutes = x.timeoutDurationMinutes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.OnDemandResizingSpecification = OnDemandResizingSpecification(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy