
commonMain.aws.sdk.kotlin.services.pipes.model.PipeTargetStateMachineParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The parameters for using a Step Functions state machine as a target.
*/
public class PipeTargetStateMachineParameters private constructor(builder: Builder) {
/**
* Specify whether to invoke the Step Functions state machine synchronously or asynchronously.
* + `REQUEST_RESPONSE` (default) - Invoke synchronously. For more information, see [StartSyncExecution](https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartSyncExecution.html) in the *Step Functions API Reference*.`REQUEST_RESPONSE` is not supported for `STANDARD` state machine workflows.
* + `FIRE_AND_FORGET` - Invoke asynchronously. For more information, see [StartExecution](https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html) in the *Step Functions API Reference*.
*
* For more information, see [Invocation types](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-invocation) in the *Amazon EventBridge User Guide*.
*/
public val invocationType: aws.sdk.kotlin.services.pipes.model.PipeTargetInvocationType? = builder.invocationType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.PipeTargetStateMachineParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PipeTargetStateMachineParameters(")
append("invocationType=$invocationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = invocationType?.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 PipeTargetStateMachineParameters
if (invocationType != other.invocationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.PipeTargetStateMachineParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specify whether to invoke the Step Functions state machine synchronously or asynchronously.
* + `REQUEST_RESPONSE` (default) - Invoke synchronously. For more information, see [StartSyncExecution](https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartSyncExecution.html) in the *Step Functions API Reference*.`REQUEST_RESPONSE` is not supported for `STANDARD` state machine workflows.
* + `FIRE_AND_FORGET` - Invoke asynchronously. For more information, see [StartExecution](https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html) in the *Step Functions API Reference*.
*
* For more information, see [Invocation types](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-invocation) in the *Amazon EventBridge User Guide*.
*/
public var invocationType: aws.sdk.kotlin.services.pipes.model.PipeTargetInvocationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.PipeTargetStateMachineParameters) : this() {
this.invocationType = x.invocationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.PipeTargetStateMachineParameters = PipeTargetStateMachineParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy