commonMain.aws.sdk.kotlin.services.codepipeline.model.ActionRevision.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Represents information about the version (or revision) of an action.
*/
class ActionRevision private constructor(builder: Builder) {
/**
* The date and time when the most recent version of the action was created, in timestamp format.
*/
val created: aws.smithy.kotlin.runtime.time.Instant? = builder.created
/**
* The unique identifier of the change that set the state to this revision (for example, a deployment ID or timestamp).
*/
val revisionChangeId: kotlin.String? = builder.revisionChangeId
/**
* The system-generated unique ID that identifies the revision number of the action.
*/
val revisionId: kotlin.String? = builder.revisionId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ActionRevision = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionRevision(")
append("created=$created,")
append("revisionChangeId=$revisionChangeId,")
append("revisionId=$revisionId)")
}
override fun hashCode(): kotlin.Int {
var result = created?.hashCode() ?: 0
result = 31 * result + (revisionChangeId?.hashCode() ?: 0)
result = 31 * result + (revisionId?.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 ActionRevision
if (created != other.created) return false
if (revisionChangeId != other.revisionChangeId) return false
if (revisionId != other.revisionId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ActionRevision = Builder(this).apply(block).build()
class Builder {
/**
* The date and time when the most recent version of the action was created, in timestamp format.
*/
var created: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique identifier of the change that set the state to this revision (for example, a deployment ID or timestamp).
*/
var revisionChangeId: kotlin.String? = null
/**
* The system-generated unique ID that identifies the revision number of the action.
*/
var revisionId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ActionRevision) : this() {
this.created = x.created
this.revisionChangeId = x.revisionChangeId
this.revisionId = x.revisionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ActionRevision = ActionRevision(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy