AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
MetricSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MetricStatus.h>
9#include <aws/connect/model/MetricType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
31 public:
32 AWS_CONNECT_API MetricSummary() = default;
33 AWS_CONNECT_API MetricSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 MetricSummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 MetricSummary& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 MetricSummary& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline MetricStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(MetricStatus value) {
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline MetricType GetType() const { return m_type; }
112 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
113 inline void SetType(MetricType value) {
114 m_typeHasBeenSet = true;
115 m_type = value;
116 }
118 SetType(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
128 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
129 template <typename LastModifiedRegionT = Aws::String>
130 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
131 m_lastModifiedRegionHasBeenSet = true;
132 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
133 }
134 template <typename LastModifiedRegionT = Aws::String>
135 MetricSummary& WithLastModifiedRegion(LastModifiedRegionT&& value) {
136 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
146 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
147 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
148 void SetLastModifiedTime(LastModifiedTimeT&& value) {
149 m_lastModifiedTimeHasBeenSet = true;
150 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
151 }
152 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
153 MetricSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
154 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_arn;
160
161 Aws::String m_id;
162
163 Aws::String m_name;
164
166
168
169 Aws::String m_lastModifiedRegion;
170
171 Aws::Utils::DateTime m_lastModifiedTime{};
172 bool m_arnHasBeenSet = false;
173 bool m_idHasBeenSet = false;
174 bool m_nameHasBeenSet = false;
175 bool m_statusHasBeenSet = false;
176 bool m_typeHasBeenSet = false;
177 bool m_lastModifiedRegionHasBeenSet = false;
178 bool m_lastModifiedTimeHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace Connect
183} // namespace Aws
MetricSummary & WithLastModifiedRegion(LastModifiedRegionT &&value)
MetricSummary & WithStatus(MetricStatus value)
MetricSummary & WithArn(ArnT &&value)
void SetStatus(MetricStatus value)
AWS_CONNECT_API MetricSummary(Aws::Utils::Json::JsonView jsonValue)
MetricSummary & WithType(MetricType value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_CONNECT_API MetricSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
MetricSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
MetricSummary & WithId(IdT &&value)
AWS_CONNECT_API MetricSummary()=default
void SetLastModifiedRegion(LastModifiedRegionT &&value)
const Aws::String & GetName() const
const Aws::String & GetLastModifiedRegion() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricSummary & WithName(NameT &&value)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue