Interface ListMetricsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CloudWatchResponse.Builder, CopyableBuilder<ListMetricsResponse.Builder,ListMetricsResponse>, SdkBuilder<ListMetricsResponse.Builder,ListMetricsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListMetricsResponse

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

    • metrics

      The metrics that match your request.

      Parameters:
      metrics - The metrics that match your request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      ListMetricsResponse.Builder metrics(Metric... metrics)

      The metrics that match your request.

      Parameters:
      metrics - The metrics that match your request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      The metrics that match your request.

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

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

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

      ListMetricsResponse.Builder nextToken(String nextToken)

      The token that marks the start of the next batch of returned results.

      Parameters:
      nextToken - The token that marks the start of the next batch of returned results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owningAccounts

      ListMetricsResponse.Builder owningAccounts(Collection<String> owningAccounts)

      If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.

      This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.

      Parameters:
      owningAccounts - If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.

      This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owningAccounts

      ListMetricsResponse.Builder owningAccounts(String... owningAccounts)

      If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.

      This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.

      Parameters:
      owningAccounts - If you are using this operation in a monitoring account, this array contains the account IDs of the source accounts where the metrics in the returned data are from.

      This field is a 1:1 mapping between each metric that is returned and the ID of the owning account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.