commonMain.aws.sdk.kotlin.services.appconfig.model.StopDeploymentRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopDeploymentRequest private constructor(builder: Builder) {
/**
* A Boolean that enables AppConfig to rollback a `COMPLETED` deployment to the previous configuration version. This action moves the deployment to a status of `REVERTED`.
*/
public val allowRevert: kotlin.Boolean? = builder.allowRevert
/**
* The application ID.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The sequence number of the deployment.
*/
public val deploymentNumber: kotlin.Int? = builder.deploymentNumber
/**
* The environment ID.
*/
public val environmentId: kotlin.String? = builder.environmentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.StopDeploymentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopDeploymentRequest(")
append("allowRevert=$allowRevert,")
append("applicationId=$applicationId,")
append("deploymentNumber=$deploymentNumber,")
append("environmentId=$environmentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowRevert?.hashCode() ?: 0
result = 31 * result + (applicationId?.hashCode() ?: 0)
result = 31 * result + (deploymentNumber ?: 0)
result = 31 * result + (environmentId?.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 StopDeploymentRequest
if (allowRevert != other.allowRevert) return false
if (applicationId != other.applicationId) return false
if (deploymentNumber != other.deploymentNumber) return false
if (environmentId != other.environmentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.StopDeploymentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A Boolean that enables AppConfig to rollback a `COMPLETED` deployment to the previous configuration version. This action moves the deployment to a status of `REVERTED`.
*/
public var allowRevert: kotlin.Boolean? = null
/**
* The application ID.
*/
public var applicationId: kotlin.String? = null
/**
* The sequence number of the deployment.
*/
public var deploymentNumber: kotlin.Int? = null
/**
* The environment ID.
*/
public var environmentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.StopDeploymentRequest) : this() {
this.allowRevert = x.allowRevert
this.applicationId = x.applicationId
this.deploymentNumber = x.deploymentNumber
this.environmentId = x.environmentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.StopDeploymentRequest = StopDeploymentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy