Interface CurrentInstance.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CurrentInstance.Builder,CurrentInstance>, SdkBuilder<CurrentInstance.Builder,CurrentInstance>, SdkPojo
Enclosing class:
CurrentInstance

public static interface CurrentInstance.Builder extends SdkPojo, CopyableBuilder<CurrentInstance.Builder,CurrentInstance>
  • Method Details

    • resourceId

      CurrentInstance.Builder resourceId(String resourceId)

      Resource ID of the current instance.

      Parameters:
      resourceId - Resource ID of the current instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceName

      CurrentInstance.Builder instanceName(String instanceName)

      The name that you given an instance. This field shows as blank if you haven't given the instance a name.

      Parameters:
      instanceName - The name that you given an instance. This field shows as blank if you haven't given the instance a name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Cost allocation resource tags that are applied to the instance.

      Parameters:
      tags - Cost allocation resource tags that are applied to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Cost allocation resource tags that are applied to the instance.

      Parameters:
      tags - Cost allocation resource tags that are applied to the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Cost allocation resource tags that are applied to the instance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<TagValues>).

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

      CurrentInstance.Builder resourceDetails(ResourceDetails resourceDetails)

      Details about the resource and utilization.

      Parameters:
      resourceDetails - Details about the resource and utilization.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceDetails

      default CurrentInstance.Builder resourceDetails(Consumer<ResourceDetails.Builder> resourceDetails)

      Details about the resource and utilization.

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

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

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

      CurrentInstance.Builder resourceUtilization(ResourceUtilization resourceUtilization)

      Utilization information of the current instance during the lookback period.

      Parameters:
      resourceUtilization - Utilization information of the current instance during the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceUtilization

      default CurrentInstance.Builder resourceUtilization(Consumer<ResourceUtilization.Builder> resourceUtilization)

      Utilization information of the current instance during the lookback period.

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

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

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

      CurrentInstance.Builder reservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)

      The number of hours during the lookback period that's covered by reservations.

      Parameters:
      reservationCoveredHoursInLookbackPeriod - The number of hours during the lookback period that's covered by reservations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • savingsPlansCoveredHoursInLookbackPeriod

      CurrentInstance.Builder savingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)

      The number of hours during the lookback period that's covered by Savings Plans.

      Parameters:
      savingsPlansCoveredHoursInLookbackPeriod - The number of hours during the lookback period that's covered by Savings Plans.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onDemandHoursInLookbackPeriod

      CurrentInstance.Builder onDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)

      The number of hours during the lookback period that's billed at On-Demand rates.

      Parameters:
      onDemandHoursInLookbackPeriod - The number of hours during the lookback period that's billed at On-Demand rates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalRunningHoursInLookbackPeriod

      CurrentInstance.Builder totalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)

      The total number of hours that the instance ran during the lookback period.

      Parameters:
      totalRunningHoursInLookbackPeriod - The total number of hours that the instance ran during the lookback period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • monthlyCost

      CurrentInstance.Builder monthlyCost(String monthlyCost)

      The current On-Demand cost of operating this instance on a monthly basis.

      Parameters:
      monthlyCost - The current On-Demand cost of operating this instance on a monthly basis.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      CurrentInstance.Builder currencyCode(String currencyCode)

      The currency code that Amazon Web Services used to calculate the costs for this instance.

      Parameters:
      currencyCode - The currency code that Amazon Web Services used to calculate the costs for this instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.