Interface ResultByTime.Builder

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

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

    • timePeriod

      ResultByTime.Builder timePeriod(DateInterval timePeriod)

      The time period that the result covers.

      Parameters:
      timePeriod - The time period that the result covers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      default ResultByTime.Builder timePeriod(Consumer<DateInterval.Builder> timePeriod)

      The time period that the result covers.

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

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

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

      The total amount of cost or usage accrued during the time period.

      Parameters:
      total - The total amount of cost or usage accrued during the time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      The groups that this time period includes.

      Parameters:
      groups - The groups that this time period includes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      ResultByTime.Builder groups(Group... groups)

      The groups that this time period includes.

      Parameters:
      groups - The groups that this time period includes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groups

      The groups that this time period includes.

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

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

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

      ResultByTime.Builder estimated(Boolean estimated)

      Determines whether the result is estimated.

      Parameters:
      estimated - Determines whether the result is estimated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.