Class CfnApplication.MaximumAllowedResourcesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emrserverless.CfnApplication.MaximumAllowedResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.MaximumAllowedResourcesProperty>
- Enclosing interface:
CfnApplication.MaximumAllowedResourcesProperty
@Stability(Stable)
public static final class CfnApplication.MaximumAllowedResourcesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.MaximumAllowedResourcesProperty>
A builder for
CfnApplication.MaximumAllowedResourcesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getCpu()
Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getDisk()
Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getCpu()
- Parameters:
cpu
- The maximum allowed CPU for an application. This parameter is required.- Returns:
this
-
memory
@Stability(Stable) public CfnApplication.MaximumAllowedResourcesProperty.Builder memory(String memory) Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getMemory()
- Parameters:
memory
- The maximum allowed resources for an application. This parameter is required.- Returns:
this
-
disk
Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getDisk()
- Parameters:
disk
- The maximum allowed disk for an application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.MaximumAllowedResourcesProperty>
- Returns:
- a new instance of
CfnApplication.MaximumAllowedResourcesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-