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