Interface InstanceMetadata.Builder

  • Method Details

    • customerEni

      InstanceMetadata.Builder customerEni(String customerEni)

      The ID of the customer-managed Elastic Network Interface (ENI) associated with the instance.

      Parameters:
      customerEni - The ID of the customer-managed Elastic Network Interface (ENI) associated with the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalEnis

      InstanceMetadata.Builder additionalEnis(AdditionalEnis additionalEnis)

      Information about additional Elastic Network Interfaces (ENIs) associated with the instance.

      Parameters:
      additionalEnis - Information about additional Elastic Network Interfaces (ENIs) associated with the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalEnis

      default InstanceMetadata.Builder additionalEnis(Consumer<AdditionalEnis.Builder> additionalEnis)

      Information about additional Elastic Network Interfaces (ENIs) associated with the instance.

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

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

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

      InstanceMetadata.Builder capacityReservation(CapacityReservation capacityReservation)

      Information about the Capacity Reservation used by the instance.

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

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

      Information about the Capacity Reservation used by the instance.

      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:
    • failureMessage

      InstanceMetadata.Builder failureMessage(String failureMessage)

      An error message describing why the instance creation or update failed, if applicable.

      Parameters:
      failureMessage - An error message describing why the instance creation or update failed, if applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lcsExecutionState

      InstanceMetadata.Builder lcsExecutionState(String lcsExecutionState)

      The execution state of the Lifecycle Script (LCS) for the instance.

      Parameters:
      lcsExecutionState - The execution state of the Lifecycle Script (LCS) for the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeLogicalId

      InstanceMetadata.Builder nodeLogicalId(String nodeLogicalId)

      The unique logical identifier of the node within the cluster. The ID used here is the same object as in the BatchAddClusterNodes API.

      Parameters:
      nodeLogicalId - The unique logical identifier of the node within the cluster. The ID used here is the same object as in the BatchAddClusterNodes API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.