Interface GetResourceMetricsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetResourceMetricsResponse.Builder,,GetResourceMetricsResponse> PiResponse.Builder,SdkBuilder<GetResourceMetricsResponse.Builder,,GetResourceMetricsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetResourceMetricsResponse
-
Method Summary
Modifier and TypeMethodDescriptionalignedEndTime(Instant alignedEndTime) The end time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).alignedStartTime(Instant alignedStartTime) The start time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).identifier(String identifier) An immutable identifier for a data source that is unique for an Amazon Web Services Region.metricList(Collection<MetricKeyDataPoints> metricList) An array of metric results, where each array element contains all of the data points for a particular dimension.metricList(Consumer<MetricKeyDataPoints.Builder>... metricList) An array of metric results, where each array element contains all of the data points for a particular dimension.metricList(MetricKeyDataPoints... metricList) An array of metric results, where each array element contains all of the data points for a particular dimension.An optional pagination token provided by a 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
-
alignedStartTime
The start time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds).AlignedStartTimewill be less than or equal to the value of the user-specifiedStartTime.- Parameters:
alignedStartTime- The start time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).AlignedStartTimewill be less than or equal to the value of the user-specifiedStartTime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alignedEndTime
The end time for the returned metrics, after alignment to a granular boundary (as specified by
PeriodInSeconds).AlignedEndTimewill be greater than or equal to the value of the user-specifiedEndtime.- Parameters:
alignedEndTime- The end time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).AlignedEndTimewill be greater than or equal to the value of the user-specifiedEndtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call
DescribeDBInstances, the identifier is returned asDbiResourceId.- Parameters:
identifier- An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you callDescribeDBInstances, the identifier is returned asDbiResourceId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
An array of metric results, where each array element contains all of the data points for a particular dimension.
- Parameters:
metricList- An array of metric results, where each array element contains all of the data points for a particular dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
An array of metric results, where each array element contains all of the data points for a particular dimension.
- Parameters:
metricList- An array of metric results, where each array element contains all of the data points for a particular dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricList
An array of metric results, where each array element contains all of the data points for a particular dimension.
This is a convenience method that creates an instance of theMetricKeyDataPoints.Builderavoiding the need to create one manually viaMetricKeyDataPoints.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricList(List<MetricKeyDataPoints>).- Parameters:
metricList- a consumer that will call methods onMetricKeyDataPoints.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by
MaxRecords.- Parameters:
nextToken- An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified byMaxRecords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-