Interface ListAvailableResourceMetricsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListAvailableResourceMetricsResponse.Builder,,ListAvailableResourceMetricsResponse> PiResponse.Builder,SdkBuilder<ListAvailableResourceMetricsResponse.Builder,,ListAvailableResourceMetricsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListAvailableResourceMetricsResponse
@Mutable
@NotThreadSafe
public static interface ListAvailableResourceMetricsResponse.Builder
extends PiResponse.Builder, SdkPojo, CopyableBuilder<ListAvailableResourceMetricsResponse.Builder,ListAvailableResourceMetricsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmetrics(Collection<ResponseResourceMetric> metrics) An array of metrics available to query.metrics(Consumer<ResponseResourceMetric.Builder>... metrics) An array of metrics available to query.metrics(ResponseResourceMetric... metrics) An array of metrics available to query.A pagination token that indicates the response didn’t return all available records becauseMaxRecordswas specified in the previous request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pi.model.PiResponse.Builder
build, responseMetadata, responseMetadataMethods 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
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
- Parameters:
metrics- An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
- Parameters:
metrics- An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
ListAvailableResourceMetricsResponse.Builder metrics(Consumer<ResponseResourceMetric.Builder>... metrics) An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
This is a convenience method that creates an instance of theResponseResourceMetric.Builderavoiding the need to create one manually viaResponseResourceMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<ResponseResourceMetric>).- Parameters:
metrics- a consumer that will call methods onResponseResourceMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A pagination token that indicates the response didn’t return all available records because
MaxRecordswas specified in the previous request. To get the remaining records, specifyNextTokenin a separate request with this value.- Parameters:
nextToken- A pagination token that indicates the response didn’t return all available records becauseMaxRecordswas specified in the previous request. To get the remaining records, specifyNextTokenin a separate request with this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-