Interface CreateConsumableResourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BatchRequest.Builder
,Buildable
,CopyableBuilder<CreateConsumableResourceRequest.Builder,
,CreateConsumableResourceRequest> SdkBuilder<CreateConsumableResourceRequest.Builder,
,CreateConsumableResourceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateConsumableResourceRequest
@Mutable
@NotThreadSafe
public static interface CreateConsumableResourceRequest.Builder
extends BatchRequest.Builder, SdkPojo, CopyableBuilder<CreateConsumableResourceRequest.Builder,CreateConsumableResourceRequest>
-
Method Summary
Modifier and TypeMethodDescriptionconsumableResourceName
(String consumableResourceName) The name of the consumable resource.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceType
(String resourceType) Indicates whether the resource is available to be re-used after a job completes.The tags that you apply to the consumable resource to help you categorize and organize your resources.totalQuantity
(Long totalQuantity) The total amount of the consumable resource that is available.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.batch.model.BatchRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
consumableResourceName
The name of the consumable resource. Must be unique.
- Parameters:
consumableResourceName
- The name of the consumable resource. Must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalQuantity
The total amount of the consumable resource that is available. Must be non-negative.
- Parameters:
totalQuantity
- The total amount of the consumable resource that is available. Must be non-negative.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
Indicates whether the resource is available to be re-used after a job completes. Can be one of:
-
REPLENISHABLE
(default) -
NON_REPLENISHABLE
- Parameters:
resourceType
- Indicates whether the resource is available to be re-used after a job completes. Can be one of:-
REPLENISHABLE
(default) -
NON_REPLENISHABLE
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.
- Parameters:
tags
- The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateConsumableResourceRequest.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
CreateConsumableResourceRequest.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.
-