Class GetMetricStatistics.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Creates a new builder. The returned builder is equivalent to the builder generated by ListMetricsOptions#builder.
    • Method Detail

      • dimensions

        public GetMetricStatistics.Builder dimensions​(Set<Dimension> dimensions)
        A list of dimensions describing qualities of the metric.
        Parameters:
        dimensions - the dimensions describing the qualities of the metric
        Returns:
        this Builder object
      • dimension

        public GetMetricStatistics.Builder dimension​(Dimension dimension)
        A dimension describing qualities of the metric.
        Parameters:
        dimension - the dimension describing the qualities of the metric
        Returns:
        this Builder object
      • endTime

        public GetMetricStatistics.Builder endTime​(Date endTime)
        The time stamp to use for determining the last datapoint to return. The value specified is exclusive so results will include datapoints up to the time stamp specified.
        Parameters:
        endTime - the timestamp to use for determining the last datapoint to return
        Returns:
        this Builder object
      • metricName

        public GetMetricStatistics.Builder metricName​(String metricName)
        The name of the metric.
        Parameters:
        metricName - the metric name to filter against
        Returns:
        this Builder object
      • namespace

        public GetMetricStatistics.Builder namespace​(String namespace)
        The namespace of the metric.
        Parameters:
        namespace - the namespace to filter against
        Returns:
        this Builder object
      • period

        public GetMetricStatistics.Builder period​(int period)
        The granularity, in seconds, of the returned datapoints.
        Parameters:
        period - the granularity, in seconds, of the returned datapoints
        Returns:
        this Builder object
      • startTime

        public GetMetricStatistics.Builder startTime​(Date startTime)
        The time stamp to use for determining the first datapoint to return. The value specified is inclusive so results include datapoints with the time stamp specified.
        Parameters:
        startTime - The time stamp to use for determining the first datapoint to return
        Returns:
        this Builder object
      • statistics

        public GetMetricStatistics.Builder statistics​(Set<Statistics> statistics)
        The metric statistics to return.
        Parameters:
        statistics - the metric statistics to return.
        Returns:
        this Builder object
      • statistic

        public GetMetricStatistics.Builder statistic​(Statistics statistic)
        The metric statistic to return. (Can be called multiple times up to a maximum of 5 times.)
        Parameters:
        statistic - the metric statistic to return
        Returns:
        this Builder object
      • unit

        public GetMetricStatistics.Builder unit​(Unit unit)
        The unit for the metric.
        Parameters:
        unit - the unit for the metric
        Returns:
        this Builder object
      • build

        public GetMetricStatistics build()
        Returns a newly-created GetMetricStatisticsOptionsV2 based on the contents of the Builder.