AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
12#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder {
24namespace Model {
25
33 public:
34 AWS_IMAGEBUILDER_API LifecyclePolicySummary() = default;
35 AWS_IMAGEBUILDER_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 LifecyclePolicySummary& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline LifecyclePolicyStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(LifecyclePolicyStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
115 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
116 template <typename ExecutionRoleT = Aws::String>
117 void SetExecutionRole(ExecutionRoleT&& value) {
118 m_executionRoleHasBeenSet = true;
119 m_executionRole = std::forward<ExecutionRoleT>(value);
120 }
121 template <typename ExecutionRoleT = Aws::String>
122 LifecyclePolicySummary& WithExecutionRole(ExecutionRoleT&& value) {
123 SetExecutionRole(std::forward<ExecutionRoleT>(value));
124 return *this;
125 }
127
129
132 inline LifecyclePolicyResourceType GetResourceType() const { return m_resourceType; }
133 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
135 m_resourceTypeHasBeenSet = true;
136 m_resourceType = value;
137 }
139 SetResourceType(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
149 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
150 template <typename DateCreatedT = Aws::Utils::DateTime>
151 void SetDateCreated(DateCreatedT&& value) {
152 m_dateCreatedHasBeenSet = true;
153 m_dateCreated = std::forward<DateCreatedT>(value);
154 }
155 template <typename DateCreatedT = Aws::Utils::DateTime>
157 SetDateCreated(std::forward<DateCreatedT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
167 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
168 template <typename DateUpdatedT = Aws::Utils::DateTime>
169 void SetDateUpdated(DateUpdatedT&& value) {
170 m_dateUpdatedHasBeenSet = true;
171 m_dateUpdated = std::forward<DateUpdatedT>(value);
172 }
173 template <typename DateUpdatedT = Aws::Utils::DateTime>
175 SetDateUpdated(std::forward<DateUpdatedT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetDateLastRun() const { return m_dateLastRun; }
185 inline bool DateLastRunHasBeenSet() const { return m_dateLastRunHasBeenSet; }
186 template <typename DateLastRunT = Aws::Utils::DateTime>
187 void SetDateLastRun(DateLastRunT&& value) {
188 m_dateLastRunHasBeenSet = true;
189 m_dateLastRun = std::forward<DateLastRunT>(value);
190 }
191 template <typename DateLastRunT = Aws::Utils::DateTime>
193 SetDateLastRun(std::forward<DateLastRunT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 void SetTags(TagsT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags = std::forward<TagsT>(value);
210 }
211 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 SetTags(std::forward<TagsT>(value));
214 return *this;
215 }
216 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
217 LifecyclePolicySummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_arn;
225
226 Aws::String m_name;
227
228 Aws::String m_description;
229
231
232 Aws::String m_executionRole;
233
235
236 Aws::Utils::DateTime m_dateCreated{};
237
238 Aws::Utils::DateTime m_dateUpdated{};
239
240 Aws::Utils::DateTime m_dateLastRun{};
241
243 bool m_arnHasBeenSet = false;
244 bool m_nameHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_statusHasBeenSet = false;
247 bool m_executionRoleHasBeenSet = false;
248 bool m_resourceTypeHasBeenSet = false;
249 bool m_dateCreatedHasBeenSet = false;
250 bool m_dateUpdatedHasBeenSet = false;
251 bool m_dateLastRunHasBeenSet = false;
252 bool m_tagsHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace imagebuilder
257} // namespace Aws
const Aws::Utils::DateTime & GetDateLastRun() const
AWS_IMAGEBUILDER_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithArn(ArnT &&value)
LifecyclePolicySummary & WithDateCreated(DateCreatedT &&value)
LifecyclePolicySummary & WithExecutionRole(ExecutionRoleT &&value)
LifecyclePolicySummary & WithStatus(LifecyclePolicyStatus value)
LifecyclePolicySummary & WithTags(TagsT &&value)
LifecyclePolicySummary & WithResourceType(LifecyclePolicyResourceType value)
const Aws::Utils::DateTime & GetDateUpdated() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicySummary & WithDateLastRun(DateLastRunT &&value)
const Aws::Utils::DateTime & GetDateCreated() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
LifecyclePolicySummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
LifecyclePolicySummary & WithDateUpdated(DateUpdatedT &&value)
AWS_IMAGEBUILDER_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(LifecyclePolicyResourceType value)
LifecyclePolicySummary & WithName(NameT &&value)
LifecyclePolicySummary & WithDescription(DescriptionT &&value)
LifecyclePolicyResourceType GetResourceType() const
AWS_IMAGEBUILDER_API LifecyclePolicySummary()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue