Interface DataResponse.Builder

    • Method Detail

      • id

        DataResponse.Builder id​(String id)

        The ID passed in the DataQuery.

        Parameters:
        id - The ID passed in the DataQuery.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        DataResponse.Builder source​(String source)

        The Region or Availability Zone that's the source for the data query. For example, us-east-1.

        Parameters:
        source - The Region or Availability Zone that's the source for the data query. For example, us-east-1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        DataResponse.Builder destination​(String destination)

        The Region or Availability Zone that's the destination for the data query. For example, eu-west-1.

        Parameters:
        destination - The Region or Availability Zone that's the destination for the data query. For example, eu-west-1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metric

        DataResponse.Builder metric​(String metric)

        The metric used for the network performance request. Only aggregate-latency is supported, which shows network latency during a specified period.

        Parameters:
        metric - The metric used for the network performance request. Only aggregate-latency is supported, which shows network latency during a specified period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MetricType, MetricType
      • metric

        DataResponse.Builder metric​(MetricType metric)

        The metric used for the network performance request. Only aggregate-latency is supported, which shows network latency during a specified period.

        Parameters:
        metric - The metric used for the network performance request. Only aggregate-latency is supported, which shows network latency during a specified period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MetricType, MetricType
      • statistic

        DataResponse.Builder statistic​(String statistic)

        The statistic used for the network performance request.

        Parameters:
        statistic - The statistic used for the network performance request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatisticType, StatisticType
      • statistic

        DataResponse.Builder statistic​(StatisticType statistic)

        The statistic used for the network performance request.

        Parameters:
        statistic - The statistic used for the network performance request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatisticType, StatisticType
      • period

        DataResponse.Builder period​(String period)

        The period used for the network performance request.

        Parameters:
        period - The period used for the network performance request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PeriodType, PeriodType
      • period

        DataResponse.Builder period​(PeriodType period)

        The period used for the network performance request.

        Parameters:
        period - The period used for the network performance request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PeriodType, PeriodType
      • metricPoints

        DataResponse.Builder metricPoints​(Collection<MetricPoint> metricPoints)

        A list of MetricPoint objects.

        Parameters:
        metricPoints - A list of MetricPoint objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricPoints

        DataResponse.Builder metricPoints​(MetricPoint... metricPoints)

        A list of MetricPoint objects.

        Parameters:
        metricPoints - A list of MetricPoint objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.