Interface InstanceGroupMetadata.Builder

  • Method Details

    • failureMessage

      InstanceGroupMetadata.Builder failureMessage(String failureMessage)

      An error message describing why the instance group level operation (such as creating, scaling, or deleting) failed.

      Parameters:
      failureMessage - An error message describing why the instance group level operation (such as creating, scaling, or deleting) failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneId

      InstanceGroupMetadata.Builder availabilityZoneId(String availabilityZoneId)

      The ID of the Availability Zone where the instance group is located.

      Parameters:
      availabilityZoneId - The ID of the Availability Zone where the instance group is located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservation

      InstanceGroupMetadata.Builder capacityReservation(CapacityReservation capacityReservation)

      Information about the Capacity Reservation used by the instance group.

      Parameters:
      capacityReservation - Information about the Capacity Reservation used by the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityReservation

      default InstanceGroupMetadata.Builder capacityReservation(Consumer<CapacityReservation.Builder> capacityReservation)

      Information about the Capacity Reservation used by the instance group.

      This is a convenience method that creates an instance of the CapacityReservation.Builder avoiding the need to create one manually via CapacityReservation.builder().

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

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

      The ID of the subnet where the instance group is located.

      Parameters:
      subnetId - The ID of the subnet where the instance group is located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroupIds

      InstanceGroupMetadata.Builder securityGroupIds(Collection<String> securityGroupIds)

      A list of security group IDs associated with the instance group.

      Parameters:
      securityGroupIds - A list of security group IDs associated with the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityGroupIds

      InstanceGroupMetadata.Builder securityGroupIds(String... securityGroupIds)

      A list of security group IDs associated with the instance group.

      Parameters:
      securityGroupIds - A list of security group IDs associated with the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amiOverride

      InstanceGroupMetadata.Builder amiOverride(String amiOverride)

      If you use a custom Amazon Machine Image (AMI) for the instance group, this field shows the ID of the custom AMI.

      Parameters:
      amiOverride - If you use a custom Amazon Machine Image (AMI) for the instance group, this field shows the ID of the custom AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.