commonMain.aws.sdk.kotlin.services.appconfig.model.CreateDeploymentStrategyResponse.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 CreateDeploymentStrategyResponse private constructor(builder: Builder) {
/**
* Total amount of time the deployment lasted.
*/
public val deploymentDurationInMinutes: kotlin.Int = builder.deploymentDurationInMinutes
/**
* The description of the deployment strategy.
*/
public val description: kotlin.String? = builder.description
/**
* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.
*/
public val finalBakeTimeInMinutes: kotlin.Int = builder.finalBakeTimeInMinutes
/**
* The percentage of targets that received a deployed configuration during each interval.
*/
public val growthFactor: kotlin.Float? = builder.growthFactor
/**
* The algorithm used to define how percentage grew over time.
*/
public val growthType: aws.sdk.kotlin.services.appconfig.model.GrowthType? = builder.growthType
/**
* The deployment strategy ID.
*/
public val id: kotlin.String? = builder.id
/**
* The name of the deployment strategy.
*/
public val name: kotlin.String? = builder.name
/**
* Save the deployment strategy to a Systems Manager (SSM) document.
*/
public val replicateTo: aws.sdk.kotlin.services.appconfig.model.ReplicateTo? = builder.replicateTo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.CreateDeploymentStrategyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDeploymentStrategyResponse(")
append("deploymentDurationInMinutes=$deploymentDurationInMinutes,")
append("description=$description,")
append("finalBakeTimeInMinutes=$finalBakeTimeInMinutes,")
append("growthFactor=$growthFactor,")
append("growthType=$growthType,")
append("id=$id,")
append("name=$name,")
append("replicateTo=$replicateTo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentDurationInMinutes
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (finalBakeTimeInMinutes)
result = 31 * result + (growthFactor?.hashCode() ?: 0)
result = 31 * result + (growthType?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (replicateTo?.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 CreateDeploymentStrategyResponse
if (deploymentDurationInMinutes != other.deploymentDurationInMinutes) return false
if (description != other.description) return false
if (finalBakeTimeInMinutes != other.finalBakeTimeInMinutes) return false
if (!(growthFactor?.equals(other.growthFactor) ?: (other.growthFactor == null))) return false
if (growthType != other.growthType) return false
if (id != other.id) return false
if (name != other.name) return false
if (replicateTo != other.replicateTo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.CreateDeploymentStrategyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Total amount of time the deployment lasted.
*/
public var deploymentDurationInMinutes: kotlin.Int = 0
/**
* The description of the deployment strategy.
*/
public var description: kotlin.String? = null
/**
* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.
*/
public var finalBakeTimeInMinutes: kotlin.Int = 0
/**
* The percentage of targets that received a deployed configuration during each interval.
*/
public var growthFactor: kotlin.Float? = null
/**
* The algorithm used to define how percentage grew over time.
*/
public var growthType: aws.sdk.kotlin.services.appconfig.model.GrowthType? = null
/**
* The deployment strategy ID.
*/
public var id: kotlin.String? = null
/**
* The name of the deployment strategy.
*/
public var name: kotlin.String? = null
/**
* Save the deployment strategy to a Systems Manager (SSM) document.
*/
public var replicateTo: aws.sdk.kotlin.services.appconfig.model.ReplicateTo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.CreateDeploymentStrategyResponse) : this() {
this.deploymentDurationInMinutes = x.deploymentDurationInMinutes
this.description = x.description
this.finalBakeTimeInMinutes = x.finalBakeTimeInMinutes
this.growthFactor = x.growthFactor
this.growthType = x.growthType
this.id = x.id
this.name = x.name
this.replicateTo = x.replicateTo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.CreateDeploymentStrategyResponse = CreateDeploymentStrategyResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy