public static interface ListMetricsResponse.Builder extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<ListMetricsResponse.Builder,ListMetricsResponse>
Modifier and Type | Method and Description |
---|---|
ListMetricsResponse.Builder |
metrics(Collection<Metric> metrics)
The metrics that match your request.
|
ListMetricsResponse.Builder |
metrics(Consumer<Metric.Builder>... metrics)
The metrics that match your request.
|
ListMetricsResponse.Builder |
metrics(Metric... metrics)
The metrics that match your request.
|
ListMetricsResponse.Builder |
nextToken(String nextToken)
The token that marks the start of the next batch of returned results.
|
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.
|
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.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
ListMetricsResponse.Builder metrics(Collection<Metric> metrics)
The metrics that match your request.
metrics
- The metrics that match your request.ListMetricsResponse.Builder metrics(Metric... metrics)
The metrics that match your request.
metrics
- The metrics that match your request.ListMetricsResponse.Builder metrics(Consumer<Metric.Builder>... metrics)
The metrics that match your request.
This is a convenience method that creates an instance of theMetric.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
.
metrics
- a consumer that will call methods on
Metric.Builder
#metrics(java.util.Collection)
ListMetricsResponse.Builder nextToken(String nextToken)
The token that marks the start of the next batch of returned results.
nextToken
- The token that marks the start of the next batch of returned results.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.
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.
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.
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.
Copyright © 2022. All rights reserved.