Interface FleetLaunchTemplateSpecificationRequest.Builder

  • Method Details

    • launchTemplateId

      FleetLaunchTemplateSpecificationRequest.Builder launchTemplateId(String launchTemplateId)

      The ID of the launch template.

      You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

      Parameters:
      launchTemplateId - The ID of the launch template.

      You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchTemplateName

      FleetLaunchTemplateSpecificationRequest.Builder launchTemplateName(String launchTemplateName)

      The name of the launch template.

      You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

      Parameters:
      launchTemplateName - The name of the launch template.

      You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

      If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

      If the value is $Default, Amazon EC2 uses the default version of the launch template.

      Parameters:
      version - The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

      If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

      If the value is $Default, Amazon EC2 uses the default version of the launch template.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchTemplateSpecificationUserData

      FleetLaunchTemplateSpecificationRequest.Builder launchTemplateSpecificationUserData(String launchTemplateSpecificationUserData)

      The base64-encoded user data for instances launched by the fleet. User data is limited to 16 KB, in raw form, before it is base64-encoded.

      Supported only for fleets of type instant.

      Parameters:
      launchTemplateSpecificationUserData - The base64-encoded user data for instances launched by the fleet. User data is limited to 16 KB, in raw form, before it is base64-encoded.

      Supported only for fleets of type instant.

      Returns:
      Returns a reference to this object so that method calls can be chained together.