Interface EntitlementMetricStatus.Builder

  • Method Details

    • metricId

      The ID of the metric.

      Parameters:
      metricId - The ID of the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usedQuantity

      EntitlementMetricStatus.Builder usedQuantity(Long usedQuantity)

      The quantity of the metric already used in the current period.

      Parameters:
      usedQuantity - The quantity of the metric already used in the current period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includedQuantity

      EntitlementMetricStatus.Builder includedQuantity(Long includedQuantity)

      The quantity included for the period, prorated after a mid-period plan change. Only metrics with a limit are listed.

      Parameters:
      includedQuantity - The quantity included for the period, prorated after a mid-period plan change. Only metrics with a limit are listed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remainingQuantity

      EntitlementMetricStatus.Builder remainingQuantity(Long remainingQuantity)

      max(0, includedQuantity - usedQuantity).

      Parameters:
      remainingQuantity - max(0, includedQuantity - usedQuantity).
      Returns:
      Returns a reference to this object so that method calls can be chained together.