commonMain.aws.sdk.kotlin.services.codedeploy.model.RollbackInfo.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 a deployment rollback.
*/
public class RollbackInfo private constructor(builder: Builder) {
/**
* The ID of the deployment rollback.
*/
public val rollbackDeploymentId: kotlin.String? = builder.rollbackDeploymentId
/**
* Information that describes the status of a deployment rollback (for example, whether the deployment can't be rolled back, is in progress, failed, or succeeded).
*/
public val rollbackMessage: kotlin.String? = builder.rollbackMessage
/**
* The deployment ID of the deployment that was underway and triggered a rollback deployment because it failed or was stopped.
*/
public val rollbackTriggeringDeploymentId: kotlin.String? = builder.rollbackTriggeringDeploymentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.RollbackInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RollbackInfo(")
append("rollbackDeploymentId=$rollbackDeploymentId,")
append("rollbackMessage=$rollbackMessage,")
append("rollbackTriggeringDeploymentId=$rollbackTriggeringDeploymentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rollbackDeploymentId?.hashCode() ?: 0
result = 31 * result + (rollbackMessage?.hashCode() ?: 0)
result = 31 * result + (rollbackTriggeringDeploymentId?.hashCode() ?: 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 RollbackInfo
if (rollbackDeploymentId != other.rollbackDeploymentId) return false
if (rollbackMessage != other.rollbackMessage) return false
if (rollbackTriggeringDeploymentId != other.rollbackTriggeringDeploymentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.RollbackInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the deployment rollback.
*/
public var rollbackDeploymentId: kotlin.String? = null
/**
* Information that describes the status of a deployment rollback (for example, whether the deployment can't be rolled back, is in progress, failed, or succeeded).
*/
public var rollbackMessage: kotlin.String? = null
/**
* The deployment ID of the deployment that was underway and triggered a rollback deployment because it failed or was stopped.
*/
public var rollbackTriggeringDeploymentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.RollbackInfo) : this() {
this.rollbackDeploymentId = x.rollbackDeploymentId
this.rollbackMessage = x.rollbackMessage
this.rollbackTriggeringDeploymentId = x.rollbackTriggeringDeploymentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.RollbackInfo = RollbackInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}