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
-
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
-CfnJobDefinition.ResourcesProperty.Limits
.- Returns:
this
-
requests
Sets the value ofCfnJobDefinition.ResourcesProperty.getRequests()
- Parameters:
requests
-CfnJobDefinition.ResourcesProperty.Requests
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.ResourcesProperty>
- Returns:
- a new instance of
CfnJobDefinition.ResourcesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-