@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataQuery extends Object implements Serializable, Cloneable
A query used for retrieving network health data.
Constructor and Description |
---|
DataQuery() |
Modifier and Type | Method and Description |
---|---|
DataQuery |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The Region or Availability Zone that's the target for the data query.
|
String |
getId()
A user-defined ID associated with a data query that's returned in the
dataResponse identifying the
query. |
String |
getMetric()
The metric,
aggregation-latency , indicating that network latency is aggregated for the query. |
String |
getPeriod()
The aggregation period used for the data query.
|
String |
getSource()
The Region or Availability Zone that's the source for the data query.
|
String |
getStatistic()
The metric data aggregation period,
p50 , between the specified startDate and
endDate . |
int |
hashCode() |
void |
setDestination(String destination)
The Region or Availability Zone that's the target for the data query.
|
void |
setId(String id)
A user-defined ID associated with a data query that's returned in the
dataResponse identifying the
query. |
void |
setMetric(String metric)
The metric,
aggregation-latency , indicating that network latency is aggregated for the query. |
void |
setPeriod(String period)
The aggregation period used for the data query.
|
void |
setSource(String source)
The Region or Availability Zone that's the source for the data query.
|
void |
setStatistic(String statistic)
The metric data aggregation period,
p50 , between the specified startDate and
endDate . |
String |
toString()
Returns a string representation of this object.
|
DataQuery |
withDestination(String destination)
The Region or Availability Zone that's the target for the data query.
|
DataQuery |
withId(String id)
A user-defined ID associated with a data query that's returned in the
dataResponse identifying the
query. |
DataQuery |
withMetric(MetricType metric)
The metric,
aggregation-latency , indicating that network latency is aggregated for the query. |
DataQuery |
withMetric(String metric)
The metric,
aggregation-latency , indicating that network latency is aggregated for the query. |
DataQuery |
withPeriod(PeriodType period)
The aggregation period used for the data query.
|
DataQuery |
withPeriod(String period)
The aggregation period used for the data query.
|
DataQuery |
withSource(String source)
The Region or Availability Zone that's the source for the data query.
|
DataQuery |
withStatistic(StatisticType statistic)
The metric data aggregation period,
p50 , between the specified startDate and
endDate . |
DataQuery |
withStatistic(String statistic)
The metric data aggregation period,
p50 , between the specified startDate and
endDate . |
public void setId(String id)
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the
query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
id
- A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the
dataResponse
identifies the query as MyQuery01
.public String getId()
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the
query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the
dataResponse
identifies the query as MyQuery01
.public DataQuery withId(String id)
A user-defined ID associated with a data query that's returned in the dataResponse
identifying the
query. For example, if you set the Id to MyQuery01
in the query, the dataResponse
identifies the query as MyQuery01
.
id
- A user-defined ID associated with a data query that's returned in the dataResponse
identifying the query. For example, if you set the Id to MyQuery01
in the query, the
dataResponse
identifies the query as MyQuery01
.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 DataQuery 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 target for the data query. For example, eu-north-1
.
destination
- The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.public String getDestination()
The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.
eu-north-1
.public DataQuery withDestination(String destination)
The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.
destination
- The Region or Availability Zone that's the target for the data query. For example, eu-north-1
.public void setMetric(String metric)
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This
is the only supported metric.
metric
- The metric, aggregation-latency
, indicating that network latency is aggregated for the query.
This is the only supported metric.MetricType
public String getMetric()
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This
is the only supported metric.
aggregation-latency
, indicating that network latency is aggregated for the
query. This is the only supported metric.MetricType
public DataQuery withMetric(String metric)
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This
is the only supported metric.
metric
- The metric, aggregation-latency
, indicating that network latency is aggregated for the query.
This is the only supported metric.MetricType
public DataQuery withMetric(MetricType metric)
The metric, aggregation-latency
, indicating that network latency is aggregated for the query. This
is the only supported metric.
metric
- The metric, aggregation-latency
, indicating that network latency is aggregated for the query.
This is the only supported metric.MetricType
public void setStatistic(String statistic)
The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data points
gathered within those five minutes. p50
is the only supported metric.
statistic
- The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data
points gathered within those five minutes. p50
is the only supported metric.StatisticType
public String getStatistic()
The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data points
gathered within those five minutes. p50
is the only supported metric.
p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data
points gathered within those five minutes. p50
is the only supported metric.StatisticType
public DataQuery withStatistic(String statistic)
The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data points
gathered within those five minutes. p50
is the only supported metric.
statistic
- The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data
points gathered within those five minutes. p50
is the only supported metric.StatisticType
public DataQuery withStatistic(StatisticType statistic)
The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data points
gathered within those five minutes. p50
is the only supported metric.
statistic
- The metric data aggregation period, p50
, between the specified startDate
and
endDate
. For example, a metric of five_minutes
is the median of all the data
points gathered within those five minutes. p50
is the only supported metric.StatisticType
public void setPeriod(String period)
The aggregation period used for the data query.
period
- The aggregation period used for the data query.PeriodType
public String getPeriod()
The aggregation period used for the data query.
PeriodType
public DataQuery withPeriod(String period)
The aggregation period used for the data query.
period
- The aggregation period used for the data query.PeriodType
public DataQuery withPeriod(PeriodType period)
The aggregation period used for the data query.
period
- The aggregation period used for the data query.PeriodType
public String toString()
toString
in class Object
Object.toString()