Interface CostEstimate.Builder

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

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

    • usageType

      CostEstimate.Builder usageType(String usageType)

      The types of usage that are included in the estimate, such as costs, usage, or data transfer.

      Parameters:
      usageType - The types of usage that are included in the estimate, such as costs, usage, or data transfer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultsByTime

      CostEstimate.Builder resultsByTime(Collection<EstimateByTime> resultsByTime)

      The cost estimate result that's associated with a time period.

      Parameters:
      resultsByTime - The cost estimate result that's associated with a time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultsByTime

      CostEstimate.Builder resultsByTime(EstimateByTime... resultsByTime)

      The cost estimate result that's associated with a time period.

      Parameters:
      resultsByTime - The cost estimate result that's associated with a time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultsByTime

      CostEstimate.Builder resultsByTime(Consumer<EstimateByTime.Builder>... resultsByTime)

      The cost estimate result that's associated with a time period.

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

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

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