@Generated(value="software.amazon.awssdk:codegen") public final class DataQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataQuery.Builder,DataQuery>
A query used for retrieving network health data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataQuery.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DataQuery.Builder |
builder() |
String |
destination()
The Region or Availability Zone that's the target for the data query.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
A user-defined ID associated with a data query that's returned in the
dataResponse identifying the
query. |
MetricType |
metric()
The metric,
aggregation-latency, indicating that network latency is aggregated for the query. |
String |
metricAsString()
The metric,
aggregation-latency, indicating that network latency is aggregated for the query. |
PeriodType |
period()
The aggregation period used for the data query.
|
String |
periodAsString()
The aggregation period used for the data query.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataQuery.Builder> |
serializableBuilderClass() |
String |
source()
The Region or Availability Zone that's the source for the data query.
|
StatisticType |
statistic()
The metric data aggregation period,
p50, between the specified startDate and
endDate. |
String |
statisticAsString()
The metric data aggregation period,
p50, between the specified startDate and
endDate. |
DataQuery.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 MyQuery01in the query, the dataResponse
identifies the query as MyQuery01.
dataResponse
identifying the query. For example, if you set the Id to MyQuery01in the query, the
dataResponse identifies the query as MyQuery01.public final String source()
The Region or Availability Zone that's the source for the data query. For example, us-east-1.
us-east-1
.public final String destination()
The Region or Availability Zone that's the target for the data query. For example, eu-north-1.
eu-north-1.public final MetricType metric()
The metric, aggregation-latency, indicating that network latency is aggregated for the query. This
is the only supported metric.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
aggregation-latency, indicating that network latency is aggregated for the
query. This is the only supported metric.MetricTypepublic final String metricAsString()
The metric, aggregation-latency, indicating that network latency is aggregated for the query. This
is the only supported metric.
If the service returns an enum value that is not available in the current SDK version, metric will
return MetricType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
metricAsString().
aggregation-latency, indicating that network latency is aggregated for the
query. This is the only supported metric.MetricTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
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.StatisticTypepublic final String statisticAsString()
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.
If the service returns an enum value that is not available in the current SDK version, statistic will
return StatisticType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
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.StatisticTypepublic final PeriodType period()
The aggregation period used for the data query.
If the service returns an enum value that is not available in the current SDK version, period will
return PeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
PeriodTypepublic final String periodAsString()
The aggregation period used for the data query.
If the service returns an enum value that is not available in the current SDK version, period will
return PeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
PeriodTypepublic DataQuery.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataQuery.Builder,DataQuery>public static DataQuery.Builder builder()
public static Class<? extends DataQuery.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.