commonMain.aws.sdk.kotlin.services.codepipeline.model.ExecutionDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline Show documentation
Show all versions of codepipeline Show documentation
The AWS Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
/**
* The details of the actions taken and results produced on an artifact as it passes through stages in the pipeline.
*/
public class ExecutionDetails private constructor(builder: Builder) {
/**
* The system-generated unique ID of this action used to identify this job worker in any external systems, such as CodeDeploy.
*/
public val externalExecutionId: kotlin.String? = builder.externalExecutionId
/**
* The percentage of work completed on the action, represented on a scale of 0 to 100 percent.
*/
public val percentComplete: kotlin.Int? = builder.percentComplete
/**
* The summary of the current status of the actions.
*/
public val summary: kotlin.String? = builder.summary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ExecutionDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionDetails(")
append("externalExecutionId=$externalExecutionId,")
append("percentComplete=$percentComplete,")
append("summary=$summary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = externalExecutionId?.hashCode() ?: 0
result = 31 * result + (percentComplete ?: 0)
result = 31 * result + (summary?.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 ExecutionDetails
if (externalExecutionId != other.externalExecutionId) return false
if (percentComplete != other.percentComplete) return false
if (summary != other.summary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ExecutionDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The system-generated unique ID of this action used to identify this job worker in any external systems, such as CodeDeploy.
*/
public var externalExecutionId: kotlin.String? = null
/**
* The percentage of work completed on the action, represented on a scale of 0 to 100 percent.
*/
public var percentComplete: kotlin.Int? = null
/**
* The summary of the current status of the actions.
*/
public var summary: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ExecutionDetails) : this() {
this.externalExecutionId = x.externalExecutionId
this.percentComplete = x.percentComplete
this.summary = x.summary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ExecutionDetails = ExecutionDetails(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy