Interface CreateFleetInstance.Builder

  • 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 the LaunchTemplateAndOverridesResponse.Builder avoiding the need to create one manually via LaunchTemplateAndOverridesResponse.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to launchTemplateAndOverrides(LaunchTemplateAndOverridesResponse).

      Parameters:
      launchTemplateAndOverrides - a consumer that will call methods on LaunchTemplateAndOverridesResponse.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lifecycle

      CreateFleetInstance.Builder lifecycle(String 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

      CreateFleetInstance.Builder instanceIds(Collection<String> 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

      CreateFleetInstance.Builder instanceIds(String... 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

      CreateFleetInstance.Builder instanceType(String 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

      CreateFleetInstance.Builder instanceType(InstanceType 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

      CreateFleetInstance.Builder platform(String platform)

      The value is windows for Windows instances in an EC2 Fleet. Otherwise, the value is blank.

      Parameters:
      platform - The value is windows for 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 windows for Windows instances in an EC2 Fleet. Otherwise, the value is blank.

      Parameters:
      platform - The value is windows for 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

      CreateFleetInstance.Builder availabilityZoneId(String 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

      CreateFleetInstance.Builder availabilityZone(String 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

      CreateFleetInstance.Builder subnetId(String 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.