Interface ServiceManagedEc2InstanceCapabilities.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceManagedEc2InstanceCapabilities.Builder,ServiceManagedEc2InstanceCapabilities>,SdkBuilder<ServiceManagedEc2InstanceCapabilities.Builder,ServiceManagedEc2InstanceCapabilities>,SdkPojo
- Enclosing class:
- ServiceManagedEc2InstanceCapabilities
public static interface ServiceManagedEc2InstanceCapabilities.Builder extends SdkPojo, CopyableBuilder<ServiceManagedEc2InstanceCapabilities.Builder,ServiceManagedEc2InstanceCapabilities>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
allowedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder allowedInstanceTypes(Collection<String> allowedInstanceTypes)
The allowable Amazon EC2 instance types.
- Parameters:
allowedInstanceTypes- The allowable Amazon EC2 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder allowedInstanceTypes(String... allowedInstanceTypes)
The allowable Amazon EC2 instance types.
- Parameters:
allowedInstanceTypes- The allowable Amazon EC2 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuArchitectureType
ServiceManagedEc2InstanceCapabilities.Builder cpuArchitectureType(String cpuArchitectureType)
The CPU architecture type.
- Parameters:
cpuArchitectureType- The CPU architecture type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CpuArchitectureType,CpuArchitectureType
-
cpuArchitectureType
ServiceManagedEc2InstanceCapabilities.Builder cpuArchitectureType(CpuArchitectureType cpuArchitectureType)
The CPU architecture type.
- Parameters:
cpuArchitectureType- The CPU architecture type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CpuArchitectureType,CpuArchitectureType
-
customAmounts
ServiceManagedEc2InstanceCapabilities.Builder customAmounts(Collection<FleetAmountCapability> customAmounts)
The custom capability amounts to require for instances in this fleet.
- Parameters:
customAmounts- The custom capability amounts to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmounts
ServiceManagedEc2InstanceCapabilities.Builder customAmounts(FleetAmountCapability... customAmounts)
The custom capability amounts to require for instances in this fleet.
- Parameters:
customAmounts- The custom capability amounts to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmounts
ServiceManagedEc2InstanceCapabilities.Builder customAmounts(Consumer<FleetAmountCapability.Builder>... customAmounts)
The custom capability amounts to require for instances in this fleet.
This is a convenience method that creates an instance of theFleetAmountCapability.Builderavoiding the need to create one manually viaFleetAmountCapability.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#customAmounts(List.) - Parameters:
customAmounts- a consumer that will call methods onFleetAmountCapability.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#customAmounts(java.util.Collection)
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(Collection<FleetAttributeCapability> customAttributes)
The custom capability attributes to require for instances in this fleet.
- Parameters:
customAttributes- The custom capability attributes to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(FleetAttributeCapability... customAttributes)
The custom capability attributes to require for instances in this fleet.
- Parameters:
customAttributes- The custom capability attributes to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(Consumer<FleetAttributeCapability.Builder>... customAttributes)
The custom capability attributes to require for instances in this fleet.
This is a convenience method that creates an instance of theFleetAttributeCapability.Builderavoiding the need to create one manually viaFleetAttributeCapability.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#customAttributes(List.) - Parameters:
customAttributes- a consumer that will call methods onFleetAttributeCapability.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#customAttributes(java.util.Collection)
-
excludedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder excludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude from the fleet.
- Parameters:
excludedInstanceTypes- The instance types to exclude from the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder excludedInstanceTypes(String... excludedInstanceTypes)
The instance types to exclude from the fleet.
- Parameters:
excludedInstanceTypes- The instance types to exclude from the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryMiB
ServiceManagedEc2InstanceCapabilities.Builder memoryMiB(MemoryMiBRange memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
- Parameters:
memoryMiB- The memory, as MiB, for the Amazon EC2 instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryMiB
default ServiceManagedEc2InstanceCapabilities.Builder memoryMiB(Consumer<MemoryMiBRange.Builder> memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
This is a convenience method that creates an instance of theMemoryMiBRange.Builderavoiding the need to create one manually viaMemoryMiBRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemoryMiB(MemoryMiBRange).- Parameters:
memoryMiB- a consumer that will call methods onMemoryMiBRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
memoryMiB(MemoryMiBRange)
-
osFamily
ServiceManagedEc2InstanceCapabilities.Builder osFamily(String osFamily)
The operating system (OS) family.
- Parameters:
osFamily- The operating system (OS) family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceManagedFleetOperatingSystemFamily,ServiceManagedFleetOperatingSystemFamily
-
osFamily
ServiceManagedEc2InstanceCapabilities.Builder osFamily(ServiceManagedFleetOperatingSystemFamily osFamily)
The operating system (OS) family.
- Parameters:
osFamily- The operating system (OS) family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ServiceManagedFleetOperatingSystemFamily,ServiceManagedFleetOperatingSystemFamily
-
rootEbsVolume
ServiceManagedEc2InstanceCapabilities.Builder rootEbsVolume(Ec2EbsVolume rootEbsVolume)
The root EBS volume.
- Parameters:
rootEbsVolume- The root EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootEbsVolume
default ServiceManagedEc2InstanceCapabilities.Builder rootEbsVolume(Consumer<Ec2EbsVolume.Builder> rootEbsVolume)
The root EBS volume.
This is a convenience method that creates an instance of theEc2EbsVolume.Builderavoiding the need to create one manually viaEc2EbsVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torootEbsVolume(Ec2EbsVolume).- Parameters:
rootEbsVolume- a consumer that will call methods onEc2EbsVolume.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rootEbsVolume(Ec2EbsVolume)
-
vCpuCount
ServiceManagedEc2InstanceCapabilities.Builder vCpuCount(VCpuCountRange vCpuCount)
The amount of vCPU to require for instances in this fleet.
- Parameters:
vCpuCount- The amount of vCPU to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vCpuCount
default ServiceManagedEc2InstanceCapabilities.Builder vCpuCount(Consumer<VCpuCountRange.Builder> vCpuCount)
The amount of vCPU to require for instances in this fleet.
This is a convenience method that creates an instance of theVCpuCountRange.Builderavoiding the need to create one manually viaVCpuCountRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovCpuCount(VCpuCountRange).- Parameters:
vCpuCount- a consumer that will call methods onVCpuCountRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vCpuCount(VCpuCountRange)
-
-