Class ConsumableResourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.batch.ConsumableResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ConsumableResourceProps>
- Enclosing interface:
ConsumableResourceProps
@Stability(Stable)
public static final class ConsumableResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<ConsumableResourceProps>
A builder for
ConsumableResourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consumableResourceName(String consumableResourceName) Sets the value ofConsumableResourceProps.getConsumableResourceName()resourceType(ConsumableResourceType resourceType) Sets the value ofConsumableResourceProps.getResourceType()Sets the value ofConsumableResourceProps.getTags()totalQuantity(Number totalQuantity) Sets the value ofConsumableResourceProps.getTotalQuantity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
totalQuantity
Sets the value ofConsumableResourceProps.getTotalQuantity()- Parameters:
totalQuantity- The total quantity of the consumable resource. This parameter is required. Must be a non-negative integer.- Returns:
this
-
consumableResourceName
@Stability(Stable) public ConsumableResourceProps.Builder consumableResourceName(String consumableResourceName) Sets the value ofConsumableResourceProps.getConsumableResourceName()- Parameters:
consumableResourceName- The name of the consumable resource. The name must be unique within the account and Region. Changing it replaces the resource.- Returns:
this
-
resourceType
@Stability(Stable) public ConsumableResourceProps.Builder resourceType(ConsumableResourceType resourceType) Sets the value ofConsumableResourceProps.getResourceType()- Parameters:
resourceType- The type of consumable resource. Changing this property replaces the resource. Because the name must be unique within the account and Region, changing the type of a resource that has aconsumableResourceNamefails the deployment unless the name is changed as well.- Returns:
this
-
tags
Sets the value ofConsumableResourceProps.getTags()- Parameters:
tags- Tags to apply to the consumable resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ConsumableResourceProps>- Returns:
- a new instance of
ConsumableResourceProps - Throws:
NullPointerException- if any required attribute was not provided
-