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

commonMain.aws.sdk.kotlin.services.glue.model.WorkflowRunStatistics.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Workflow run statistics provides statistics about the workflow run.
 */
public class WorkflowRunStatistics private constructor(builder: Builder) {
    /**
     * Indicates the count of job runs in the ERROR state in the workflow run.
     */
    public val erroredActions: kotlin.Int = builder.erroredActions
    /**
     * Total number of Actions that have failed.
     */
    public val failedActions: kotlin.Int = builder.failedActions
    /**
     * Total number Actions in running state.
     */
    public val runningActions: kotlin.Int = builder.runningActions
    /**
     * Total number of Actions that have stopped.
     */
    public val stoppedActions: kotlin.Int = builder.stoppedActions
    /**
     * Total number of Actions that have succeeded.
     */
    public val succeededActions: kotlin.Int = builder.succeededActions
    /**
     * Total number of Actions that timed out.
     */
    public val timeoutActions: kotlin.Int = builder.timeoutActions
    /**
     * Total number of Actions in the workflow run.
     */
    public val totalActions: kotlin.Int = builder.totalActions
    /**
     * Indicates the count of job runs in WAITING state in the workflow run.
     */
    public val waitingActions: kotlin.Int = builder.waitingActions

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

    override fun toString(): kotlin.String = buildString {
        append("WorkflowRunStatistics(")
        append("erroredActions=$erroredActions,")
        append("failedActions=$failedActions,")
        append("runningActions=$runningActions,")
        append("stoppedActions=$stoppedActions,")
        append("succeededActions=$succeededActions,")
        append("timeoutActions=$timeoutActions,")
        append("totalActions=$totalActions,")
        append("waitingActions=$waitingActions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = erroredActions
        result = 31 * result + (failedActions)
        result = 31 * result + (runningActions)
        result = 31 * result + (stoppedActions)
        result = 31 * result + (succeededActions)
        result = 31 * result + (timeoutActions)
        result = 31 * result + (totalActions)
        result = 31 * result + (waitingActions)
        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 WorkflowRunStatistics

        if (erroredActions != other.erroredActions) return false
        if (failedActions != other.failedActions) return false
        if (runningActions != other.runningActions) return false
        if (stoppedActions != other.stoppedActions) return false
        if (succeededActions != other.succeededActions) return false
        if (timeoutActions != other.timeoutActions) return false
        if (totalActions != other.totalActions) return false
        if (waitingActions != other.waitingActions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Indicates the count of job runs in the ERROR state in the workflow run.
         */
        public var erroredActions: kotlin.Int = 0
        /**
         * Total number of Actions that have failed.
         */
        public var failedActions: kotlin.Int = 0
        /**
         * Total number Actions in running state.
         */
        public var runningActions: kotlin.Int = 0
        /**
         * Total number of Actions that have stopped.
         */
        public var stoppedActions: kotlin.Int = 0
        /**
         * Total number of Actions that have succeeded.
         */
        public var succeededActions: kotlin.Int = 0
        /**
         * Total number of Actions that timed out.
         */
        public var timeoutActions: kotlin.Int = 0
        /**
         * Total number of Actions in the workflow run.
         */
        public var totalActions: kotlin.Int = 0
        /**
         * Indicates the count of job runs in WAITING state in the workflow run.
         */
        public var waitingActions: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.WorkflowRunStatistics) : this() {
            this.erroredActions = x.erroredActions
            this.failedActions = x.failedActions
            this.runningActions = x.runningActions
            this.stoppedActions = x.stoppedActions
            this.succeededActions = x.succeededActions
            this.timeoutActions = x.timeoutActions
            this.totalActions = x.totalActions
            this.waitingActions = x.waitingActions
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy