commonMain.aws.sdk.kotlin.services.codedeploy.model.PutLifecycleEventHookExecutionStatusRequest.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
public class PutLifecycleEventHookExecutionStatusRequest private constructor(builder: Builder) {
/**
* The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.
*/
public val deploymentId: kotlin.String? = builder.deploymentId
/**
* The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the `hooks` section of the AppSpec file.
*/
public val lifecycleEventHookExecutionId: kotlin.String? = builder.lifecycleEventHookExecutionId
/**
* The result of a Lambda function that validates a deployment lifecycle event. The values listed in **Valid Values** are valid for lifecycle statuses in general; however, only `Succeeded` and `Failed` can be passed successfully in your API call.
*/
public val status: aws.sdk.kotlin.services.codedeploy.model.LifecycleEventStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.PutLifecycleEventHookExecutionStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutLifecycleEventHookExecutionStatusRequest(")
append("deploymentId=$deploymentId,")
append("lifecycleEventHookExecutionId=$lifecycleEventHookExecutionId,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentId?.hashCode() ?: 0
result = 31 * result + (lifecycleEventHookExecutionId?.hashCode() ?: 0)
result = 31 * result + (status?.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 PutLifecycleEventHookExecutionStatusRequest
if (deploymentId != other.deploymentId) return false
if (lifecycleEventHookExecutionId != other.lifecycleEventHookExecutionId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.PutLifecycleEventHookExecutionStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.
*/
public var deploymentId: kotlin.String? = null
/**
* The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the `hooks` section of the AppSpec file.
*/
public var lifecycleEventHookExecutionId: kotlin.String? = null
/**
* The result of a Lambda function that validates a deployment lifecycle event. The values listed in **Valid Values** are valid for lifecycle statuses in general; however, only `Succeeded` and `Failed` can be passed successfully in your API call.
*/
public var status: aws.sdk.kotlin.services.codedeploy.model.LifecycleEventStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.PutLifecycleEventHookExecutionStatusRequest) : this() {
this.deploymentId = x.deploymentId
this.lifecycleEventHookExecutionId = x.lifecycleEventHookExecutionId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.PutLifecycleEventHookExecutionStatusRequest = PutLifecycleEventHookExecutionStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}