Interface ResultByTime.Builder

    • Method Detail

      • 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.
      • total

        ResultByTime.Builder total​(Map<String,​MetricValue> 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

        ResultByTime.Builder groups​(Collection<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

        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

        ResultByTime.Builder groups​(Consumer<Group.Builder>... 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).

        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:
        #groups(java.util.Collection)
      • 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.