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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.AppflowIntegrationWorkflowMetrics.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.customerprofiles.model



/**
 * Workflow specific execution metrics for `APPFLOW_INTEGRATION` workflow.
 */
public class AppflowIntegrationWorkflowMetrics private constructor(builder: Builder) {
    /**
     * Number of records processed in `APPFLOW_INTEGRATION` workflow.
     */
    public val recordsProcessed: kotlin.Long = builder.recordsProcessed
    /**
     * Total steps completed in `APPFLOW_INTEGRATION` workflow.
     */
    public val stepsCompleted: kotlin.Long = builder.stepsCompleted
    /**
     * Total steps in `APPFLOW_INTEGRATION` workflow.
     */
    public val totalSteps: kotlin.Long = builder.totalSteps

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

    override fun toString(): kotlin.String = buildString {
        append("AppflowIntegrationWorkflowMetrics(")
        append("recordsProcessed=$recordsProcessed,")
        append("stepsCompleted=$stepsCompleted,")
        append("totalSteps=$totalSteps")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = recordsProcessed.hashCode()
        result = 31 * result + (stepsCompleted.hashCode())
        result = 31 * result + (totalSteps.hashCode())
        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 AppflowIntegrationWorkflowMetrics

        if (recordsProcessed != other.recordsProcessed) return false
        if (stepsCompleted != other.stepsCompleted) return false
        if (totalSteps != other.totalSteps) return false

        return true
    }

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

    public class Builder {
        /**
         * Number of records processed in `APPFLOW_INTEGRATION` workflow.
         */
        public var recordsProcessed: kotlin.Long = 0L
        /**
         * Total steps completed in `APPFLOW_INTEGRATION` workflow.
         */
        public var stepsCompleted: kotlin.Long = 0L
        /**
         * Total steps in `APPFLOW_INTEGRATION` workflow.
         */
        public var totalSteps: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.AppflowIntegrationWorkflowMetrics) : this() {
            this.recordsProcessed = x.recordsProcessed
            this.stepsCompleted = x.stepsCompleted
            this.totalSteps = x.totalSteps
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy