/** * 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 #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The response to a DataQuery.

See Also:

AWS * API Reference

*/ class DataResponse { public: AWS_EC2_API DataResponse(); AWS_EC2_API DataResponse(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DataResponse& 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; /** *

The ID passed in the DataQuery.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

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

The ID passed in the DataQuery.

*/ inline DataResponse& 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 DataResponse& 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 DataResponse& 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 DataResponse& WithSource(const char* value) { SetSource(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The metric used for the network performance request. Only * aggregate-latency is supported, which shows network latency during * a specified period.

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

The statistic used for the network performance request.

*/ inline const StatisticType& GetStatistic() const{ return m_statistic; } /** *

The statistic used for the network performance request.

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

The statistic used for the network performance request.

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

The statistic used for the network performance request.

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

The statistic used for the network performance request.

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

The statistic used for the network performance request.

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

The period used for the network performance request.

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

The period used for the network performance request.

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

The period used for the network performance request.

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

The period used for the network performance request.

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

The period used for the network performance request.

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

The period used for the network performance request.

*/ inline DataResponse& WithPeriod(PeriodType&& value) { SetPeriod(std::move(value)); return *this;} /** *

A list of MetricPoint objects.

*/ inline const Aws::Vector& GetMetricPoints() const{ return m_metricPoints; } /** *

A list of MetricPoint objects.

*/ inline bool MetricPointsHasBeenSet() const { return m_metricPointsHasBeenSet; } /** *

A list of MetricPoint objects.

*/ inline void SetMetricPoints(const Aws::Vector& value) { m_metricPointsHasBeenSet = true; m_metricPoints = value; } /** *

A list of MetricPoint objects.

*/ inline void SetMetricPoints(Aws::Vector&& value) { m_metricPointsHasBeenSet = true; m_metricPoints = std::move(value); } /** *

A list of MetricPoint objects.

*/ inline DataResponse& WithMetricPoints(const Aws::Vector& value) { SetMetricPoints(value); return *this;} /** *

A list of MetricPoint objects.

*/ inline DataResponse& WithMetricPoints(Aws::Vector&& value) { SetMetricPoints(std::move(value)); return *this;} /** *

A list of MetricPoint objects.

*/ inline DataResponse& AddMetricPoints(const MetricPoint& value) { m_metricPointsHasBeenSet = true; m_metricPoints.push_back(value); return *this; } /** *

A list of MetricPoint objects.

*/ inline DataResponse& AddMetricPoints(MetricPoint&& value) { m_metricPointsHasBeenSet = true; m_metricPoints.push_back(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; Aws::Vector m_metricPoints; bool m_metricPointsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws