Interface ListMetricsRequest.Builder

  • Method Details

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

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

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

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

      Parameters:
      conditions - a consumer that will call methods on Condition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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<Field>).

      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:
    • 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

      (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

      (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

      (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<Sort>).

      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:
    • overrideConfiguration

      ListMetricsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.