commonMain.aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionRequest.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
/**
* Represents the input of a `PutActionRevision` action.
*/
public class PutActionRevisionRequest private constructor(builder: Builder) {
/**
* The name of the action that processes the revision.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* Represents information about the version (or revision) of an action.
*/
public val actionRevision: aws.sdk.kotlin.services.codepipeline.model.ActionRevision? = builder.actionRevision
/**
* The name of the pipeline that starts processing the revision to the source.
*/
public val pipelineName: kotlin.String? = builder.pipelineName
/**
* The name of the stage that contains the action that acts on the revision.
*/
public val stageName: kotlin.String? = builder.stageName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutActionRevisionRequest(")
append("actionName=$actionName,")
append("actionRevision=$actionRevision,")
append("pipelineName=$pipelineName,")
append("stageName=$stageName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionName?.hashCode() ?: 0
result = 31 * result + (actionRevision?.hashCode() ?: 0)
result = 31 * result + (pipelineName?.hashCode() ?: 0)
result = 31 * result + (stageName?.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 PutActionRevisionRequest
if (actionName != other.actionName) return false
if (actionRevision != other.actionRevision) return false
if (pipelineName != other.pipelineName) return false
if (stageName != other.stageName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the action that processes the revision.
*/
public var actionName: kotlin.String? = null
/**
* Represents information about the version (or revision) of an action.
*/
public var actionRevision: aws.sdk.kotlin.services.codepipeline.model.ActionRevision? = null
/**
* The name of the pipeline that starts processing the revision to the source.
*/
public var pipelineName: kotlin.String? = null
/**
* The name of the stage that contains the action that acts on the revision.
*/
public var stageName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionRequest) : this() {
this.actionName = x.actionName
this.actionRevision = x.actionRevision
this.pipelineName = x.pipelineName
this.stageName = x.stageName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.PutActionRevisionRequest = PutActionRevisionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ActionRevision] inside the given [block]
*/
public fun actionRevision(block: aws.sdk.kotlin.services.codepipeline.model.ActionRevision.Builder.() -> kotlin.Unit) {
this.actionRevision = aws.sdk.kotlin.services.codepipeline.model.ActionRevision.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy