commonMain.aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningOption.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 instances that belong to the replacement environment in a blue/green deployment.
*/
public class GreenFleetProvisioningOption private constructor(builder: Builder) {
/**
* The method used to add instances to a replacement environment.
* + `DISCOVER_EXISTING`: Use instances that already exist or will be created manually.
* + `COPY_AUTO_SCALING_GROUP`: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.
*/
public val action: aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningAction? = builder.action
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningOption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GreenFleetProvisioningOption(")
append("action=$action")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.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 GreenFleetProvisioningOption
if (action != other.action) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningOption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The method used to add instances to a replacement environment.
* + `DISCOVER_EXISTING`: Use instances that already exist or will be created manually.
* + `COPY_AUTO_SCALING_GROUP`: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.
*/
public var action: aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningAction? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningOption) : this() {
this.action = x.action
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.GreenFleetProvisioningOption = GreenFleetProvisioningOption(this)
internal fun correctErrors(): Builder {
return this
}
}
}