Class CfnApplication.MaximumAllowedResourcesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.MaximumAllowedResourcesProperty>
- Enclosing interface:
- CfnApplication.MaximumAllowedResourcesProperty
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. Minimum : 1Maximum : 15
Pattern :
^[1-9][0-9]*(\\s)?(vCPU|vcpu|VCPU)?$
- 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. Minimum : 1Maximum : 15
Pattern :
^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)?$
- Returns:
this
-
disk
Sets the value ofCfnApplication.MaximumAllowedResourcesProperty.getDisk()
- Parameters:
disk
- The maximum allowed disk for an application. Minimum : 1Maximum : 15
Pattern :
^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)$"
- 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
-