Class CfnJobDefinition.ResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.ResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.ResourcesProperty>
- Enclosing interface:
CfnJobDefinition.ResourcesProperty
@Stability(Stable)
public static final class CfnJobDefinition.ResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.ResourcesProperty>
A builder for
CfnJobDefinition.ResourcesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinition.ResourcesProperty.getLimits()Sets the value ofCfnJobDefinition.ResourcesProperty.getRequests()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limits
Sets the value ofCfnJobDefinition.ResourcesProperty.getLimits()- Parameters:
limits- the value to be set.- Returns:
this
-
requests
Sets the value ofCfnJobDefinition.ResourcesProperty.getRequests()- Parameters:
requests- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.ResourcesProperty>- Returns:
- a new instance of
CfnJobDefinition.ResourcesProperty - Throws:
NullPointerException- if any required attribute was not provided
-