@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 aggregation metric used for the data 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()
Metric data aggregations over specified periods of time.
|
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 aggregation metric used for the data 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)
Metric data aggregations over specified periods of time.
|
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 aggregation metric used for the data query.
|
DataQuery |
withMetric(String metric)
The aggregation metric used for the data 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)
Metric data aggregations over specified periods of time.
|
DataQuery |
withStatistic(String statistic)
Metric data aggregations over specified periods of time.
|
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 aggregation metric used for the data query. Currently only aggregation-latency
is supported,
indicating network latency.
metric
- The aggregation metric used for the data query. Currently only aggregation-latency
is
supported, indicating network latency.MetricType
public String getMetric()
The aggregation metric used for the data query. Currently only aggregation-latency
is supported,
indicating network latency.
aggregation-latency
is
supported, indicating network latency.MetricType
public DataQuery withMetric(String metric)
The aggregation metric used for the data query. Currently only aggregation-latency
is supported,
indicating network latency.
metric
- The aggregation metric used for the data query. Currently only aggregation-latency
is
supported, indicating network latency.MetricType
public DataQuery withMetric(MetricType metric)
The aggregation metric used for the data query. Currently only aggregation-latency
is supported,
indicating network latency.
metric
- The aggregation metric used for the data query. Currently only aggregation-latency
is
supported, indicating network latency.MetricType
public void setStatistic(String statistic)
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes
is the median of all the data points gathered within those five minutes.
statistic
- Metric data aggregations over specified periods of time. The following are the supported Infrastructure
Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes
is the median of all the data points gathered within those
five minutes.
StatisticType
public String getStatistic()
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes
is the median of all the data points gathered within those five minutes.
p50
- The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes
is the median of all the data points gathered within those
five minutes.
StatisticType
public DataQuery withStatistic(String statistic)
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes
is the median of all the data points gathered within those five minutes.
statistic
- Metric data aggregations over specified periods of time. The following are the supported Infrastructure
Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes
is the median of all the data points gathered within those
five minutes.
StatisticType
public DataQuery withStatistic(StatisticType statistic)
Metric data aggregations over specified periods of time. The following are the supported Infrastructure Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For example, a
metric of five_minutes
is the median of all the data points gathered within those five minutes.
statistic
- Metric data aggregations over specified periods of time. The following are the supported Infrastructure
Performance statistics:
p50
- The median value of the metric aggregated over a specified start and end time. For
example, a metric of five_minutes
is the median of all the data points gathered within those
five minutes.
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()