Interface UpdateConsumableResourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<UpdateConsumableResourceRequest.Builder,,UpdateConsumableResourceRequest> SdkBuilder<UpdateConsumableResourceRequest.Builder,,UpdateConsumableResourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateConsumableResourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) If this parameter is specified and two update requests with identical payloads andclientTokens are received, these requests are considered the same request.consumableResource(String consumableResource) The name or ARN of the consumable resource to be updated.Indicates how the quantity of the consumable resource will be updated.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The change in the total quantity of the consumable resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.batch.model.BatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
consumableResource
The name or ARN of the consumable resource to be updated.
- Parameters:
consumableResource- The name or ARN of the consumable resource to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operation
Indicates how the quantity of the consumable resource will be updated. Must be one of:
-
SETSets the quantity of the resource to the value specified by the
quantityparameter. -
ADDIncreases the quantity of the resource by the value specified by the
quantityparameter. -
REMOVEReduces the quantity of the resource by the value specified by the
quantityparameter.
- Parameters:
operation- Indicates how the quantity of the consumable resource will be updated. Must be one of:-
SETSets the quantity of the resource to the value specified by the
quantityparameter. -
ADDIncreases the quantity of the resource by the value specified by the
quantityparameter. -
REMOVEReduces the quantity of the resource by the value specified by the
quantityparameter.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
quantity
The change in the total quantity of the consumable resource. The
operationparameter determines whether the value specified here will be the new total quantity, or the amount by which the total quantity will be increased or reduced. Must be a non-negative value.- Parameters:
quantity- The change in the total quantity of the consumable resource. Theoperationparameter determines whether the value specified here will be the new total quantity, or the amount by which the total quantity will be increased or reduced. Must be a non-negative value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
If this parameter is specified and two update requests with identical payloads and
clientTokens are received, these requests are considered the same request. Both requests will succeed, but the update will only happen once. AclientTokenis valid for 8 hours.- Parameters:
clientToken- If this parameter is specified and two update requests with identical payloads andclientTokens are received, these requests are considered the same request. Both requests will succeed, but the update will only happen once. AclientTokenis valid for 8 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateConsumableResourceRequest.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
UpdateConsumableResourceRequest.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.
-