commonMain.aws.sdk.kotlin.services.codedeploy.model.DeploymentOverview.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the deployment status of the instances in the deployment.
*/
public class DeploymentOverview private constructor(builder: Builder) {
/**
* The number of instances in the deployment in a failed state.
*/
public val failed: kotlin.Long = builder.failed
/**
* The number of instances in which the deployment is in progress.
*/
public val inProgress: kotlin.Long = builder.inProgress
/**
* The number of instances in the deployment in a pending state.
*/
public val pending: kotlin.Long = builder.pending
/**
* The number of instances in a replacement environment ready to receive traffic in a blue/green deployment.
*/
public val ready: kotlin.Long = builder.ready
/**
* The number of instances in the deployment in a skipped state.
*/
public val skipped: kotlin.Long = builder.skipped
/**
* The number of instances in the deployment to which revisions have been successfully deployed.
*/
public val succeeded: kotlin.Long = builder.succeeded
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.DeploymentOverview = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeploymentOverview(")
append("failed=$failed,")
append("inProgress=$inProgress,")
append("pending=$pending,")
append("ready=$ready,")
append("skipped=$skipped,")
append("succeeded=$succeeded")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failed.hashCode()
result = 31 * result + (inProgress.hashCode())
result = 31 * result + (pending.hashCode())
result = 31 * result + (ready.hashCode())
result = 31 * result + (skipped.hashCode())
result = 31 * result + (succeeded.hashCode())
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 DeploymentOverview
if (failed != other.failed) return false
if (inProgress != other.inProgress) return false
if (pending != other.pending) return false
if (ready != other.ready) return false
if (skipped != other.skipped) return false
if (succeeded != other.succeeded) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.DeploymentOverview = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of instances in the deployment in a failed state.
*/
public var failed: kotlin.Long = 0L
/**
* The number of instances in which the deployment is in progress.
*/
public var inProgress: kotlin.Long = 0L
/**
* The number of instances in the deployment in a pending state.
*/
public var pending: kotlin.Long = 0L
/**
* The number of instances in a replacement environment ready to receive traffic in a blue/green deployment.
*/
public var ready: kotlin.Long = 0L
/**
* The number of instances in the deployment in a skipped state.
*/
public var skipped: kotlin.Long = 0L
/**
* The number of instances in the deployment to which revisions have been successfully deployed.
*/
public var succeeded: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.DeploymentOverview) : this() {
this.failed = x.failed
this.inProgress = x.inProgress
this.pending = x.pending
this.ready = x.ready
this.skipped = x.skipped
this.succeeded = x.succeeded
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.DeploymentOverview = DeploymentOverview(this)
internal fun correctErrors(): Builder {
return this
}
}
}