AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SESV2_API ExportMetric();
37 AWS_SESV2_API ExportMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Metric& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Metric& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Metric&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline ExportMetric& WithName(const Metric& value) { SetName(value); return *this;}
49 inline ExportMetric& WithName(Metric&& value) { SetName(std::move(value)); return *this;}
51
53
54 inline const MetricAggregation& GetAggregation() const{ return m_aggregation; }
55 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
56 inline void SetAggregation(const MetricAggregation& value) { m_aggregationHasBeenSet = true; m_aggregation = value; }
57 inline void SetAggregation(MetricAggregation&& value) { m_aggregationHasBeenSet = true; m_aggregation = std::move(value); }
58 inline ExportMetric& WithAggregation(const MetricAggregation& value) { SetAggregation(value); return *this;}
59 inline ExportMetric& WithAggregation(MetricAggregation&& value) { SetAggregation(std::move(value)); return *this;}
61 private:
62
63 Metric m_name;
64 bool m_nameHasBeenSet = false;
65
66 MetricAggregation m_aggregation;
67 bool m_aggregationHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace SESV2
72} // namespace Aws
AWS_SESV2_API ExportMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API ExportMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
ExportMetric & WithAggregation(const MetricAggregation &value)
ExportMetric & WithAggregation(MetricAggregation &&value)
void SetAggregation(MetricAggregation &&value)
void SetName(Metric &&value)
const MetricAggregation & GetAggregation() const
ExportMetric & WithName(const Metric &value)
const Metric & GetName() const
ExportMetric & WithName(Metric &&value)
void SetAggregation(const MetricAggregation &value)
void SetName(const Metric &value)
Aws::Utils::Json::JsonValue JsonValue