AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetMetricDataQuery.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sesv2/model/MetricNamespace.h>
10#include <aws/sesv2/model/Metric.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/sesv2/model/MetricDimensionName.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 SESV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SESV2_API BatchGetMetricDataQuery();
43 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline BatchGetMetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline BatchGetMetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline BatchGetMetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const MetricNamespace& GetNamespace() const{ return m_namespace; }
65 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
66 inline void SetNamespace(const MetricNamespace& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
67 inline void SetNamespace(MetricNamespace&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
68 inline BatchGetMetricDataQuery& WithNamespace(const MetricNamespace& value) { SetNamespace(value); return *this;}
69 inline BatchGetMetricDataQuery& WithNamespace(MetricNamespace&& value) { SetNamespace(std::move(value)); return *this;}
71
73
106 inline const Metric& GetMetric() const{ return m_metric; }
107 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
108 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
109 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
110 inline BatchGetMetricDataQuery& WithMetric(const Metric& value) { SetMetric(value); return *this;}
111 inline BatchGetMetricDataQuery& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
113
115
119 inline const Aws::Map<MetricDimensionName, Aws::String>& GetDimensions() const{ return m_dimensions; }
120 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
121 inline void SetDimensions(const Aws::Map<MetricDimensionName, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
122 inline void SetDimensions(Aws::Map<MetricDimensionName, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
125 inline BatchGetMetricDataQuery& AddDimensions(const MetricDimensionName& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
126 inline BatchGetMetricDataQuery& AddDimensions(MetricDimensionName&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
127 inline BatchGetMetricDataQuery& AddDimensions(const MetricDimensionName& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
128 inline BatchGetMetricDataQuery& AddDimensions(MetricDimensionName&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
129 inline BatchGetMetricDataQuery& AddDimensions(MetricDimensionName&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
130 inline BatchGetMetricDataQuery& AddDimensions(const MetricDimensionName& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
132
134
137 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
138 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
139 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
140 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
141 inline BatchGetMetricDataQuery& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
142 inline BatchGetMetricDataQuery& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
150 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
151 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
152 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
153 inline BatchGetMetricDataQuery& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
154 inline BatchGetMetricDataQuery& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
156 private:
157
158 Aws::String m_id;
159 bool m_idHasBeenSet = false;
160
161 MetricNamespace m_namespace;
162 bool m_namespaceHasBeenSet = false;
163
164 Metric m_metric;
165 bool m_metricHasBeenSet = false;
166
168 bool m_dimensionsHasBeenSet = false;
169
170 Aws::Utils::DateTime m_startDate;
171 bool m_startDateHasBeenSet = false;
172
173 Aws::Utils::DateTime m_endDate;
174 bool m_endDateHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace SESV2
179} // namespace Aws
BatchGetMetricDataQuery & AddDimensions(const MetricDimensionName &key, const Aws::String &value)
void SetNamespace(const MetricNamespace &value)
BatchGetMetricDataQuery & WithId(Aws::String &&value)
BatchGetMetricDataQuery & AddDimensions(MetricDimensionName &&key, Aws::String &&value)
BatchGetMetricDataQuery & AddDimensions(const MetricDimensionName &key, const char *value)
BatchGetMetricDataQuery & WithDimensions(const Aws::Map< MetricDimensionName, Aws::String > &value)
AWS_SESV2_API BatchGetMetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartDate() const
BatchGetMetricDataQuery & WithId(const Aws::String &value)
const Aws::Map< MetricDimensionName, Aws::String > & GetDimensions() const
BatchGetMetricDataQuery & WithNamespace(const MetricNamespace &value)
BatchGetMetricDataQuery & AddDimensions(const MetricDimensionName &key, Aws::String &&value)
void SetEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&value)
void SetStartDate(Aws::Utils::DateTime &&value)
BatchGetMetricDataQuery & WithNamespace(MetricNamespace &&value)
AWS_SESV2_API BatchGetMetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartDate(const Aws::Utils::DateTime &value)
BatchGetMetricDataQuery & WithDimensions(Aws::Map< MetricDimensionName, Aws::String > &&value)
BatchGetMetricDataQuery & AddDimensions(MetricDimensionName &&key, const char *value)
BatchGetMetricDataQuery & WithStartDate(Aws::Utils::DateTime &&value)
BatchGetMetricDataQuery & WithMetric(const Metric &value)
void SetDimensions(Aws::Map< MetricDimensionName, Aws::String > &&value)
BatchGetMetricDataQuery & WithId(const char *value)
BatchGetMetricDataQuery & WithEndDate(const Aws::Utils::DateTime &value)
BatchGetMetricDataQuery & WithEndDate(Aws::Utils::DateTime &&value)
BatchGetMetricDataQuery & WithMetric(Metric &&value)
BatchGetMetricDataQuery & AddDimensions(MetricDimensionName &&key, const Aws::String &value)
void SetDimensions(const Aws::Map< MetricDimensionName, Aws::String > &value)
const Aws::Utils::DateTime & GetEndDate() const
BatchGetMetricDataQuery & WithStartDate(const Aws::Utils::DateTime &value)
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