
commonMain.aws.sdk.kotlin.services.swf.model.SignalExternalWorkflowExecutionDecisionAttributes.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
/**
* Provides the details of the `SignalExternalWorkflowExecution` decision.
*
* **Access Control**
*
* You can use IAM policies to control this decision's access to Amazon SWF resources as follows:
* + Use a `Resource` element with the domain name to limit the action to only specified domains.
* + Use an `Action` element to allow or deny permission to call this action.
* + You cannot use an IAM policy to constrain this action's parameters.
*
* If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's `cause` parameter is set to `OPERATION_NOT_PERMITTED`. For details and example IAM policies, see [Using IAM to Manage Access to Amazon SWF Workflows](https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html) in the *Amazon SWF Developer Guide*.
*/
public class SignalExternalWorkflowExecutionDecisionAttributes private constructor(builder: Builder) {
/**
* The data attached to the event that can be used by the decider in subsequent decision tasks.
*/
public val control: kotlin.String? = builder.control
/**
* The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal.
*/
public val input: kotlin.String? = builder.input
/**
* The `runId` of the workflow execution to be signaled.
*/
public val runId: kotlin.String? = builder.runId
/**
* The name of the signal.The target workflow execution uses the signal name and input to process the signal.
*/
public val signalName: kotlin.String = requireNotNull(builder.signalName) { "A non-null value must be provided for signalName" }
/**
* The `workflowId` of the workflow execution to be signaled.
*/
public val workflowId: kotlin.String = requireNotNull(builder.workflowId) { "A non-null value must be provided for workflowId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.SignalExternalWorkflowExecutionDecisionAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SignalExternalWorkflowExecutionDecisionAttributes(")
append("control=$control,")
append("input=$input,")
append("runId=$runId,")
append("signalName=$signalName,")
append("workflowId=$workflowId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = control?.hashCode() ?: 0
result = 31 * result + (input?.hashCode() ?: 0)
result = 31 * result + (runId?.hashCode() ?: 0)
result = 31 * result + (signalName.hashCode())
result = 31 * result + (workflowId.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 SignalExternalWorkflowExecutionDecisionAttributes
if (control != other.control) 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.SignalExternalWorkflowExecutionDecisionAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The data attached to the event that can be used by the decider in subsequent decision tasks.
*/
public var control: kotlin.String? = null
/**
* The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal.
*/
public var input: kotlin.String? = null
/**
* The `runId` of the workflow execution to be signaled.
*/
public var runId: kotlin.String? = null
/**
* The name of the signal.The target workflow execution uses the signal name and input to process the signal.
*/
public var signalName: kotlin.String? = null
/**
* The `workflowId` of the workflow execution to be signaled.
*/
public var workflowId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.SignalExternalWorkflowExecutionDecisionAttributes) : this() {
this.control = x.control
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.SignalExternalWorkflowExecutionDecisionAttributes = SignalExternalWorkflowExecutionDecisionAttributes(this)
internal fun correctErrors(): Builder {
if (signalName == null) signalName = ""
if (workflowId == null) workflowId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy