commonMain.aws.sdk.kotlin.services.codepipeline.model.ActionState.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 information about the state of an action.
*/
public class ActionState private constructor(builder: Builder) {
/**
* The name of the action.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* Represents information about the version (or revision) of an action.
*/
public val currentRevision: aws.sdk.kotlin.services.codepipeline.model.ActionRevision? = builder.currentRevision
/**
* A URL link for more information about the state of the action, such as a deployment group details page.
*/
public val entityUrl: kotlin.String? = builder.entityUrl
/**
* Represents information about the run of an action.
*/
public val latestExecution: aws.sdk.kotlin.services.codepipeline.model.ActionExecution? = builder.latestExecution
/**
* A URL link for more information about the revision, such as a commit details page.
*/
public val revisionUrl: kotlin.String? = builder.revisionUrl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ActionState = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionState(")
append("actionName=$actionName,")
append("currentRevision=$currentRevision,")
append("entityUrl=$entityUrl,")
append("latestExecution=$latestExecution,")
append("revisionUrl=$revisionUrl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionName?.hashCode() ?: 0
result = 31 * result + (currentRevision?.hashCode() ?: 0)
result = 31 * result + (entityUrl?.hashCode() ?: 0)
result = 31 * result + (latestExecution?.hashCode() ?: 0)
result = 31 * result + (revisionUrl?.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 ActionState
if (actionName != other.actionName) return false
if (currentRevision != other.currentRevision) return false
if (entityUrl != other.entityUrl) return false
if (latestExecution != other.latestExecution) return false
if (revisionUrl != other.revisionUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ActionState = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the action.
*/
public var actionName: kotlin.String? = null
/**
* Represents information about the version (or revision) of an action.
*/
public var currentRevision: aws.sdk.kotlin.services.codepipeline.model.ActionRevision? = null
/**
* A URL link for more information about the state of the action, such as a deployment group details page.
*/
public var entityUrl: kotlin.String? = null
/**
* Represents information about the run of an action.
*/
public var latestExecution: aws.sdk.kotlin.services.codepipeline.model.ActionExecution? = null
/**
* A URL link for more information about the revision, such as a commit details page.
*/
public var revisionUrl: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ActionState) : this() {
this.actionName = x.actionName
this.currentRevision = x.currentRevision
this.entityUrl = x.entityUrl
this.latestExecution = x.latestExecution
this.revisionUrl = x.revisionUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ActionState = ActionState(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ActionRevision] inside the given [block]
*/
public fun currentRevision(block: aws.sdk.kotlin.services.codepipeline.model.ActionRevision.Builder.() -> kotlin.Unit) {
this.currentRevision = aws.sdk.kotlin.services.codepipeline.model.ActionRevision.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ActionExecution] inside the given [block]
*/
public fun latestExecution(block: aws.sdk.kotlin.services.codepipeline.model.ActionExecution.Builder.() -> kotlin.Unit) {
this.latestExecution = aws.sdk.kotlin.services.codepipeline.model.ActionExecution.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy