commonMain.aws.sdk.kotlin.services.codedeploy.model.GenericRevisionInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about an application revision.
*/
public class GenericRevisionInfo private constructor(builder: Builder) {
/**
* The deployment groups for which this is the current target revision.
*/
public val deploymentGroups: List? = builder.deploymentGroups
/**
* A comment about the revision.
*/
public val description: kotlin.String? = builder.description
/**
* When the revision was first used by CodeDeploy.
*/
public val firstUsedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.firstUsedTime
/**
* When the revision was last used by CodeDeploy.
*/
public val lastUsedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUsedTime
/**
* When the revision was registered with CodeDeploy.
*/
public val registerTime: aws.smithy.kotlin.runtime.time.Instant? = builder.registerTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.GenericRevisionInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GenericRevisionInfo(")
append("deploymentGroups=$deploymentGroups,")
append("description=$description,")
append("firstUsedTime=$firstUsedTime,")
append("lastUsedTime=$lastUsedTime,")
append("registerTime=$registerTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentGroups?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (firstUsedTime?.hashCode() ?: 0)
result = 31 * result + (lastUsedTime?.hashCode() ?: 0)
result = 31 * result + (registerTime?.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 GenericRevisionInfo
if (deploymentGroups != other.deploymentGroups) return false
if (description != other.description) return false
if (firstUsedTime != other.firstUsedTime) return false
if (lastUsedTime != other.lastUsedTime) return false
if (registerTime != other.registerTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.GenericRevisionInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The deployment groups for which this is the current target revision.
*/
public var deploymentGroups: List? = null
/**
* A comment about the revision.
*/
public var description: kotlin.String? = null
/**
* When the revision was first used by CodeDeploy.
*/
public var firstUsedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* When the revision was last used by CodeDeploy.
*/
public var lastUsedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* When the revision was registered with CodeDeploy.
*/
public var registerTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.GenericRevisionInfo) : this() {
this.deploymentGroups = x.deploymentGroups
this.description = x.description
this.firstUsedTime = x.firstUsedTime
this.lastUsedTime = x.lastUsedTime
this.registerTime = x.registerTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.GenericRevisionInfo = GenericRevisionInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}