AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ExportMetric.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/model/Metric.h>
9#include <aws/sesv2/model/MetricAggregation.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SESV2 {
21namespace Model {
22
30 public:
31 AWS_SESV2_API ExportMetric() = default;
32 AWS_SESV2_API ExportMetric(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline Metric GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 inline void SetName(Metric value) {
41 m_nameHasBeenSet = true;
42 m_name = value;
43 }
44 inline ExportMetric& WithName(Metric value) {
45 SetName(value);
46 return *this;
47 }
49
51
52 inline MetricAggregation GetAggregation() const { return m_aggregation; }
53 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
54 inline void SetAggregation(MetricAggregation value) {
55 m_aggregationHasBeenSet = true;
56 m_aggregation = value;
57 }
59 SetAggregation(value);
60 return *this;
61 }
63 private:
64 Metric m_name{Metric::NOT_SET};
65
67 bool m_nameHasBeenSet = false;
68 bool m_aggregationHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace SESV2
73} // namespace Aws
AWS_SESV2_API ExportMetric(Aws::Utils::Json::JsonView jsonValue)
void SetAggregation(MetricAggregation value)
AWS_SESV2_API ExportMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
MetricAggregation GetAggregation() const
AWS_SESV2_API ExportMetric()=default
ExportMetric & WithAggregation(MetricAggregation value)
ExportMetric & WithName(Metric value)
Aws::Utils::Json::JsonValue JsonValue