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