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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaMetric.builder().When the
Consumercompletes,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.
-