Interface ListMetricsRequest.Builder

    • Method Detail

      • conditions

        ListMetricsRequest.Builder conditions​(Collection<Condition> conditions)

        Indicates the list of all the conditions that were applied on the metrics.

        Parameters:
        conditions - Indicates the list of all the conditions that were applied on the metrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • conditions

        ListMetricsRequest.Builder conditions​(Condition... conditions)

        Indicates the list of all the conditions that were applied on the metrics.

        Parameters:
        conditions - Indicates the list of all the conditions that were applied on the metrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataSource

        ListMetricsRequest.Builder dataSource​(String dataSource)

        Indicates the data source of the metrics.

        Parameters:
        dataSource - Indicates the data source of the metrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fields

        ListMetricsRequest.Builder fields​(Collection<Field> fields)

        Indicates the list of fields in the data source.

        Parameters:
        fields - Indicates the list of fields in the data source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fields

        ListMetricsRequest.Builder fields​(Field... fields)

        Indicates the list of fields in the data source.

        Parameters:
        fields - Indicates the list of fields in the data source.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fields

        ListMetricsRequest.Builder fields​(Consumer<Field.Builder>... fields)

        Indicates the list of fields in the data source.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #fields(List).

        Parameters:
        fields - a consumer that will call methods on Field.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #fields(java.util.Collection)
      • maxResults

        ListMetricsRequest.Builder maxResults​(Integer maxResults)

        Maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

        Parameters:
        maxResults - Maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        ListMetricsRequest.Builder nextToken​(String nextToken)

        Null, or the token from a previous call to get the next set of results.

        Parameters:
        nextToken - Null, or the token from a previous call to get the next set of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sorts

        ListMetricsRequest.Builder sorts​(Collection<Sort> sorts)

        (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.

        Parameters:
        sorts - (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sorts

        ListMetricsRequest.Builder sorts​(Sort... sorts)

        (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.

        Parameters:
        sorts - (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sorts

        ListMetricsRequest.Builder sorts​(Consumer<Sort.Builder>... sorts)

        (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #sorts(List).

        Parameters:
        sorts - a consumer that will call methods on Sort.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #sorts(java.util.Collection)