Interface GetMetricDataResponse.Builder

    • Method Detail

      • metricDataResults

        GetMetricDataResponse.Builder metricDataResults​(Collection<MetricDataResult> metricDataResults)

        The metrics that are returned, including the metric name, namespace, and dimensions.

        Parameters:
        metricDataResults - The metrics that are returned, including the metric name, namespace, and dimensions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricDataResults

        GetMetricDataResponse.Builder metricDataResults​(MetricDataResult... metricDataResults)

        The metrics that are returned, including the metric name, namespace, and dimensions.

        Parameters:
        metricDataResults - The metrics that are returned, including the metric name, namespace, and dimensions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        GetMetricDataResponse.Builder nextToken​(String nextToken)

        A token that marks the next batch of returned results.

        Parameters:
        nextToken - A token that marks the next batch of returned results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messages

        GetMetricDataResponse.Builder messages​(Collection<MessageData> messages)

        Contains a message about this GetMetricData operation, if the operation results in such a message. An example of a message that might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as possible is still executed.

        A message appears here only if it is related to the global GetMetricData operation. Any message about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

        Parameters:
        messages - Contains a message about this GetMetricData operation, if the operation results in such a message. An example of a message that might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as possible is still executed.

        A message appears here only if it is related to the global GetMetricData operation. Any message about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messages

        GetMetricDataResponse.Builder messages​(MessageData... messages)

        Contains a message about this GetMetricData operation, if the operation results in such a message. An example of a message that might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as possible is still executed.

        A message appears here only if it is related to the global GetMetricData operation. Any message about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

        Parameters:
        messages - Contains a message about this GetMetricData operation, if the operation results in such a message. An example of a message that might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as possible is still executed.

        A message appears here only if it is related to the global GetMetricData operation. Any message about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messages

        GetMetricDataResponse.Builder messages​(Consumer<MessageData.Builder>... messages)

        Contains a message about this GetMetricData operation, if the operation results in such a message. An example of a message that might be returned is Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as possible is still executed.

        A message appears here only if it is related to the global GetMetricData operation. Any message about a specific metric returned by the operation appears in the MetricDataResult object returned for that metric.

        This is a convenience method that creates an instance of the MessageData.Builder avoiding the need to create one manually via MessageData.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #messages(List).

        Parameters:
        messages - a consumer that will call methods on MessageData.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #messages(java.util.Collection)