Class CfnConsumableResourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnConsumableResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConsumableResourceProps>
- Enclosing interface:
CfnConsumableResourceProps
@Stability(Stable)
public static final class CfnConsumableResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConsumableResourceProps>
A builder for
CfnConsumableResourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consumableResourceName(String consumableResourceName) Sets the value ofCfnConsumableResourceProps.getConsumableResourceName()resourceType(String resourceType) Sets the value ofCfnConsumableResourceProps.getResourceType()Sets the value ofCfnConsumableResourceProps.getTags()totalQuantity(Number totalQuantity) Sets the value ofCfnConsumableResourceProps.getTotalQuantity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
Sets the value ofCfnConsumableResourceProps.getResourceType()- Parameters:
resourceType- Indicates whether the resource is available to be re-used after a job completes. Can be one of:. This parameter is required.REPLENISHABLENON_REPLENISHABLE
- Returns:
this
-
totalQuantity
Sets the value ofCfnConsumableResourceProps.getTotalQuantity()- Parameters:
totalQuantity- The total amount of the consumable resource that is available. This parameter is required.- Returns:
this
-
consumableResourceName
@Stability(Stable) public CfnConsumableResourceProps.Builder consumableResourceName(String consumableResourceName) Sets the value ofCfnConsumableResourceProps.getConsumableResourceName()- Parameters:
consumableResourceName- The name of the consumable resource.- Returns:
this
-
tags
Sets the value ofCfnConsumableResourceProps.getTags()- 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 AWS Batch resources .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConsumableResourceProps>- Returns:
- a new instance of
CfnConsumableResourceProps - Throws:
NullPointerException- if any required attribute was not provided
-