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 Details

    • alignedStartTime

      GetResourceMetricsResponse.Builder alignedStartTime(Instant alignedStartTime)

      The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

      Parameters:
      alignedStartTime - The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.
      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). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

      Parameters:
      alignedEndTime - The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.
      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 as DbiResourceId.

      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 call DescribeDBInstances, the identifier is returned as DbiResourceId.
      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 the MetricKeyDataPoints.Builder avoiding the need to create one manually via MetricKeyDataPoints.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricList(List<MetricKeyDataPoints>).

      Parameters:
      metricList - a consumer that will call methods on MetricKeyDataPoints.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 by MaxRecords.
      Returns:
      Returns a reference to this object so that method calls can be chained together.