AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
AgentRecommendationRemediation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/RemediationStep.h>
12#include <aws/wellarchitected/model/RemediationType.h>
13#include <aws/wellarchitected/model/ResourceLink.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
33 public:
34 AWS_WELLARCHITECTED_API AgentRecommendationRemediation() = default;
37 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRecommendationArn() const { return m_recommendationArn; }
44 inline bool RecommendationArnHasBeenSet() const { return m_recommendationArnHasBeenSet; }
45 template <typename RecommendationArnT = Aws::String>
46 void SetRecommendationArn(RecommendationArnT&& value) {
47 m_recommendationArnHasBeenSet = true;
48 m_recommendationArn = std::forward<RecommendationArnT>(value);
49 }
50 template <typename RecommendationArnT = Aws::String>
52 SetRecommendationArn(std::forward<RecommendationArnT>(value));
53 return *this;
54 }
56
58
61 inline RemediationType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(RemediationType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline const Aws::Vector<RemediationStep>& GetSteps() const { return m_steps; }
78 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
79 template <typename StepsT = Aws::Vector<RemediationStep>>
80 void SetSteps(StepsT&& value) {
81 m_stepsHasBeenSet = true;
82 m_steps = std::forward<StepsT>(value);
83 }
84 template <typename StepsT = Aws::Vector<RemediationStep>>
86 SetSteps(std::forward<StepsT>(value));
87 return *this;
88 }
89 template <typename StepsT = RemediationStep>
91 m_stepsHasBeenSet = true;
92 m_steps.emplace_back(std::forward<StepsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<ResourceLink>& GetResourceLinks() const { return m_resourceLinks; }
102 inline bool ResourceLinksHasBeenSet() const { return m_resourceLinksHasBeenSet; }
103 template <typename ResourceLinksT = Aws::Vector<ResourceLink>>
104 void SetResourceLinks(ResourceLinksT&& value) {
105 m_resourceLinksHasBeenSet = true;
106 m_resourceLinks = std::forward<ResourceLinksT>(value);
107 }
108 template <typename ResourceLinksT = Aws::Vector<ResourceLink>>
110 SetResourceLinks(std::forward<ResourceLinksT>(value));
111 return *this;
112 }
113 template <typename ResourceLinksT = ResourceLink>
115 m_resourceLinksHasBeenSet = true;
116 m_resourceLinks.emplace_back(std::forward<ResourceLinksT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
126 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
127 template <typename CreatedByT = Aws::String>
128 void SetCreatedBy(CreatedByT&& value) {
129 m_createdByHasBeenSet = true;
130 m_createdBy = std::forward<CreatedByT>(value);
131 }
132 template <typename CreatedByT = Aws::String>
134 SetCreatedBy(std::forward<CreatedByT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
144 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 void SetCreatedAt(CreatedAtT&& value) {
147 m_createdAtHasBeenSet = true;
148 m_createdAt = std::forward<CreatedAtT>(value);
149 }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
152 SetCreatedAt(std::forward<CreatedAtT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
162 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
163 template <typename LastModifiedByT = Aws::String>
164 void SetLastModifiedBy(LastModifiedByT&& value) {
165 m_lastModifiedByHasBeenSet = true;
166 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
167 }
168 template <typename LastModifiedByT = Aws::String>
170 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
180 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
181 template <typename LastModifiedAtT = Aws::Utils::DateTime>
182 void SetLastModifiedAt(LastModifiedAtT&& value) {
183 m_lastModifiedAtHasBeenSet = true;
184 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
185 }
186 template <typename LastModifiedAtT = Aws::Utils::DateTime>
188 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_recommendationArn;
194
196
198
199 Aws::Vector<ResourceLink> m_resourceLinks;
200
201 Aws::String m_createdBy;
202
203 Aws::Utils::DateTime m_createdAt{};
204
205 Aws::String m_lastModifiedBy;
206
207 Aws::Utils::DateTime m_lastModifiedAt{};
208 bool m_recommendationArnHasBeenSet = false;
209 bool m_typeHasBeenSet = false;
210 bool m_stepsHasBeenSet = false;
211 bool m_resourceLinksHasBeenSet = false;
212 bool m_createdByHasBeenSet = false;
213 bool m_createdAtHasBeenSet = false;
214 bool m_lastModifiedByHasBeenSet = false;
215 bool m_lastModifiedAtHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace WellArchitected
220} // namespace Aws
AgentRecommendationRemediation & WithCreatedAt(CreatedAtT &&value)
AWS_WELLARCHITECTED_API AgentRecommendationRemediation(Aws::Utils::Json::JsonView jsonValue)
AgentRecommendationRemediation & WithLastModifiedBy(LastModifiedByT &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
AgentRecommendationRemediation & WithType(RemediationType value)
AWS_WELLARCHITECTED_API AgentRecommendationRemediation()=default
AgentRecommendationRemediation & WithCreatedBy(CreatedByT &&value)
AgentRecommendationRemediation & AddResourceLinks(ResourceLinksT &&value)
AWS_WELLARCHITECTED_API AgentRecommendationRemediation & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentRecommendationRemediation & WithRecommendationArn(RecommendationArnT &&value)
AgentRecommendationRemediation & WithLastModifiedAt(LastModifiedAtT &&value)
AgentRecommendationRemediation & WithResourceLinks(ResourceLinksT &&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