commonMain.aws.sdk.kotlin.services.codedeploy.model.RelatedDeployments.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 deployments related to the specified deployment.
*/
public class RelatedDeployments private constructor(builder: Builder) {
/**
* The deployment IDs of 'auto-update outdated instances' deployments triggered by this deployment.
*/
public val autoUpdateOutdatedInstancesDeploymentIds: List? = builder.autoUpdateOutdatedInstancesDeploymentIds
/**
* The deployment ID of the root deployment that triggered this deployment.
*/
public val autoUpdateOutdatedInstancesRootDeploymentId: kotlin.String? = builder.autoUpdateOutdatedInstancesRootDeploymentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.RelatedDeployments = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RelatedDeployments(")
append("autoUpdateOutdatedInstancesDeploymentIds=$autoUpdateOutdatedInstancesDeploymentIds,")
append("autoUpdateOutdatedInstancesRootDeploymentId=$autoUpdateOutdatedInstancesRootDeploymentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoUpdateOutdatedInstancesDeploymentIds?.hashCode() ?: 0
result = 31 * result + (autoUpdateOutdatedInstancesRootDeploymentId?.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 RelatedDeployments
if (autoUpdateOutdatedInstancesDeploymentIds != other.autoUpdateOutdatedInstancesDeploymentIds) return false
if (autoUpdateOutdatedInstancesRootDeploymentId != other.autoUpdateOutdatedInstancesRootDeploymentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.RelatedDeployments = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The deployment IDs of 'auto-update outdated instances' deployments triggered by this deployment.
*/
public var autoUpdateOutdatedInstancesDeploymentIds: List? = null
/**
* The deployment ID of the root deployment that triggered this deployment.
*/
public var autoUpdateOutdatedInstancesRootDeploymentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.RelatedDeployments) : this() {
this.autoUpdateOutdatedInstancesDeploymentIds = x.autoUpdateOutdatedInstancesDeploymentIds
this.autoUpdateOutdatedInstancesRootDeploymentId = x.autoUpdateOutdatedInstancesRootDeploymentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.RelatedDeployments = RelatedDeployments(this)
internal fun correctErrors(): Builder {
return this
}
}
}