
commonMain.aws.sdk.kotlin.services.emr.model.SpotResizingSpecification.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* The resize specification for Spot Instances in the instance fleet, which contains the resize timeout period.
*/
public class SpotResizingSpecification private constructor(builder: Builder) {
/**
* Spot resize timeout in minutes. If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and 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.SpotResizingSpecification = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SpotResizingSpecification(")
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 SpotResizingSpecification
if (timeoutDurationMinutes != other.timeoutDurationMinutes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.SpotResizingSpecification = Builder(this).apply(block).build()
public class Builder {
/**
* Spot resize timeout in minutes. If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and 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.SpotResizingSpecification) : this() {
this.timeoutDurationMinutes = x.timeoutDurationMinutes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.SpotResizingSpecification = SpotResizingSpecification(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy