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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListMetricsResponse.Buildermetrics(Collection<Metric> metrics)The metrics that match your request.ListMetricsResponse.Buildermetrics(Consumer<Metric.Builder>... metrics)The metrics that match your request.ListMetricsResponse.Buildermetrics(Metric... metrics)The metrics that match your request.ListMetricsResponse.BuildernextToken(String nextToken)The token that marks the start of the next batch of returned results.ListMetricsResponse.BuilderowningAccounts(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.BuilderowningAccounts(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 Detail
-
metrics
ListMetricsResponse.Builder metrics(Collection<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
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
ListMetricsResponse.Builder metrics(Consumer<Metric.Builder>... 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 to#metrics(List.) - 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:
#metrics(java.util.Collection)
-
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.
-
-