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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataResponse.Builderdestination(String destination)The Region or Availability Zone that's the destination for the data query.DataResponse.Builderid(String id)The ID passed in theDataQuery.DataResponse.Buildermetric(String metric)The metric used for the network performance request.DataResponse.Buildermetric(MetricType metric)The metric used for the network performance request.DataResponse.BuildermetricPoints(Collection<MetricPoint> metricPoints)A list ofMetricPointobjects.DataResponse.BuildermetricPoints(Consumer<MetricPoint.Builder>... metricPoints)A list ofMetricPointobjects.DataResponse.BuildermetricPoints(MetricPoint... metricPoints)A list ofMetricPointobjects.DataResponse.Builderperiod(String period)The period used for the network performance request.DataResponse.Builderperiod(PeriodType period)The period used for the network performance request.DataResponse.Buildersource(String source)The Region or Availability Zone that's the source for the data query.DataResponse.Builderstatistic(String statistic)The statistic used for the network performance request.DataResponse.Builderstatistic(StatisticType statistic)The statistic used for the network performance request.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
DataResponse.Builder id(String id)
The ID passed in the
DataQuery.- Parameters:
id- The ID passed in theDataQuery.- 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-latencyis supported, which shows network latency during a specified period.- Parameters:
metric- The metric used for the network performance request. Onlyaggregate-latencyis 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-latencyis supported, which shows network latency during a specified period.- Parameters:
metric- The metric used for the network performance request. Onlyaggregate-latencyis 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
MetricPointobjects.- Parameters:
metricPoints- A list ofMetricPointobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricPoints
DataResponse.Builder metricPoints(MetricPoint... metricPoints)
A list of
MetricPointobjects.- Parameters:
metricPoints- A list ofMetricPointobjects.- 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
This is a convenience method that creates an instance of theMetricPointobjects.MetricPoint.Builderavoiding the need to create one manually viaMetricPoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricPoints(List.) - Parameters:
metricPoints- a consumer that will call methods onMetricPoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricPoints(java.util.Collection)
-
-