Interface CostComparisonDriver.Builder

  • Method Details

    • costSelector

      CostComparisonDriver.Builder costSelector(Expression costSelector)
      Sets the value of the CostSelector property for this object.
      Parameters:
      costSelector - The new value for the CostSelector property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costSelector

      default CostComparisonDriver.Builder costSelector(Consumer<Expression.Builder> costSelector)
      Sets the value of the CostSelector property for this object. This is a convenience method that creates an instance of the Expression.Builder avoiding the need to create one manually via Expression.builder().

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

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

      A mapping of metric names to their comparison values.

      Parameters:
      metrics - A mapping of metric names to their comparison values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costDrivers

      An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.

      Parameters:
      costDrivers - An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costDrivers

      CostComparisonDriver.Builder costDrivers(CostDriver... costDrivers)

      An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.

      Parameters:
      costDrivers - An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costDrivers

      An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.

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

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

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