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