AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
ContextSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/ApplicationType.h>
11#include <aws/wellarchitected/model/ContextContent.h>
12#include <aws/wellarchitected/model/ContextType.h>
13#include <aws/wellarchitected/model/Criticality.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WellArchitected {
25namespace Model {
26
35 public:
36 AWS_WELLARCHITECTED_API ContextSummary() = default;
37 AWS_WELLARCHITECTED_API ContextSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API ContextSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 ContextSummary& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
64 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
65 template <typename ProfileArnT = Aws::String>
66 void SetProfileArn(ProfileArnT&& value) {
67 m_profileArnHasBeenSet = true;
68 m_profileArn = std::forward<ProfileArnT>(value);
69 }
70 template <typename ProfileArnT = Aws::String>
71 ContextSummary& WithProfileArn(ProfileArnT&& value) {
72 SetProfileArn(std::forward<ProfileArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
89 ContextSummary& WithTitle(TitleT&& value) {
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
99 inline ContextType GetContextType() const { return m_contextType; }
100 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
101 inline void SetContextType(ContextType value) {
102 m_contextTypeHasBeenSet = true;
103 m_contextType = value;
104 }
106 SetContextType(value);
107 return *this;
108 }
110
112
116 inline const ContextContent& GetContent() const { return m_content; }
117 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
118 template <typename ContentT = ContextContent>
119 void SetContent(ContentT&& value) {
120 m_contentHasBeenSet = true;
121 m_content = std::forward<ContentT>(value);
122 }
123 template <typename ContentT = ContextContent>
124 ContextSummary& WithContent(ContentT&& value) {
125 SetContent(std::forward<ContentT>(value));
126 return *this;
127 }
129
131
134 inline ApplicationType GetApplicationType() const { return m_applicationType; }
135 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
137 m_applicationTypeHasBeenSet = true;
138 m_applicationType = value;
139 }
141 SetApplicationType(value);
142 return *this;
143 }
145
147
150 inline Criticality GetCriticality() const { return m_criticality; }
151 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
152 inline void SetCriticality(Criticality value) {
153 m_criticalityHasBeenSet = true;
154 m_criticality = value;
155 }
157 SetCriticality(value);
158 return *this;
159 }
161
163
166 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
167 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
168 template <typename CreatedByT = Aws::String>
169 void SetCreatedBy(CreatedByT&& value) {
170 m_createdByHasBeenSet = true;
171 m_createdBy = std::forward<CreatedByT>(value);
172 }
173 template <typename CreatedByT = Aws::String>
174 ContextSummary& WithCreatedBy(CreatedByT&& value) {
175 SetCreatedBy(std::forward<CreatedByT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
185 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
186 template <typename CreatedAtT = Aws::Utils::DateTime>
187 void SetCreatedAt(CreatedAtT&& value) {
188 m_createdAtHasBeenSet = true;
189 m_createdAt = std::forward<CreatedAtT>(value);
190 }
191 template <typename CreatedAtT = Aws::Utils::DateTime>
192 ContextSummary& WithCreatedAt(CreatedAtT&& value) {
193 SetCreatedAt(std::forward<CreatedAtT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
203 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
204 template <typename LastModifiedByT = Aws::String>
205 void SetLastModifiedBy(LastModifiedByT&& value) {
206 m_lastModifiedByHasBeenSet = true;
207 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
208 }
209 template <typename LastModifiedByT = Aws::String>
210 ContextSummary& WithLastModifiedBy(LastModifiedByT&& value) {
211 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
221 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
222 template <typename LastModifiedAtT = Aws::Utils::DateTime>
223 void SetLastModifiedAt(LastModifiedAtT&& value) {
224 m_lastModifiedAtHasBeenSet = true;
225 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
226 }
227 template <typename LastModifiedAtT = Aws::Utils::DateTime>
228 ContextSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
229 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_id;
235
236 Aws::String m_profileArn;
237
238 Aws::String m_title;
239
240 ContextType m_contextType{ContextType::NOT_SET};
241
242 ContextContent m_content;
243
244 ApplicationType m_applicationType{ApplicationType::NOT_SET};
245
246 Criticality m_criticality{Criticality::NOT_SET};
247
248 Aws::String m_createdBy;
249
250 Aws::Utils::DateTime m_createdAt{};
251
252 Aws::String m_lastModifiedBy;
253
254 Aws::Utils::DateTime m_lastModifiedAt{};
255 bool m_idHasBeenSet = false;
256 bool m_profileArnHasBeenSet = false;
257 bool m_titleHasBeenSet = false;
258 bool m_contextTypeHasBeenSet = false;
259 bool m_contentHasBeenSet = false;
260 bool m_applicationTypeHasBeenSet = false;
261 bool m_criticalityHasBeenSet = false;
262 bool m_createdByHasBeenSet = false;
263 bool m_createdAtHasBeenSet = false;
264 bool m_lastModifiedByHasBeenSet = false;
265 bool m_lastModifiedAtHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace WellArchitected
270} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
ContextSummary & WithProfileArn(ProfileArnT &&value)
ContextSummary & WithContextType(ContextType value)
AWS_WELLARCHITECTED_API ContextSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContextContent & GetContent() const
void SetLastModifiedAt(LastModifiedAtT &&value)
ContextSummary & WithCriticality(Criticality value)
AWS_WELLARCHITECTED_API ContextSummary()=default
ContextSummary & WithId(IdT &&value)
ContextSummary & WithLastModifiedAt(LastModifiedAtT &&value)
ContextSummary & WithCreatedAt(CreatedAtT &&value)
AWS_WELLARCHITECTED_API ContextSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetProfileArn() const
ContextSummary & WithTitle(TitleT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ContextSummary & WithContent(ContentT &&value)
ContextSummary & WithApplicationType(ApplicationType value)
const Aws::String & GetLastModifiedBy() const
void SetLastModifiedBy(LastModifiedByT &&value)
ContextSummary & WithCreatedBy(CreatedByT &&value)
ContextSummary & WithLastModifiedBy(LastModifiedByT &&value)
void SetApplicationType(ApplicationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue