Interface DataResponse.Builder

All Superinterfaces:
Buildable, CopyableBuilder<DataResponse.Builder,DataResponse>, SdkBuilder<DataResponse.Builder,DataResponse>, SdkPojo
Enclosing class:
DataResponse

public static interface DataResponse.Builder extends SdkPojo, CopyableBuilder<DataResponse.Builder,DataResponse>
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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.
    • metricPoints

      DataResponse.Builder metricPoints(Consumer<MetricPoint.Builder>... metricPoints)

      A list of MetricPoint objects.

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

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

      Parameters:
      metricPoints - a consumer that will call methods on MetricPoint.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: