Interface ListMetricsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchResponse.Builder
,CopyableBuilder<ListMetricsResponse.Builder,
,ListMetricsResponse> SdkBuilder<ListMetricsResponse.Builder,
,ListMetricsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListMetricsResponse
-
Method Summary
Modifier and TypeMethodDescriptionmetrics
(Collection<Metric> metrics) The metrics that match your request.metrics
(Consumer<Metric.Builder>... metrics) The metrics that match your request.The metrics that match your request.The token that marks the start of the next batch of returned results.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.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.Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
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 theMetric.Builder
avoiding the need to create one manually viaMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(List<Metric>)
.- Parameters:
metrics
- a consumer that will call methods onMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-