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.Builder
destination(String destination)
The Region or Availability Zone that's the destination for the data query.DataResponse.Builder
id(String id)
The ID passed in theDataQuery
.DataResponse.Builder
metric(String metric)
The metric used for the network performance request.DataResponse.Builder
metric(MetricType metric)
The metric used for the network performance request.DataResponse.Builder
metricPoints(Collection<MetricPoint> metricPoints)
A list ofMetricPoint
objects.DataResponse.Builder
metricPoints(Consumer<MetricPoint.Builder>... metricPoints)
A list ofMetricPoint
objects.DataResponse.Builder
metricPoints(MetricPoint... metricPoints)
A list ofMetricPoint
objects.DataResponse.Builder
period(String period)
The period used for the network performance request.DataResponse.Builder
period(PeriodType period)
The period used for the network performance request.DataResponse.Builder
source(String source)
The Region or Availability Zone that's the source for the data query.DataResponse.Builder
statistic(String statistic)
The statistic used for the network performance request.DataResponse.Builder
statistic(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-latency
is supported, which shows network latency during a specified period.- Parameters:
metric
- The metric used for the network performance request. Onlyaggregate-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. Onlyaggregate-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 ofMetricPoint
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 ofMetricPoint
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
This is a convenience method that creates an instance of theMetricPoint
objects.MetricPoint.Builder
avoiding the need to create one manually viaMetricPoint.builder()
.When the
Consumer
completes,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
)
-
-