AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchMetricsDetail.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devops-guru/model/CloudWatchMetricsStat.h>
11#include <aws/devops-guru/model/CloudWatchMetricsDataSummary.h>
12#include <aws/devops-guru/model/CloudWatchMetricsDimension.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DevOpsGuru
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DEVOPSGURU_API CloudWatchMetricsDetail();
42 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetMetricName() const{ return m_metricName; }
50 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
51 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
52 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
53 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
54 inline CloudWatchMetricsDetail& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
55 inline CloudWatchMetricsDetail& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
56 inline CloudWatchMetricsDetail& WithMetricName(const char* value) { SetMetricName(value); return *this;}
58
60
64 inline const Aws::String& GetNamespace() const{ return m_namespace; }
65 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
66 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
67 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
68 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
69 inline CloudWatchMetricsDetail& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
70 inline CloudWatchMetricsDetail& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
71 inline CloudWatchMetricsDetail& WithNamespace(const char* value) { SetNamespace(value); return *this;}
73
75
78 inline const Aws::Vector<CloudWatchMetricsDimension>& GetDimensions() const{ return m_dimensions; }
79 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
80 inline void SetDimensions(const Aws::Vector<CloudWatchMetricsDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
81 inline void SetDimensions(Aws::Vector<CloudWatchMetricsDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
84 inline CloudWatchMetricsDetail& AddDimensions(const CloudWatchMetricsDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
85 inline CloudWatchMetricsDetail& AddDimensions(CloudWatchMetricsDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
87
89
95 inline const CloudWatchMetricsStat& GetStat() const{ return m_stat; }
96 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
97 inline void SetStat(const CloudWatchMetricsStat& value) { m_statHasBeenSet = true; m_stat = value; }
98 inline void SetStat(CloudWatchMetricsStat&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
99 inline CloudWatchMetricsDetail& WithStat(const CloudWatchMetricsStat& value) { SetStat(value); return *this;}
100 inline CloudWatchMetricsDetail& WithStat(CloudWatchMetricsStat&& value) { SetStat(std::move(value)); return *this;}
102
104
109 inline const Aws::String& GetUnit() const{ return m_unit; }
110 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
111 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
112 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
113 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
114 inline CloudWatchMetricsDetail& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
115 inline CloudWatchMetricsDetail& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
116 inline CloudWatchMetricsDetail& WithUnit(const char* value) { SetUnit(value); return *this;}
118
120
124 inline int GetPeriod() const{ return m_period; }
125 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
126 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
127 inline CloudWatchMetricsDetail& WithPeriod(int value) { SetPeriod(value); return *this;}
129
131
134 inline const CloudWatchMetricsDataSummary& GetMetricDataSummary() const{ return m_metricDataSummary; }
135 inline bool MetricDataSummaryHasBeenSet() const { return m_metricDataSummaryHasBeenSet; }
136 inline void SetMetricDataSummary(const CloudWatchMetricsDataSummary& value) { m_metricDataSummaryHasBeenSet = true; m_metricDataSummary = value; }
137 inline void SetMetricDataSummary(CloudWatchMetricsDataSummary&& value) { m_metricDataSummaryHasBeenSet = true; m_metricDataSummary = std::move(value); }
141 private:
142
143 Aws::String m_metricName;
144 bool m_metricNameHasBeenSet = false;
145
146 Aws::String m_namespace;
147 bool m_namespaceHasBeenSet = false;
148
150 bool m_dimensionsHasBeenSet = false;
151
153 bool m_statHasBeenSet = false;
154
155 Aws::String m_unit;
156 bool m_unitHasBeenSet = false;
157
158 int m_period;
159 bool m_periodHasBeenSet = false;
160
161 CloudWatchMetricsDataSummary m_metricDataSummary;
162 bool m_metricDataSummaryHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace DevOpsGuru
167} // namespace Aws
CloudWatchMetricsDetail & WithMetricDataSummary(CloudWatchMetricsDataSummary &&value)
CloudWatchMetricsDetail & WithMetricName(Aws::String &&value)
CloudWatchMetricsDetail & WithMetricName(const Aws::String &value)
CloudWatchMetricsDetail & AddDimensions(const CloudWatchMetricsDimension &value)
CloudWatchMetricsDetail & WithUnit(Aws::String &&value)
CloudWatchMetricsDetail & WithUnit(const char *value)
CloudWatchMetricsDetail & WithNamespace(Aws::String &&value)
const CloudWatchMetricsStat & GetStat() const
CloudWatchMetricsDetail & AddDimensions(CloudWatchMetricsDimension &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchMetricsDetail & WithUnit(const Aws::String &value)
void SetMetricDataSummary(const CloudWatchMetricsDataSummary &value)
void SetDimensions(const Aws::Vector< CloudWatchMetricsDimension > &value)
const Aws::Vector< CloudWatchMetricsDimension > & GetDimensions() const
CloudWatchMetricsDetail & WithDimensions(const Aws::Vector< CloudWatchMetricsDimension > &value)
void SetDimensions(Aws::Vector< CloudWatchMetricsDimension > &&value)
CloudWatchMetricsDetail & WithDimensions(Aws::Vector< CloudWatchMetricsDimension > &&value)
CloudWatchMetricsDetail & WithMetricName(const char *value)
const CloudWatchMetricsDataSummary & GetMetricDataSummary() const
CloudWatchMetricsDetail & WithNamespace(const char *value)
AWS_DEVOPSGURU_API CloudWatchMetricsDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStat(const CloudWatchMetricsStat &value)
CloudWatchMetricsDetail & WithMetricDataSummary(const CloudWatchMetricsDataSummary &value)
CloudWatchMetricsDetail & WithNamespace(const Aws::String &value)
CloudWatchMetricsDetail & WithStat(const CloudWatchMetricsStat &value)
void SetMetricDataSummary(CloudWatchMetricsDataSummary &&value)
AWS_DEVOPSGURU_API CloudWatchMetricsDetail(Aws::Utils::Json::JsonView jsonValue)
CloudWatchMetricsDetail & WithStat(CloudWatchMetricsStat &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue