All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.codedeploy.model.LastDeploymentInfo.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// 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 the most recent attempted or successful deployment to a deployment group.
 */
public class LastDeploymentInfo private constructor(builder: Builder) {
    /**
     * A timestamp that indicates when the most recent deployment to the deployment group started.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createTime
    /**
     * The unique ID of a deployment.
     */
    public val deploymentId: kotlin.String? = builder.deploymentId
    /**
     * A timestamp that indicates when the most recent deployment to the deployment group was complete.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The status of the most recent deployment.
     */
    public val status: aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus? = builder.status

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.LastDeploymentInfo = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("LastDeploymentInfo(")
        append("createTime=$createTime,")
        append("deploymentId=$deploymentId,")
        append("endTime=$endTime,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createTime?.hashCode() ?: 0
        result = 31 * result + (deploymentId?.hashCode() ?: 0)
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (status?.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 LastDeploymentInfo

        if (createTime != other.createTime) return false
        if (deploymentId != other.deploymentId) return false
        if (endTime != other.endTime) return false
        if (status != other.status) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.LastDeploymentInfo = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A timestamp that indicates when the most recent deployment to the deployment group started.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The unique ID of a deployment.
         */
        public var deploymentId: kotlin.String? = null
        /**
         * A timestamp that indicates when the most recent deployment to the deployment group was complete.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the most recent deployment.
         */
        public var status: aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.LastDeploymentInfo) : this() {
            this.createTime = x.createTime
            this.deploymentId = x.deploymentId
            this.endTime = x.endTime
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.codedeploy.model.LastDeploymentInfo = LastDeploymentInfo(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy