Class UpdateConsumableResourceRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.batch.model.BatchRequest
-
- software.amazon.awssdk.services.batch.model.UpdateConsumableResourceRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateConsumableResourceRequest extends BatchRequest implements ToCopyableBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateConsumableResourceRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateConsumableResourceRequest.Builderbuilder()StringclientToken()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.StringconsumableResource()The name or ARN of the consumable resource to be updated.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringoperation()Indicates how the quantity of the consumable resource will be updated.Longquantity()The change in the total quantity of the consumable resource.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UpdateConsumableResourceRequest.Builder>serializableBuilderClass()UpdateConsumableResourceRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
consumableResource
public final String consumableResource()
The name or ARN of the consumable resource to be updated.
- Returns:
- The name or ARN of the consumable resource to be updated.
-
operation
public final 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.
- Returns:
- 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.
-
-
-
quantity
public final 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.- Returns:
- 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.
-
clientToken
public final 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.- Returns:
- 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.
-
toBuilder
public UpdateConsumableResourceRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateConsumableResourceRequest.Builder,UpdateConsumableResourceRequest>- Specified by:
toBuilderin classBatchRequest
-
builder
public static UpdateConsumableResourceRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateConsumableResourceRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-