/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

A query used for retrieving network health data.

See Also:

* AWS * API Reference

*/ class DataQuery { public: AWS_EC2_API DataQuery(); AWS_EC2_API DataQuery(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DataQuery& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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.

*/ inline const Aws::String& GetId() const{ return m_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.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

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.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

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.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

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.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

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.

*/ inline DataQuery& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

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.

*/ inline DataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

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.

*/ inline DataQuery& WithId(const char* value) { SetId(value); return *this;} /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline DataQuery& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline DataQuery& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The Region or Availability Zone that's the source for the data query. For * example, us-east-1.

*/ inline DataQuery& WithSource(const char* value) { SetSource(value); return *this;} /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline DataQuery& WithDestination(const Aws::String& value) { SetDestination(value); return *this;} /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline DataQuery& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;} /** *

The Region or Availability Zone that's the target for the data query. For * example, eu-north-1.

*/ inline DataQuery& WithDestination(const char* value) { SetDestination(value); return *this;} /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline const MetricType& GetMetric() const{ return m_metric; } /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline void SetMetric(const MetricType& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline void SetMetric(MetricType&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline DataQuery& WithMetric(const MetricType& value) { SetMetric(value); return *this;} /** *

The metric, aggregation-latency, indicating that network latency * is aggregated for the query. This is the only supported metric.

*/ inline DataQuery& WithMetric(MetricType&& value) { SetMetric(std::move(value)); return *this;} /** *

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.

*/ inline const StatisticType& GetStatistic() const{ return m_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.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

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.

*/ inline void SetStatistic(const StatisticType& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

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.

*/ inline void SetStatistic(StatisticType&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

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.

*/ inline DataQuery& WithStatistic(const StatisticType& value) { SetStatistic(value); return *this;} /** *

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.

*/ inline DataQuery& WithStatistic(StatisticType&& value) { SetStatistic(std::move(value)); return *this;} /** *

The aggregation period used for the data query.

*/ inline const PeriodType& GetPeriod() const{ return m_period; } /** *

The aggregation period used for the data query.

*/ inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; } /** *

The aggregation period used for the data query.

*/ inline void SetPeriod(const PeriodType& value) { m_periodHasBeenSet = true; m_period = value; } /** *

The aggregation period used for the data query.

*/ inline void SetPeriod(PeriodType&& value) { m_periodHasBeenSet = true; m_period = std::move(value); } /** *

The aggregation period used for the data query.

*/ inline DataQuery& WithPeriod(const PeriodType& value) { SetPeriod(value); return *this;} /** *

The aggregation period used for the data query.

*/ inline DataQuery& WithPeriod(PeriodType&& value) { SetPeriod(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_destination; bool m_destinationHasBeenSet = false; MetricType m_metric; bool m_metricHasBeenSet = false; StatisticType m_statistic; bool m_statisticHasBeenSet = false; PeriodType m_period; bool m_periodHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws