Interface StopDurableExecutionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StopDurableExecutionRequest.Builder,,StopDurableExecutionRequest> LambdaRequest.Builder,SdkBuilder<StopDurableExecutionRequest.Builder,,StopDurableExecutionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StopDurableExecutionRequest
@Mutable
@NotThreadSafe
public static interface StopDurableExecutionRequest.Builder
extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<StopDurableExecutionRequest.Builder,StopDurableExecutionRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondurableExecutionArn(String durableExecutionArn) The Amazon Resource Name (ARN) of the durable execution.error(Consumer<ErrorObject.Builder> error) Optional error details explaining why the execution is being stopped.error(ErrorObject error) Optional error details explaining why the execution is being stopped.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
durableExecutionArn
The Amazon Resource Name (ARN) of the durable execution.
- Parameters:
durableExecutionArn- The Amazon Resource Name (ARN) of the durable execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Optional error details explaining why the execution is being stopped.
- Parameters:
error- Optional error details explaining why the execution is being stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Optional error details explaining why the execution is being stopped.
This is a convenience method that creates an instance of theErrorObject.Builderavoiding the need to create one manually viaErrorObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorObject).- Parameters:
error- a consumer that will call methods onErrorObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StopDurableExecutionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StopDurableExecutionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-