Interface GetResourceMetricsResponse.Builder

    • 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). 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

        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 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

        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.
      • 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 by MaxRecords.
        Returns:
        Returns a reference to this object so that method calls can be chained together.