
commonMain.aws.sdk.kotlin.services.iot.model.AwsJobExecutionsRolloutConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Configuration for the rollout of OTA updates.
*/
public class AwsJobExecutionsRolloutConfig private constructor(builder: Builder) {
/**
* The rate of increase for a job rollout. This parameter allows you to define an exponential rate increase for a job rollout.
*/
public val exponentialRate: aws.sdk.kotlin.services.iot.model.AwsJobExponentialRolloutRate? = builder.exponentialRate
/**
* The maximum number of OTA update job executions started per minute.
*/
public val maximumPerMinute: kotlin.Int? = builder.maximumPerMinute
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.AwsJobExecutionsRolloutConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsJobExecutionsRolloutConfig(")
append("exponentialRate=$exponentialRate,")
append("maximumPerMinute=$maximumPerMinute")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exponentialRate?.hashCode() ?: 0
result = 31 * result + (maximumPerMinute ?: 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 AwsJobExecutionsRolloutConfig
if (exponentialRate != other.exponentialRate) return false
if (maximumPerMinute != other.maximumPerMinute) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.AwsJobExecutionsRolloutConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The rate of increase for a job rollout. This parameter allows you to define an exponential rate increase for a job rollout.
*/
public var exponentialRate: aws.sdk.kotlin.services.iot.model.AwsJobExponentialRolloutRate? = null
/**
* The maximum number of OTA update job executions started per minute.
*/
public var maximumPerMinute: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AwsJobExecutionsRolloutConfig) : this() {
this.exponentialRate = x.exponentialRate
this.maximumPerMinute = x.maximumPerMinute
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.AwsJobExecutionsRolloutConfig = AwsJobExecutionsRolloutConfig(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.AwsJobExponentialRolloutRate] inside the given [block]
*/
public fun exponentialRate(block: aws.sdk.kotlin.services.iot.model.AwsJobExponentialRolloutRate.Builder.() -> kotlin.Unit) {
this.exponentialRate = aws.sdk.kotlin.services.iot.model.AwsJobExponentialRolloutRate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy