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

commonMain.aws.sdk.kotlin.services.osis.model.ChangeProgressStatus.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.osis.model

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

/**
 * The progress details of a pipeline configuration change.
 */
public class ChangeProgressStatus private constructor(builder: Builder) {
    /**
     * Information about the stages that the pipeline is going through to perform the configuration change.
     */
    public val changeProgressStages: List? = builder.changeProgressStages
    /**
     * The time at which the configuration change is made on the pipeline.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The overall status of the pipeline configuration change.
     */
    public val status: aws.sdk.kotlin.services.osis.model.ChangeProgressStatuses? = builder.status
    /**
     * The total number of stages required for the pipeline configuration change.
     */
    public val totalNumberOfStages: kotlin.Int = builder.totalNumberOfStages

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

    override fun toString(): kotlin.String = buildString {
        append("ChangeProgressStatus(")
        append("changeProgressStages=$changeProgressStages,")
        append("startTime=$startTime,")
        append("status=$status,")
        append("totalNumberOfStages=$totalNumberOfStages")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = changeProgressStages?.hashCode() ?: 0
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (totalNumberOfStages)
        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 ChangeProgressStatus

        if (changeProgressStages != other.changeProgressStages) return false
        if (startTime != other.startTime) return false
        if (status != other.status) return false
        if (totalNumberOfStages != other.totalNumberOfStages) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the stages that the pipeline is going through to perform the configuration change.
         */
        public var changeProgressStages: List? = null
        /**
         * The time at which the configuration change is made on the pipeline.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The overall status of the pipeline configuration change.
         */
        public var status: aws.sdk.kotlin.services.osis.model.ChangeProgressStatuses? = null
        /**
         * The total number of stages required for the pipeline configuration change.
         */
        public var totalNumberOfStages: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.osis.model.ChangeProgressStatus) : this() {
            this.changeProgressStages = x.changeProgressStages
            this.startTime = x.startTime
            this.status = x.status
            this.totalNumberOfStages = x.totalNumberOfStages
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy