AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SummaryMetricQuery.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotwireless/model/MetricName.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotwireless/model/AggregationPeriod.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/iotwireless/model/Dimension.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTWireless
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IOTWIRELESS_API SummaryMetricQuery();
40 AWS_IOTWIRELESS_API SummaryMetricQuery(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetQueryId() const{ return m_queryId; }
50 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
51 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
52 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
53 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
54 inline SummaryMetricQuery& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
55 inline SummaryMetricQuery& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
56 inline SummaryMetricQuery& WithQueryId(const char* value) { SetQueryId(value); return *this;}
58
60
63 inline const MetricName& GetMetricName() const{ return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 inline void SetMetricName(const MetricName& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
66 inline void SetMetricName(MetricName&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
67 inline SummaryMetricQuery& WithMetricName(const MetricName& value) { SetMetricName(value); return *this;}
68 inline SummaryMetricQuery& WithMetricName(MetricName&& value) { SetMetricName(std::move(value)); return *this;}
70
72
75 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
76 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
77 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
78 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
79 inline SummaryMetricQuery& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
80 inline SummaryMetricQuery& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
81 inline SummaryMetricQuery& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
82 inline SummaryMetricQuery& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
84
86
89 inline const AggregationPeriod& GetAggregationPeriod() const{ return m_aggregationPeriod; }
90 inline bool AggregationPeriodHasBeenSet() const { return m_aggregationPeriodHasBeenSet; }
91 inline void SetAggregationPeriod(const AggregationPeriod& value) { m_aggregationPeriodHasBeenSet = true; m_aggregationPeriod = value; }
92 inline void SetAggregationPeriod(AggregationPeriod&& value) { m_aggregationPeriodHasBeenSet = true; m_aggregationPeriod = std::move(value); }
94 inline SummaryMetricQuery& WithAggregationPeriod(AggregationPeriod&& value) { SetAggregationPeriod(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
102 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
103 inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
104 inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
106 inline SummaryMetricQuery& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetEndTimestamp() const{ return m_endTimestamp; }
114 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
115 inline void SetEndTimestamp(const Aws::Utils::DateTime& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = value; }
116 inline void SetEndTimestamp(Aws::Utils::DateTime&& value) { m_endTimestampHasBeenSet = true; m_endTimestamp = std::move(value); }
117 inline SummaryMetricQuery& WithEndTimestamp(const Aws::Utils::DateTime& value) { SetEndTimestamp(value); return *this;}
118 inline SummaryMetricQuery& WithEndTimestamp(Aws::Utils::DateTime&& value) { SetEndTimestamp(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_queryId;
123 bool m_queryIdHasBeenSet = false;
124
125 MetricName m_metricName;
126 bool m_metricNameHasBeenSet = false;
127
128 Aws::Vector<Dimension> m_dimensions;
129 bool m_dimensionsHasBeenSet = false;
130
131 AggregationPeriod m_aggregationPeriod;
132 bool m_aggregationPeriodHasBeenSet = false;
133
134 Aws::Utils::DateTime m_startTimestamp;
135 bool m_startTimestampHasBeenSet = false;
136
137 Aws::Utils::DateTime m_endTimestamp;
138 bool m_endTimestampHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoTWireless
143} // namespace Aws
SummaryMetricQuery & WithQueryId(const char *value)
void SetDimensions(Aws::Vector< Dimension > &&value)
const Aws::Vector< Dimension > & GetDimensions() const
SummaryMetricQuery & AddDimensions(const Dimension &value)
const AggregationPeriod & GetAggregationPeriod() const
void SetQueryId(const Aws::String &value)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
SummaryMetricQuery & WithAggregationPeriod(AggregationPeriod &&value)
void SetDimensions(const Aws::Vector< Dimension > &value)
SummaryMetricQuery & WithEndTimestamp(Aws::Utils::DateTime &&value)
SummaryMetricQuery & WithDimensions(Aws::Vector< Dimension > &&value)
void SetAggregationPeriod(const AggregationPeriod &value)
SummaryMetricQuery & AddDimensions(Dimension &&value)
void SetEndTimestamp(Aws::Utils::DateTime &&value)
SummaryMetricQuery & WithMetricName(MetricName &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
SummaryMetricQuery & WithAggregationPeriod(const AggregationPeriod &value)
AWS_IOTWIRELESS_API SummaryMetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQuery & WithMetricName(const MetricName &value)
void SetStartTimestamp(Aws::Utils::DateTime &&value)
AWS_IOTWIRELESS_API SummaryMetricQuery(Aws::Utils::Json::JsonView jsonValue)
SummaryMetricQuery & WithDimensions(const Aws::Vector< Dimension > &value)
SummaryMetricQuery & WithStartTimestamp(const Aws::Utils::DateTime &value)
SummaryMetricQuery & WithStartTimestamp(Aws::Utils::DateTime &&value)
void SetMetricName(const MetricName &value)
void SetEndTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTimestamp() const
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
SummaryMetricQuery & WithEndTimestamp(const Aws::Utils::DateTime &value)
void SetAggregationPeriod(AggregationPeriod &&value)
SummaryMetricQuery & WithQueryId(Aws::String &&value)
SummaryMetricQuery & WithQueryId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue