Class CfnDeployment.SystemResourceLimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnDeployment.SystemResourceLimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.SystemResourceLimitsProperty>
- Enclosing interface:
- CfnDeployment.SystemResourceLimitsProperty
@Stability(Stable)
public static final class CfnDeployment.SystemResourceLimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeployment.SystemResourceLimitsProperty>
A builder for
CfnDeployment.SystemResourceLimitsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDeployment.SystemResourceLimitsProperty.getCpus()Sets the value ofCfnDeployment.SystemResourceLimitsProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpus
Sets the value ofCfnDeployment.SystemResourceLimitsProperty.getCpus()- Parameters:
cpus- The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the AWS IoT Greengrass Core software doesn't limit the component's CPU usage.- Returns:
this
-
memory
Sets the value ofCfnDeployment.SystemResourceLimitsProperty.getMemory()- Parameters:
memory- The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device. For more information, see Configure system resource limits for components .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeployment.SystemResourceLimitsProperty>- Returns:
- a new instance of
CfnDeployment.SystemResourceLimitsProperty - Throws:
NullPointerException- if any required attribute was not provided
-