@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataResponse extends Object implements Serializable, Cloneable
The response to a DataQuery
.
Constructor and Description |
---|
DataResponse() |
Modifier and Type | Method and Description |
---|---|
DataResponse |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The Region or Availability Zone that's the destination for the data query.
|
String |
getId()
The ID passed in the
DataQuery . |
String |
getMetric()
The metric used for the network performance request.
|
List<MetricPoint> |
getMetricPoints()
A list of
MetricPoint objects. |
String |
getPeriod()
The period used for the network performance request.
|
String |
getSource()
The Region or Availability Zone that's the source for the data query.
|
String |
getStatistic()
The statistic used for the network performance request.
|
int |
hashCode() |
void |
setDestination(String destination)
The Region or Availability Zone that's the destination for the data query.
|
void |
setId(String id)
The ID passed in the
DataQuery . |
void |
setMetric(String metric)
The metric used for the network performance request.
|
void |
setMetricPoints(Collection<MetricPoint> metricPoints)
A list of
MetricPoint objects. |
void |
setPeriod(String period)
The period used for the network performance request.
|
void |
setSource(String source)
The Region or Availability Zone that's the source for the data query.
|
void |
setStatistic(String statistic)
The statistic used for the network performance request.
|
String |
toString()
Returns a string representation of this object.
|
DataResponse |
withDestination(String destination)
The Region or Availability Zone that's the destination for the data query.
|
DataResponse |
withId(String id)
The ID passed in the
DataQuery . |
DataResponse |
withMetric(MetricType metric)
The metric used for the network performance request.
|
DataResponse |
withMetric(String metric)
The metric used for the network performance request.
|
DataResponse |
withMetricPoints(Collection<MetricPoint> metricPoints)
A list of
MetricPoint objects. |
DataResponse |
withMetricPoints(MetricPoint... metricPoints)
A list of
MetricPoint objects. |
DataResponse |
withPeriod(PeriodType period)
The period used for the network performance request.
|
DataResponse |
withPeriod(String period)
The period used for the network performance request.
|
DataResponse |
withSource(String source)
The Region or Availability Zone that's the source for the data query.
|
DataResponse |
withStatistic(StatisticType statistic)
The statistic used for the network performance request.
|
DataResponse |
withStatistic(String statistic)
The statistic used for the network performance request.
|
public void setId(String id)
The ID passed in the DataQuery
.
id
- The ID passed in the DataQuery
.public String getId()
The ID passed in the DataQuery
.
DataQuery
.public DataResponse withId(String id)
The ID passed in the DataQuery
.
id
- The ID passed in the DataQuery
.public void setSource(String source)
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
source
- The Region or Availability Zone that's the source for the data query. For example, us-east-1
.public String getSource()
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
us-east-1
.public DataResponse withSource(String source)
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
source
- The Region or Availability Zone that's the source for the data query. For example, us-east-1
.public void setDestination(String destination)
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
destination
- The Region or Availability Zone that's the destination for the data query. For example,
eu-west-1
.public String getDestination()
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
eu-west-1
.public DataResponse withDestination(String destination)
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
destination
- The Region or Availability Zone that's the destination for the data query. For example,
eu-west-1
.public void setMetric(String metric)
The metric used for the network performance request. Only aggregate-latency
is supported, which
shows network latency during a specified period.
metric
- The metric used for the network performance request. Only aggregate-latency
is supported,
which shows network latency during a specified period.MetricType
public String getMetric()
The metric used for the network performance request. Only aggregate-latency
is supported, which
shows network latency during a specified period.
aggregate-latency
is supported,
which shows network latency during a specified period.MetricType
public DataResponse withMetric(String metric)
The metric used for the network performance request. Only aggregate-latency
is supported, which
shows network latency during a specified period.
metric
- The metric used for the network performance request. Only aggregate-latency
is supported,
which shows network latency during a specified period.MetricType
public DataResponse withMetric(MetricType metric)
The metric used for the network performance request. Only aggregate-latency
is supported, which
shows network latency during a specified period.
metric
- The metric used for the network performance request. Only aggregate-latency
is supported,
which shows network latency during a specified period.MetricType
public void setStatistic(String statistic)
The statistic used for the network performance request.
statistic
- The statistic used for the network performance request.StatisticType
public String getStatistic()
The statistic used for the network performance request.
StatisticType
public DataResponse withStatistic(String statistic)
The statistic used for the network performance request.
statistic
- The statistic used for the network performance request.StatisticType
public DataResponse withStatistic(StatisticType statistic)
The statistic used for the network performance request.
statistic
- The statistic used for the network performance request.StatisticType
public void setPeriod(String period)
The period used for the network performance request.
period
- The period used for the network performance request.PeriodType
public String getPeriod()
The period used for the network performance request.
PeriodType
public DataResponse withPeriod(String period)
The period used for the network performance request.
period
- The period used for the network performance request.PeriodType
public DataResponse withPeriod(PeriodType period)
The period used for the network performance request.
period
- The period used for the network performance request.PeriodType
public List<MetricPoint> getMetricPoints()
A list of MetricPoint
objects.
MetricPoint
objects.public void setMetricPoints(Collection<MetricPoint> metricPoints)
A list of MetricPoint
objects.
metricPoints
- A list of MetricPoint
objects.public DataResponse withMetricPoints(MetricPoint... metricPoints)
A list of MetricPoint
objects.
NOTE: This method appends the values to the existing list (if any). Use
setMetricPoints(java.util.Collection)
or withMetricPoints(java.util.Collection)
if you want to
override the existing values.
metricPoints
- A list of MetricPoint
objects.public DataResponse withMetricPoints(Collection<MetricPoint> metricPoints)
A list of MetricPoint
objects.
metricPoints
- A list of MetricPoint
objects.public String toString()
toString
in class Object
Object.toString()
public DataResponse clone()