Class CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.deadline.CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty>
- Enclosing interface:
CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty
@Stability(Stable)
public static final class CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty>
A builder for
CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedInstanceTypes
(List<String> allowedInstanceTypes) build()
Builds the configured instance.cpuArchitectureType
(String cpuArchitectureType) customAmounts
(List<? extends Object> customAmounts) customAmounts
(IResolvable customAmounts) customAttributes
(List<? extends Object> customAttributes) customAttributes
(IResolvable customAttributes) excludedInstanceTypes
(List<String> excludedInstanceTypes) memoryMiB
(IResolvable memoryMiB) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getMemoryMiB()
memoryMiB
(CfnFleet.MemoryMiBRangeProperty memoryMiB) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getMemoryMiB()
Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getOsFamily()
rootEbsVolume
(IResolvable rootEbsVolume) rootEbsVolume
(CfnFleet.Ec2EbsVolumeProperty rootEbsVolume) vCpuCount
(IResolvable vCpuCount) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getVCpuCount()
vCpuCount
(CfnFleet.VCpuCountRangeProperty vCpuCount) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getVCpuCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpuArchitectureType
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder cpuArchitectureType(String cpuArchitectureType) - Parameters:
cpuArchitectureType
- The CPU architecture type. This parameter is required.- Returns:
this
-
memoryMiB
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder memoryMiB(IResolvable memoryMiB) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getMemoryMiB()
- Parameters:
memoryMiB
- The memory, as MiB, for the Amazon EC2 instance type. This parameter is required.- Returns:
this
-
memoryMiB
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder memoryMiB(CfnFleet.MemoryMiBRangeProperty memoryMiB) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getMemoryMiB()
- Parameters:
memoryMiB
- The memory, as MiB, for the Amazon EC2 instance type. This parameter is required.- Returns:
this
-
osFamily
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder osFamily(String osFamily) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getOsFamily()
- Parameters:
osFamily
- The operating system (OS) family. This parameter is required.- Returns:
this
-
vCpuCount
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder vCpuCount(IResolvable vCpuCount) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getVCpuCount()
- Parameters:
vCpuCount
- The amount of vCPU to require for instances in this fleet. This parameter is required.- Returns:
this
-
vCpuCount
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder vCpuCount(CfnFleet.VCpuCountRangeProperty vCpuCount) Sets the value ofCfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.getVCpuCount()
- Parameters:
vCpuCount
- The amount of vCPU to require for instances in this fleet. This parameter is required.- Returns:
this
-
allowedInstanceTypes
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder allowedInstanceTypes(List<String> allowedInstanceTypes) - Parameters:
allowedInstanceTypes
- The allowable Amazon EC2 instance types.- Returns:
this
-
customAmounts
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAmounts(IResolvable customAmounts) - Parameters:
customAmounts
- The custom capability amounts to require for instances in this fleet.- Returns:
this
-
customAmounts
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAmounts(List<? extends Object> customAmounts) - Parameters:
customAmounts
- The custom capability amounts to require for instances in this fleet.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAttributes(IResolvable customAttributes) - Parameters:
customAttributes
- The custom capability attributes to require for instances in this fleet.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAttributes(List<? extends Object> customAttributes) - Parameters:
customAttributes
- The custom capability attributes to require for instances in this fleet.- Returns:
this
-
excludedInstanceTypes
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder excludedInstanceTypes(List<String> excludedInstanceTypes) - Parameters:
excludedInstanceTypes
- The instance types to exclude from the fleet.- Returns:
this
-
rootEbsVolume
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder rootEbsVolume(IResolvable rootEbsVolume) - Parameters:
rootEbsVolume
- The root EBS volume.- Returns:
this
-
rootEbsVolume
@Stability(Stable) public CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty.Builder rootEbsVolume(CfnFleet.Ec2EbsVolumeProperty rootEbsVolume) - Parameters:
rootEbsVolume
- The root EBS volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty>
- Returns:
- a new instance of
CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-