AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MetricsDataSource.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/SESV2_EXPORTS.h>
12#include <aws/sesv2/model/ExportMetric.h>
13#include <aws/sesv2/model/MetricDimensionName.h>
14#include <aws/sesv2/model/MetricNamespace.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SESV2 {
26namespace Model {
27
35 public:
36 AWS_SESV2_API MetricsDataSource() = default;
39 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>& GetDimensions() const { return m_dimensions; }
48 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
49 template <typename DimensionsT = Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>>
50 void SetDimensions(DimensionsT&& value) {
51 m_dimensionsHasBeenSet = true;
52 m_dimensions = std::forward<DimensionsT>(value);
53 }
54 template <typename DimensionsT = Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>>
55 MetricsDataSource& WithDimensions(DimensionsT&& value) {
56 SetDimensions(std::forward<DimensionsT>(value));
57 return *this;
58 }
60 m_dimensionsHasBeenSet = true;
61 m_dimensions.emplace(key, value);
62 return *this;
63 }
65
67
70 inline MetricNamespace GetNamespace() const { return m_namespace; }
71 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
72 inline void SetNamespace(MetricNamespace value) {
73 m_namespaceHasBeenSet = true;
74 m_namespace = value;
75 }
77 SetNamespace(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<ExportMetric>& GetMetrics() const { return m_metrics; }
87 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
88 template <typename MetricsT = Aws::Vector<ExportMetric>>
89 void SetMetrics(MetricsT&& value) {
90 m_metricsHasBeenSet = true;
91 m_metrics = std::forward<MetricsT>(value);
92 }
93 template <typename MetricsT = Aws::Vector<ExportMetric>>
94 MetricsDataSource& WithMetrics(MetricsT&& value) {
95 SetMetrics(std::forward<MetricsT>(value));
96 return *this;
97 }
98 template <typename MetricsT = ExportMetric>
99 MetricsDataSource& AddMetrics(MetricsT&& value) {
100 m_metricsHasBeenSet = true;
101 m_metrics.emplace_back(std::forward<MetricsT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
111 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
112 template <typename StartDateT = Aws::Utils::DateTime>
113 void SetStartDate(StartDateT&& value) {
114 m_startDateHasBeenSet = true;
115 m_startDate = std::forward<StartDateT>(value);
116 }
117 template <typename StartDateT = Aws::Utils::DateTime>
118 MetricsDataSource& WithStartDate(StartDateT&& value) {
119 SetStartDate(std::forward<StartDateT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
129 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
130 template <typename EndDateT = Aws::Utils::DateTime>
131 void SetEndDate(EndDateT&& value) {
132 m_endDateHasBeenSet = true;
133 m_endDate = std::forward<EndDateT>(value);
134 }
135 template <typename EndDateT = Aws::Utils::DateTime>
136 MetricsDataSource& WithEndDate(EndDateT&& value) {
137 SetEndDate(std::forward<EndDateT>(value));
138 return *this;
139 }
141 private:
143
145
147
148 Aws::Utils::DateTime m_startDate{};
149
150 Aws::Utils::DateTime m_endDate{};
151 bool m_dimensionsHasBeenSet = false;
152 bool m_namespaceHasBeenSet = false;
153 bool m_metricsHasBeenSet = false;
154 bool m_startDateHasBeenSet = false;
155 bool m_endDateHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace SESV2
160} // namespace Aws
const Aws::Vector< ExportMetric > & GetMetrics() const
MetricsDataSource & WithDimensions(DimensionsT &&value)
MetricsDataSource & WithStartDate(StartDateT &&value)
MetricsDataSource & AddMetrics(MetricsT &&value)
AWS_SESV2_API MetricsDataSource()=default
MetricsDataSource & WithEndDate(EndDateT &&value)
MetricsDataSource & WithMetrics(MetricsT &&value)
const Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > & GetDimensions() const
MetricsDataSource & AddDimensions(MetricDimensionName key, Aws::Vector< Aws::String > value)
AWS_SESV2_API MetricsDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndDate() const
const Aws::Utils::DateTime & GetStartDate() const
AWS_SESV2_API MetricsDataSource(Aws::Utils::Json::JsonView jsonValue)
MetricsDataSource & WithNamespace(MetricNamespace value)
void SetNamespace(MetricNamespace value)
void SetDimensions(DimensionsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue