AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricsDataSource.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/sesv2/model/MetricNamespace.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sesv2/model/MetricDimensionName.h>
13#include <aws/sesv2/model/ExportMetric.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SESV2
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_SESV2_API MetricsDataSource();
44 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>& GetDimensions() const{ return m_dimensions; }
54 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
55 inline void SetDimensions(const Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
56 inline void SetDimensions(Aws::Map<MetricDimensionName, Aws::Vector<Aws::String>>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
59 inline MetricsDataSource& AddDimensions(const MetricDimensionName& key, const Aws::Vector<Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
60 inline MetricsDataSource& AddDimensions(MetricDimensionName&& key, const Aws::Vector<Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
61 inline MetricsDataSource& AddDimensions(const MetricDimensionName& key, Aws::Vector<Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
62 inline MetricsDataSource& AddDimensions(MetricDimensionName&& key, Aws::Vector<Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
64
66
69 inline const MetricNamespace& GetNamespace() const{ return m_namespace; }
70 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
71 inline void SetNamespace(const MetricNamespace& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
72 inline void SetNamespace(MetricNamespace&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
73 inline MetricsDataSource& WithNamespace(const MetricNamespace& value) { SetNamespace(value); return *this;}
74 inline MetricsDataSource& WithNamespace(MetricNamespace&& value) { SetNamespace(std::move(value)); return *this;}
76
78
81 inline const Aws::Vector<ExportMetric>& GetMetrics() const{ return m_metrics; }
82 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
83 inline void SetMetrics(const Aws::Vector<ExportMetric>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
84 inline void SetMetrics(Aws::Vector<ExportMetric>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
85 inline MetricsDataSource& WithMetrics(const Aws::Vector<ExportMetric>& value) { SetMetrics(value); return *this;}
86 inline MetricsDataSource& WithMetrics(Aws::Vector<ExportMetric>&& value) { SetMetrics(std::move(value)); return *this;}
87 inline MetricsDataSource& AddMetrics(const ExportMetric& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
88 inline MetricsDataSource& AddMetrics(ExportMetric&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
90
92
95 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
96 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
97 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
98 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
99 inline MetricsDataSource& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
100 inline MetricsDataSource& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
108 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
109 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
110 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
111 inline MetricsDataSource& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
112 inline MetricsDataSource& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
114 private:
115
117 bool m_dimensionsHasBeenSet = false;
118
119 MetricNamespace m_namespace;
120 bool m_namespaceHasBeenSet = false;
121
123 bool m_metricsHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startDate;
126 bool m_startDateHasBeenSet = false;
127
128 Aws::Utils::DateTime m_endDate;
129 bool m_endDateHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace SESV2
134} // namespace Aws
MetricsDataSource & AddDimensions(MetricDimensionName &&key, const Aws::Vector< Aws::String > &value)
const Aws::Vector< ExportMetric > & GetMetrics() const
void SetNamespace(const MetricNamespace &value)
MetricsDataSource & WithEndDate(const Aws::Utils::DateTime &value)
void SetStartDate(const Aws::Utils::DateTime &value)
MetricsDataSource & WithMetrics(const Aws::Vector< ExportMetric > &value)
void SetDimensions(const Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > &value)
MetricsDataSource & WithNamespace(MetricNamespace &&value)
MetricsDataSource & WithMetrics(Aws::Vector< ExportMetric > &&value)
MetricsDataSource & AddDimensions(const MetricDimensionName &key, Aws::Vector< Aws::String > &&value)
const Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > & GetDimensions() const
MetricsDataSource & AddMetrics(const ExportMetric &value)
const MetricNamespace & GetNamespace() const
MetricsDataSource & AddMetrics(ExportMetric &&value)
void SetNamespace(MetricNamespace &&value)
MetricsDataSource & WithNamespace(const MetricNamespace &value)
MetricsDataSource & WithDimensions(const Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > &value)
void SetStartDate(Aws::Utils::DateTime &&value)
MetricsDataSource & WithStartDate(const Aws::Utils::DateTime &value)
AWS_SESV2_API MetricsDataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndDate() const
const Aws::Utils::DateTime & GetStartDate() const
MetricsDataSource & AddDimensions(MetricDimensionName &&key, Aws::Vector< Aws::String > &&value)
AWS_SESV2_API MetricsDataSource(Aws::Utils::Json::JsonView jsonValue)
void SetMetrics(Aws::Vector< ExportMetric > &&value)
MetricsDataSource & WithDimensions(Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > &&value)
void SetMetrics(const Aws::Vector< ExportMetric > &value)
MetricsDataSource & AddDimensions(const MetricDimensionName &key, const Aws::Vector< Aws::String > &value)
MetricsDataSource & WithEndDate(Aws::Utils::DateTime &&value)
void SetDimensions(Aws::Map< MetricDimensionName, Aws::Vector< Aws::String > > &&value)
MetricsDataSource & WithStartDate(Aws::Utils::DateTime &&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