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

commonMain.aws.sdk.kotlin.services.swf.model.SignalWorkflowExecutionRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.swf.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SignalWorkflowExecutionRequest private constructor(builder: Builder) {
    /**
     * The name of the domain containing the workflow execution to signal.
     */
    public val domain: kotlin.String? = builder.domain
    /**
     * Data to attach to the `WorkflowExecutionSignaled` event in the target workflow execution's history.
     */
    public val input: kotlin.String? = builder.input
    /**
     * The runId of the workflow execution to signal.
     */
    public val runId: kotlin.String? = builder.runId
    /**
     * The name of the signal. This name must be meaningful to the target workflow.
     */
    public val signalName: kotlin.String? = builder.signalName
    /**
     * The workflowId of the workflow execution to signal.
     */
    public val workflowId: kotlin.String? = builder.workflowId

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

    override fun toString(): kotlin.String = buildString {
        append("SignalWorkflowExecutionRequest(")
        append("domain=$domain,")
        append("input=$input,")
        append("runId=$runId,")
        append("signalName=$signalName,")
        append("workflowId=$workflowId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domain?.hashCode() ?: 0
        result = 31 * result + (input?.hashCode() ?: 0)
        result = 31 * result + (runId?.hashCode() ?: 0)
        result = 31 * result + (signalName?.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 SignalWorkflowExecutionRequest

        if (domain != other.domain) return false
        if (input != other.input) return false
        if (runId != other.runId) return false
        if (signalName != other.signalName) return false
        if (workflowId != other.workflowId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the domain containing the workflow execution to signal.
         */
        public var domain: kotlin.String? = null
        /**
         * Data to attach to the `WorkflowExecutionSignaled` event in the target workflow execution's history.
         */
        public var input: kotlin.String? = null
        /**
         * The runId of the workflow execution to signal.
         */
        public var runId: kotlin.String? = null
        /**
         * The name of the signal. This name must be meaningful to the target workflow.
         */
        public var signalName: kotlin.String? = null
        /**
         * The workflowId of the workflow execution to signal.
         */
        public var workflowId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.swf.model.SignalWorkflowExecutionRequest) : this() {
            this.domain = x.domain
            this.input = x.input
            this.runId = x.runId
            this.signalName = x.signalName
            this.workflowId = x.workflowId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy