Interface UpdateConsumableResourceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>,SdkBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateConsumableResourceRequest
public static interface UpdateConsumableResourceRequest.Builder extends BatchRequest.Builder, SdkPojo, CopyableBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateConsumableResourceRequest.BuilderclientToken(String clientToken)If this parameter is specified and two update requests with identical payloads andclientTokens are received, these requests are considered the same request and the second request is rejected.UpdateConsumableResourceRequest.BuilderconsumableResource(String consumableResource)The name or ARN of the consumable resource to be updated.UpdateConsumableResourceRequest.Builderoperation(String operation)Indicates how the quantity of the consumable resource will be updated.UpdateConsumableResourceRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateConsumableResourceRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateConsumableResourceRequest.Builderquantity(Long quantity)The change in the total quantity of the consumable resource.-
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 Detail
-
consumableResource
UpdateConsumableResourceRequest.Builder consumableResource(String 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
UpdateConsumableResourceRequest.Builder operation(String 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
UpdateConsumableResourceRequest.Builder quantity(Long 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
UpdateConsumableResourceRequest.Builder clientToken(String clientToken)
If this parameter is specified and two update requests with identical payloads and
clientTokens are received, these requests are considered the same request and the second request is rejected. AclientTokenis valid for 8 hours or until one hour after the consumable resource is deleted, whichever is less.- Parameters:
clientToken- If this parameter is specified and two update requests with identical payloads andclientTokens are received, these requests are considered the same request and the second request is rejected. AclientTokenis valid for 8 hours or until one hour after the consumable resource is deleted, whichever is less.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateConsumableResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateConsumableResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-