Interface CreateFleetInstance.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreateFleetInstance.Builder,,CreateFleetInstance> SdkBuilder<CreateFleetInstance.Builder,,CreateFleetInstance> SdkPojo
- Enclosing class:
CreateFleetInstance
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) The name of the Availability Zone in which the instance was launched.availabilityZoneId(String availabilityZoneId) The ID of the Availability Zone in which the instance was launched.instanceIds(String... instanceIds) The IDs of the instances.instanceIds(Collection<String> instanceIds) The IDs of the instances.instanceType(String instanceType) The instance type.instanceType(InstanceType instanceType) The instance type.default CreateFleetInstance.BuilderlaunchTemplateAndOverrides(Consumer<LaunchTemplateAndOverridesResponse.Builder> launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances.launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances.Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.lifecycle(InstanceLifecycle lifecycle) Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.The value iswindowsfor Windows instances in an EC2 Fleet.platform(PlatformValues platform) The value iswindowsfor Windows instances in an EC2 Fleet.The ID of the subnet in which the instance was launched.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
launchTemplateAndOverrides
CreateFleetInstance.Builder launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
- Parameters:
launchTemplateAndOverrides- The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateAndOverrides
default CreateFleetInstance.Builder launchTemplateAndOverrides(Consumer<LaunchTemplateAndOverridesResponse.Builder> launchTemplateAndOverrides) The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
This is a convenience method that creates an instance of theLaunchTemplateAndOverridesResponse.Builderavoiding the need to create one manually viaLaunchTemplateAndOverridesResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse).- Parameters:
launchTemplateAndOverrides- a consumer that will call methods onLaunchTemplateAndOverridesResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lifecycle
Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.
- Parameters:
lifecycle- Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lifecycle
Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.
- Parameters:
lifecycle- Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block, or Interruptible Capacity Reservation instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceIds
The IDs of the instances.
- Parameters:
instanceIds- The IDs of the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceIds
The IDs of the instances.
- Parameters:
instanceIds- The IDs of the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
windowsfor Windows instances in an EC2 Fleet. Otherwise, the value is blank.- Parameters:
platform- The value iswindowsfor Windows instances in an EC2 Fleet. Otherwise, the value is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
windowsfor Windows instances in an EC2 Fleet. Otherwise, the value is blank.- Parameters:
platform- The value iswindowsfor Windows instances in an EC2 Fleet. Otherwise, the value is blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZoneId
The ID of the Availability Zone in which the instance was launched. For example,
use2-az1.Supported only for fleets of type
instant.- Parameters:
availabilityZoneId- The ID of the Availability Zone in which the instance was launched. For example,use2-az1.Supported only for fleets of type
instant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
The name of the Availability Zone in which the instance was launched. For example,
us-east-2a.Supported only for fleets of type
instant.- Parameters:
availabilityZone- The name of the Availability Zone in which the instance was launched. For example,us-east-2a.Supported only for fleets of type
instant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet in which the instance was launched.
Supported only for fleets of type
instant.- Parameters:
subnetId- The ID of the subnet in which the instance was launched.Supported only for fleets of type
instant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-