commonMain.aws.sdk.kotlin.services.codepipeline.model.GetPipelineExecutionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the output of a `GetPipelineExecution` action.
*/
public class GetPipelineExecutionResponse private constructor(builder: Builder) {
/**
* Represents information about the execution of a pipeline.
*/
public val pipelineExecution: aws.sdk.kotlin.services.codepipeline.model.PipelineExecution? = builder.pipelineExecution
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.GetPipelineExecutionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPipelineExecutionResponse(")
append("pipelineExecution=$pipelineExecution")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pipelineExecution?.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 GetPipelineExecutionResponse
if (pipelineExecution != other.pipelineExecution) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.GetPipelineExecutionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Represents information about the execution of a pipeline.
*/
public var pipelineExecution: aws.sdk.kotlin.services.codepipeline.model.PipelineExecution? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.GetPipelineExecutionResponse) : this() {
this.pipelineExecution = x.pipelineExecution
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.GetPipelineExecutionResponse = GetPipelineExecutionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.PipelineExecution] inside the given [block]
*/
public fun pipelineExecution(block: aws.sdk.kotlin.services.codepipeline.model.PipelineExecution.Builder.() -> kotlin.Unit) {
this.pipelineExecution = aws.sdk.kotlin.services.codepipeline.model.PipelineExecution.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy