Interface GetResourceMetricsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetResourceMetricsResponse.Builder,GetResourceMetricsResponse>,PiResponse.Builder,SdkBuilder<GetResourceMetricsResponse.Builder,GetResourceMetricsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetResourceMetricsResponse
public static interface GetResourceMetricsResponse.Builder extends PiResponse.Builder, SdkPojo, CopyableBuilder<GetResourceMetricsResponse.Builder,GetResourceMetricsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetResourceMetricsResponse.BuilderalignedEndTime(Instant alignedEndTime)The end time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).GetResourceMetricsResponse.BuilderalignedStartTime(Instant alignedStartTime)The start time for the returned metrics, after alignment to a granular boundary (as specified byPeriodInSeconds).GetResourceMetricsResponse.Builderidentifier(String identifier)An immutable identifier for a data source that is unique for an Amazon Web Services Region.GetResourceMetricsResponse.BuildermetricList(Collection<MetricKeyDataPoints> metricList)An array of metric results, where each array element contains all of the data points for a particular dimension.GetResourceMetricsResponse.BuildermetricList(Consumer<MetricKeyDataPoints.Builder>... metricList)An array of metric results, where each array element contains all of the data points for a particular dimension.GetResourceMetricsResponse.BuildermetricList(MetricKeyDataPoints... metricList)An array of metric results, where each array element contains all of the data points for a particular dimension.GetResourceMetricsResponse.BuildernextToken(String nextToken)An optional pagination token provided by a previous request.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.pi.model.PiResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
alignedStartTime
GetResourceMetricsResponse.Builder alignedStartTime(Instant 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
GetResourceMetricsResponse.Builder alignedEndTime(Instant 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
GetResourceMetricsResponse.Builder identifier(String 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
GetResourceMetricsResponse.Builder metricList(Collection<MetricKeyDataPoints> 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
GetResourceMetricsResponse.Builder metricList(MetricKeyDataPoints... 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
GetResourceMetricsResponse.Builder metricList(Consumer<MetricKeyDataPoints.Builder>... 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 to#metricList(List.) - 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:
#metricList(java.util.Collection)
-
nextToken
GetResourceMetricsResponse.Builder nextToken(String 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.
-
-