Class CfnFleetPropsMixin.ComputeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnFleetPropsMixin.ComputeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ComputeConfigurationProperty>
- Enclosing interface:
CfnFleetPropsMixin.ComputeConfigurationProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ComputeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ComputeConfigurationProperty>
A builder for
CfnFleetPropsMixin.ComputeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getDisk()instanceType(String instanceType) Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getInstanceType()machineType(String machineType) Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getMachineType()Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getMemory()Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getVCpu()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disk
Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getDisk()- Parameters:
disk- The amount of disk space of the instance type included in your fleet.- Returns:
this
-
instanceType
@Stability(Stable) public CfnFleetPropsMixin.ComputeConfigurationProperty.Builder instanceType(String instanceType) Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getInstanceType()- Parameters:
instanceType- The EC2 instance type to be launched in your fleet.- Returns:
this
-
machineType
@Stability(Stable) public CfnFleetPropsMixin.ComputeConfigurationProperty.Builder machineType(String machineType) Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getMachineType()- Parameters:
machineType- The machine type of the instance type included in your fleet.- Returns:
this
-
memory
@Stability(Stable) public CfnFleetPropsMixin.ComputeConfigurationProperty.Builder memory(Number memory) Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getMemory()- Parameters:
memory- The amount of memory of the instance type included in your fleet.- Returns:
this
-
vCpu
Sets the value ofCfnFleetPropsMixin.ComputeConfigurationProperty.getVCpu()- Parameters:
vCpu- The number of vCPUs of the instance type included in your fleet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.ComputeConfigurationProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ComputeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-