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

commonMain.aws.sdk.kotlin.services.transfer.model.SendWorkflowStepStateRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transfer.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SendWorkflowStepStateRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for the execution of a workflow.
     */
    public val executionId: kotlin.String? = builder.executionId
    /**
     * Indicates whether the specified step succeeded or failed.
     */
    public val status: aws.sdk.kotlin.services.transfer.model.CustomStepStatus? = builder.status
    /**
     * Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.
     */
    public val token: kotlin.String? = builder.token
    /**
     * A unique identifier for the workflow.
     */
    public val workflowId: kotlin.String? = builder.workflowId

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

    override fun toString(): kotlin.String = buildString {
        append("SendWorkflowStepStateRequest(")
        append("executionId=$executionId,")
        append("status=$status,")
        append("token=$token,")
        append("workflowId=$workflowId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = executionId?.hashCode() ?: 0
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (token?.hashCode() ?: 0)
        result = 31 * result + (workflowId?.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 SendWorkflowStepStateRequest

        if (executionId != other.executionId) return false
        if (status != other.status) return false
        if (token != other.token) return false
        if (workflowId != other.workflowId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique identifier for the execution of a workflow.
         */
        public var executionId: kotlin.String? = null
        /**
         * Indicates whether the specified step succeeded or failed.
         */
        public var status: aws.sdk.kotlin.services.transfer.model.CustomStepStatus? = null
        /**
         * Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.
         */
        public var token: kotlin.String? = null
        /**
         * A unique identifier for the workflow.
         */
        public var workflowId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.transfer.model.SendWorkflowStepStateRequest) : this() {
            this.executionId = x.executionId
            this.status = x.status
            this.token = x.token
            this.workflowId = x.workflowId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy