
commonMain.aws.sdk.kotlin.services.ssm.model.ProgressCounters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.
*/
public class ProgressCounters private constructor(builder: Builder) {
/**
* The total number of steps that the system cancelled in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public val cancelledSteps: kotlin.Int = builder.cancelledSteps
/**
* The total number of steps that failed to run in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public val failedSteps: kotlin.Int = builder.failedSteps
/**
* The total number of steps that successfully completed in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public val successSteps: kotlin.Int = builder.successSteps
/**
* The total number of steps that timed out in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public val timedOutSteps: kotlin.Int = builder.timedOutSteps
/**
* The total number of steps run in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public val totalSteps: kotlin.Int = builder.totalSteps
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ProgressCounters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProgressCounters(")
append("cancelledSteps=$cancelledSteps,")
append("failedSteps=$failedSteps,")
append("successSteps=$successSteps,")
append("timedOutSteps=$timedOutSteps,")
append("totalSteps=$totalSteps")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cancelledSteps
result = 31 * result + (failedSteps)
result = 31 * result + (successSteps)
result = 31 * result + (timedOutSteps)
result = 31 * result + (totalSteps)
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 ProgressCounters
if (cancelledSteps != other.cancelledSteps) return false
if (failedSteps != other.failedSteps) return false
if (successSteps != other.successSteps) return false
if (timedOutSteps != other.timedOutSteps) return false
if (totalSteps != other.totalSteps) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ProgressCounters = Builder(this).apply(block).build()
public class Builder {
/**
* The total number of steps that the system cancelled in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public var cancelledSteps: kotlin.Int = 0
/**
* The total number of steps that failed to run in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public var failedSteps: kotlin.Int = 0
/**
* The total number of steps that successfully completed in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public var successSteps: kotlin.Int = 0
/**
* The total number of steps that timed out in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public var timedOutSteps: kotlin.Int = 0
/**
* The total number of steps run in all specified Amazon Web Services Regions and Amazon Web Services accounts for the current Automation execution.
*/
public var totalSteps: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ProgressCounters) : this() {
this.cancelledSteps = x.cancelledSteps
this.failedSteps = x.failedSteps
this.successSteps = x.successSteps
this.timedOutSteps = x.timedOutSteps
this.totalSteps = x.totalSteps
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ProgressCounters = ProgressCounters(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy