Class CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty>
- Enclosing interface:
CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceleratorCapabilities(CfnFleetPropsMixin.AcceleratorCapabilitiesProperty acceleratorCapabilities) acceleratorCapabilities(IResolvable acceleratorCapabilities) allowedInstanceTypes(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) rootEbsVolume(CfnFleetPropsMixin.Ec2EbsVolumeProperty rootEbsVolume) rootEbsVolume(IResolvable rootEbsVolume) vCpuCount(IResolvable vCpuCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceleratorCapabilities
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder acceleratorCapabilities(IResolvable acceleratorCapabilities) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getAcceleratorCapabilities()- Parameters:
acceleratorCapabilities- Describes the GPU accelerator capabilities required for worker host instances in this fleet.- Returns:
this
-
acceleratorCapabilities
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder acceleratorCapabilities(CfnFleetPropsMixin.AcceleratorCapabilitiesProperty acceleratorCapabilities) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getAcceleratorCapabilities()- Parameters:
acceleratorCapabilities- Describes the GPU accelerator capabilities required for worker host instances in this fleet.- Returns:
this
-
allowedInstanceTypes
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder allowedInstanceTypes(List<String> allowedInstanceTypes) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getAllowedInstanceTypes()- Parameters:
allowedInstanceTypes- The allowable Amazon EC2 instance types.- Returns:
this
-
cpuArchitectureType
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder cpuArchitectureType(String cpuArchitectureType) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getCpuArchitectureType()- Parameters:
cpuArchitectureType- The CPU architecture type.- Returns:
this
-
customAmounts
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAmounts(IResolvable customAmounts) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getCustomAmounts()- Parameters:
customAmounts- The custom capability amounts to require for instances in this fleet.- Returns:
this
-
customAmounts
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAmounts(List<? extends Object> customAmounts) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getCustomAmounts()- Parameters:
customAmounts- The custom capability amounts to require for instances in this fleet.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAttributes(IResolvable customAttributes) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getCustomAttributes()- Parameters:
customAttributes- The custom capability attributes to require for instances in this fleet.- Returns:
this
-
customAttributes
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder customAttributes(List<? extends Object> customAttributes) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getCustomAttributes()- Parameters:
customAttributes- The custom capability attributes to require for instances in this fleet.- Returns:
this
-
excludedInstanceTypes
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder excludedInstanceTypes(List<String> excludedInstanceTypes) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getExcludedInstanceTypes()- Parameters:
excludedInstanceTypes- The instance types to exclude from the fleet.- Returns:
this
-
memoryMiB
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder memoryMiB(IResolvable memoryMiB) - Parameters:
memoryMiB- The memory, as MiB, for the Amazon EC2 instance type.- Returns:
this
-
memoryMiB
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder memoryMiB(CfnFleetPropsMixin.MemoryMiBRangeProperty memoryMiB) - Parameters:
memoryMiB- The memory, as MiB, for the Amazon EC2 instance type.- Returns:
this
-
osFamily
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder osFamily(String osFamily) - Parameters:
osFamily- The operating system (OS) family.- Returns:
this
-
rootEbsVolume
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder rootEbsVolume(IResolvable rootEbsVolume) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getRootEbsVolume()- Parameters:
rootEbsVolume- The root EBS volume.- Returns:
this
-
rootEbsVolume
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder rootEbsVolume(CfnFleetPropsMixin.Ec2EbsVolumeProperty rootEbsVolume) Sets the value ofCfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.getRootEbsVolume()- Parameters:
rootEbsVolume- The root EBS volume.- Returns:
this
-
vCpuCount
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder vCpuCount(IResolvable vCpuCount) - Parameters:
vCpuCount- The amount of vCPU to require for instances in this fleet.- Returns:
this
-
vCpuCount
@Stability(Stable) public CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty.Builder vCpuCount(CfnFleetPropsMixin.VCpuCountRangeProperty vCpuCount) - Parameters:
vCpuCount- The amount of vCPU to require for instances in this fleet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-