Interface CancelJobRunRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CancelJobRunRequest.Builder,
,CancelJobRunRequest> EmrServerlessRequest.Builder
,SdkBuilder<CancelJobRunRequest.Builder,
,CancelJobRunRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CancelJobRunRequest
@Mutable
@NotThreadSafe
public static interface CancelJobRunRequest.Builder
extends EmrServerlessRequest.Builder, SdkPojo, CopyableBuilder<CancelJobRunRequest.Builder,CancelJobRunRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The ID of the application on which the job run will be canceled.The ID of the job run to cancel.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.shutdownGracePeriodInSeconds
(Integer shutdownGracePeriodInSeconds) The duration in seconds to wait before forcefully terminating the job after cancellation is requested.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.emrserverless.model.EmrServerlessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The ID of the application on which the job run will be canceled.
- Parameters:
applicationId
- The ID of the application on which the job run will be canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobRunId
The ID of the job run to cancel.
- Parameters:
jobRunId
- The ID of the job run to cancel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shutdownGracePeriodInSeconds
The duration in seconds to wait before forcefully terminating the job after cancellation is requested.
- Parameters:
shutdownGracePeriodInSeconds
- The duration in seconds to wait before forcefully terminating the job after cancellation is requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CancelJobRunRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CancelJobRunRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-