AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BatchGetMetricDataQuery.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/Metric.h>
12#include <aws/sesv2/model/MetricDimensionName.h>
13#include <aws/sesv2/model/MetricNamespace.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SESV2 {
25namespace Model {
26
34 public:
35 AWS_SESV2_API BatchGetMetricDataQuery() = default;
38 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline MetricNamespace GetNamespace() const { return m_namespace; }
63 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
64 inline void SetNamespace(MetricNamespace value) {
65 m_namespaceHasBeenSet = true;
66 m_namespace = value;
67 }
69 SetNamespace(value);
70 return *this;
71 }
73
75
108 inline Metric GetMetric() const { return m_metric; }
109 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
110 inline void SetMetric(Metric value) {
111 m_metricHasBeenSet = true;
112 m_metric = value;
113 }
115 SetMetric(value);
116 return *this;
117 }
119
121
125 inline const Aws::Map<MetricDimensionName, Aws::String>& GetDimensions() const { return m_dimensions; }
126 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
127 template <typename DimensionsT = Aws::Map<MetricDimensionName, Aws::String>>
128 void SetDimensions(DimensionsT&& value) {
129 m_dimensionsHasBeenSet = true;
130 m_dimensions = std::forward<DimensionsT>(value);
131 }
132 template <typename DimensionsT = Aws::Map<MetricDimensionName, Aws::String>>
134 SetDimensions(std::forward<DimensionsT>(value));
135 return *this;
136 }
138 m_dimensionsHasBeenSet = true;
139 m_dimensions.emplace(key, value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
149 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
150 template <typename StartDateT = Aws::Utils::DateTime>
151 void SetStartDate(StartDateT&& value) {
152 m_startDateHasBeenSet = true;
153 m_startDate = std::forward<StartDateT>(value);
154 }
155 template <typename StartDateT = Aws::Utils::DateTime>
157 SetStartDate(std::forward<StartDateT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
167 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
168 template <typename EndDateT = Aws::Utils::DateTime>
169 void SetEndDate(EndDateT&& value) {
170 m_endDateHasBeenSet = true;
171 m_endDate = std::forward<EndDateT>(value);
172 }
173 template <typename EndDateT = Aws::Utils::DateTime>
175 SetEndDate(std::forward<EndDateT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_id;
181
183
184 Metric m_metric{Metric::NOT_SET};
185
187
188 Aws::Utils::DateTime m_startDate{};
189
190 Aws::Utils::DateTime m_endDate{};
191 bool m_idHasBeenSet = false;
192 bool m_namespaceHasBeenSet = false;
193 bool m_metricHasBeenSet = false;
194 bool m_dimensionsHasBeenSet = false;
195 bool m_startDateHasBeenSet = false;
196 bool m_endDateHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace SESV2
201} // namespace Aws
BatchGetMetricDataQuery & AddDimensions(MetricDimensionName key, Aws::String value)
AWS_SESV2_API BatchGetMetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartDate() const
const Aws::Map< MetricDimensionName, Aws::String > & GetDimensions() const
AWS_SESV2_API BatchGetMetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetMetricDataQuery & WithEndDate(EndDateT &&value)
BatchGetMetricDataQuery & WithDimensions(DimensionsT &&value)
BatchGetMetricDataQuery & WithMetric(Metric value)
BatchGetMetricDataQuery & WithNamespace(MetricNamespace value)
BatchGetMetricDataQuery & WithId(IdT &&value)
const Aws::Utils::DateTime & GetEndDate() const
BatchGetMetricDataQuery & WithStartDate(StartDateT &&value)
AWS_SESV2_API BatchGetMetricDataQuery()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue