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

commonMain.aws.sdk.kotlin.services.proton.model.DeploymentSummary.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.proton.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Summary data of the deployment.
 */
public class DeploymentSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the deployment.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The date and time the deployment was completed.
     */
    public val completedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.completedAt
    /**
     * The name of the component associated with the deployment.
     */
    public val componentName: kotlin.String? = builder.componentName
    /**
     * The date and time the deployment was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The current status of the deployment.
     */
    public val deploymentStatus: aws.sdk.kotlin.services.proton.model.DeploymentStatus? = builder.deploymentStatus
    /**
     * The name of the environment associated with the deployment.
     */
    public val environmentName: kotlin.String? = builder.environmentName
    /**
     * The ID of the deployment.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The ID of the last attempted deployment.
     */
    public val lastAttemptedDeploymentId: kotlin.String? = builder.lastAttemptedDeploymentId
    /**
     * The date and time the deployment was last modified.
     */
    public val lastModifiedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedAt
    /**
     * The ID of the last successful deployment.
     */
    public val lastSucceededDeploymentId: kotlin.String? = builder.lastSucceededDeploymentId
    /**
     * The name of the service instance associated with the deployment.
     */
    public val serviceInstanceName: kotlin.String? = builder.serviceInstanceName
    /**
     * The name of the service associated with the deployment.
     */
    public val serviceName: kotlin.String? = builder.serviceName
    /**
     * The Amazon Resource Name (ARN) of the target of the deployment.
     */
    public val targetArn: kotlin.String? = builder.targetArn
    /**
     * The date and time the target resource was created.
     */
    public val targetResourceCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.targetResourceCreatedAt
    /**
     * The resource type of the deployment target. It can be an environment, service, service instance, or component.
     */
    public val targetResourceType: aws.sdk.kotlin.services.proton.model.DeploymentTargetResourceType? = builder.targetResourceType

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

    override fun toString(): kotlin.String = buildString {
        append("DeploymentSummary(")
        append("arn=$arn,")
        append("completedAt=$completedAt,")
        append("componentName=$componentName,")
        append("createdAt=$createdAt,")
        append("deploymentStatus=$deploymentStatus,")
        append("environmentName=$environmentName,")
        append("id=$id,")
        append("lastAttemptedDeploymentId=$lastAttemptedDeploymentId,")
        append("lastModifiedAt=$lastModifiedAt,")
        append("lastSucceededDeploymentId=$lastSucceededDeploymentId,")
        append("serviceInstanceName=$serviceInstanceName,")
        append("serviceName=$serviceName,")
        append("targetArn=$targetArn,")
        append("targetResourceCreatedAt=$targetResourceCreatedAt,")
        append("targetResourceType=$targetResourceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (completedAt?.hashCode() ?: 0)
        result = 31 * result + (componentName?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (deploymentStatus?.hashCode() ?: 0)
        result = 31 * result + (environmentName?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (lastAttemptedDeploymentId?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedAt?.hashCode() ?: 0)
        result = 31 * result + (lastSucceededDeploymentId?.hashCode() ?: 0)
        result = 31 * result + (serviceInstanceName?.hashCode() ?: 0)
        result = 31 * result + (serviceName?.hashCode() ?: 0)
        result = 31 * result + (targetArn?.hashCode() ?: 0)
        result = 31 * result + (targetResourceCreatedAt?.hashCode() ?: 0)
        result = 31 * result + (targetResourceType?.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 DeploymentSummary

        if (arn != other.arn) return false
        if (completedAt != other.completedAt) return false
        if (componentName != other.componentName) return false
        if (createdAt != other.createdAt) return false
        if (deploymentStatus != other.deploymentStatus) return false
        if (environmentName != other.environmentName) return false
        if (id != other.id) return false
        if (lastAttemptedDeploymentId != other.lastAttemptedDeploymentId) return false
        if (lastModifiedAt != other.lastModifiedAt) return false
        if (lastSucceededDeploymentId != other.lastSucceededDeploymentId) return false
        if (serviceInstanceName != other.serviceInstanceName) return false
        if (serviceName != other.serviceName) return false
        if (targetArn != other.targetArn) return false
        if (targetResourceCreatedAt != other.targetResourceCreatedAt) return false
        if (targetResourceType != other.targetResourceType) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the deployment.
         */
        public var arn: kotlin.String? = null
        /**
         * The date and time the deployment was completed.
         */
        public var completedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the component associated with the deployment.
         */
        public var componentName: kotlin.String? = null
        /**
         * The date and time the deployment was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The current status of the deployment.
         */
        public var deploymentStatus: aws.sdk.kotlin.services.proton.model.DeploymentStatus? = null
        /**
         * The name of the environment associated with the deployment.
         */
        public var environmentName: kotlin.String? = null
        /**
         * The ID of the deployment.
         */
        public var id: kotlin.String? = null
        /**
         * The ID of the last attempted deployment.
         */
        public var lastAttemptedDeploymentId: kotlin.String? = null
        /**
         * The date and time the deployment was last modified.
         */
        public var lastModifiedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ID of the last successful deployment.
         */
        public var lastSucceededDeploymentId: kotlin.String? = null
        /**
         * The name of the service instance associated with the deployment.
         */
        public var serviceInstanceName: kotlin.String? = null
        /**
         * The name of the service associated with the deployment.
         */
        public var serviceName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the target of the deployment.
         */
        public var targetArn: kotlin.String? = null
        /**
         * The date and time the target resource was created.
         */
        public var targetResourceCreatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The resource type of the deployment target. It can be an environment, service, service instance, or component.
         */
        public var targetResourceType: aws.sdk.kotlin.services.proton.model.DeploymentTargetResourceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.DeploymentSummary) : this() {
            this.arn = x.arn
            this.completedAt = x.completedAt
            this.componentName = x.componentName
            this.createdAt = x.createdAt
            this.deploymentStatus = x.deploymentStatus
            this.environmentName = x.environmentName
            this.id = x.id
            this.lastAttemptedDeploymentId = x.lastAttemptedDeploymentId
            this.lastModifiedAt = x.lastModifiedAt
            this.lastSucceededDeploymentId = x.lastSucceededDeploymentId
            this.serviceInstanceName = x.serviceInstanceName
            this.serviceName = x.serviceName
            this.targetArn = x.targetArn
            this.targetResourceCreatedAt = x.targetResourceCreatedAt
            this.targetResourceType = x.targetResourceType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.proton.model.DeploymentSummary = DeploymentSummary(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy