commonMain.aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionResponse.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
/**
* Represents the output of a `PutActionRevision` action.
*/
public class PutActionRevisionResponse private constructor(builder: Builder) {
/**
* Indicates whether the artifact revision was previously used in an execution of the specified pipeline.
*/
public val newRevision: kotlin.Boolean = builder.newRevision
/**
* The ID of the current workflow state of the pipeline.
*/
public val pipelineExecutionId: kotlin.String? = builder.pipelineExecutionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutActionRevisionResponse(")
append("newRevision=$newRevision,")
append("pipelineExecutionId=$pipelineExecutionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = newRevision.hashCode()
result = 31 * result + (pipelineExecutionId?.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 PutActionRevisionResponse
if (newRevision != other.newRevision) return false
if (pipelineExecutionId != other.pipelineExecutionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Indicates whether the artifact revision was previously used in an execution of the specified pipeline.
*/
public var newRevision: kotlin.Boolean = false
/**
* The ID of the current workflow state of the pipeline.
*/
public var pipelineExecutionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionResponse) : this() {
this.newRevision = x.newRevision
this.pipelineExecutionId = x.pipelineExecutionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionResponse = PutActionRevisionResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy