AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicySummary.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/LifecyclePolicyStatus.h>
10#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.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 imagebuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_IMAGEBUILDER_API LifecyclePolicySummary();
40 AWS_IMAGEBUILDER_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline LifecyclePolicySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline LifecyclePolicySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline LifecyclePolicySummary& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline LifecyclePolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline LifecyclePolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline LifecyclePolicySummary& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline LifecyclePolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline LifecyclePolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline LifecyclePolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const LifecyclePolicyStatus& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const LifecyclePolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(LifecyclePolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline LifecyclePolicySummary& WithStatus(const LifecyclePolicyStatus& value) { SetStatus(value); return *this;}
96 inline LifecyclePolicySummary& WithStatus(LifecyclePolicyStatus&& value) { SetStatus(std::move(value)); return *this;}
98
100
104 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
105 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
106 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
107 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
108 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
109 inline LifecyclePolicySummary& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
110 inline LifecyclePolicySummary& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
111 inline LifecyclePolicySummary& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
113
115
118 inline const LifecyclePolicyResourceType& GetResourceType() const{ return m_resourceType; }
119 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
120 inline void SetResourceType(const LifecyclePolicyResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
121 inline void SetResourceType(LifecyclePolicyResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
123 inline LifecyclePolicySummary& WithResourceType(LifecyclePolicyResourceType&& value) { SetResourceType(std::move(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
131 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
132 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
133 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
134 inline LifecyclePolicySummary& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
135 inline LifecyclePolicySummary& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetDateUpdated() const{ return m_dateUpdated; }
143 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
144 inline void SetDateUpdated(const Aws::Utils::DateTime& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; }
145 inline void SetDateUpdated(Aws::Utils::DateTime&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::move(value); }
146 inline LifecyclePolicySummary& WithDateUpdated(const Aws::Utils::DateTime& value) { SetDateUpdated(value); return *this;}
147 inline LifecyclePolicySummary& WithDateUpdated(Aws::Utils::DateTime&& value) { SetDateUpdated(std::move(value)); return *this;}
149
151
154 inline const Aws::Utils::DateTime& GetDateLastRun() const{ return m_dateLastRun; }
155 inline bool DateLastRunHasBeenSet() const { return m_dateLastRunHasBeenSet; }
156 inline void SetDateLastRun(const Aws::Utils::DateTime& value) { m_dateLastRunHasBeenSet = true; m_dateLastRun = value; }
157 inline void SetDateLastRun(Aws::Utils::DateTime&& value) { m_dateLastRunHasBeenSet = true; m_dateLastRun = std::move(value); }
158 inline LifecyclePolicySummary& WithDateLastRun(const Aws::Utils::DateTime& value) { SetDateLastRun(value); return *this;}
159 inline LifecyclePolicySummary& WithDateLastRun(Aws::Utils::DateTime&& value) { SetDateLastRun(std::move(value)); return *this;}
161
163
168 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
172 inline LifecyclePolicySummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
173 inline LifecyclePolicySummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
174 inline LifecyclePolicySummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
175 inline LifecyclePolicySummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
176 inline LifecyclePolicySummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
177 inline LifecyclePolicySummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
178 inline LifecyclePolicySummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
179 inline LifecyclePolicySummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
180 inline LifecyclePolicySummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
182 private:
183
184 Aws::String m_arn;
185 bool m_arnHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 LifecyclePolicyStatus m_status;
194 bool m_statusHasBeenSet = false;
195
196 Aws::String m_executionRole;
197 bool m_executionRoleHasBeenSet = false;
198
199 LifecyclePolicyResourceType m_resourceType;
200 bool m_resourceTypeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_dateCreated;
203 bool m_dateCreatedHasBeenSet = false;
204
205 Aws::Utils::DateTime m_dateUpdated;
206 bool m_dateUpdatedHasBeenSet = false;
207
208 Aws::Utils::DateTime m_dateLastRun;
209 bool m_dateLastRunHasBeenSet = false;
210
212 bool m_tagsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace imagebuilder
217} // namespace Aws
LifecyclePolicySummary & AddTags(const char *key, Aws::String &&value)
const Aws::Utils::DateTime & GetDateLastRun() const
void SetDateCreated(const Aws::Utils::DateTime &value)
LifecyclePolicySummary & WithDateLastRun(const Aws::Utils::DateTime &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicySummary & WithDescription(const char *value)
AWS_IMAGEBUILDER_API LifecyclePolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicySummary & WithArn(Aws::String &&value)
LifecyclePolicySummary & WithDateCreated(const Aws::Utils::DateTime &value)
void SetDateLastRun(const Aws::Utils::DateTime &value)
LifecyclePolicySummary & AddTags(const Aws::String &key, Aws::String &&value)
void SetResourceType(const LifecyclePolicyResourceType &value)
LifecyclePolicySummary & WithExecutionRole(const Aws::String &value)
void SetResourceType(LifecyclePolicyResourceType &&value)
const LifecyclePolicyResourceType & GetResourceType() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicySummary & WithDescription(const Aws::String &value)
void SetStatus(const LifecyclePolicyStatus &value)
LifecyclePolicySummary & WithName(Aws::String &&value)
LifecyclePolicySummary & AddTags(const char *key, const char *value)
LifecyclePolicySummary & WithName(const Aws::String &value)
LifecyclePolicySummary & AddTags(Aws::String &&key, Aws::String &&value)
LifecyclePolicySummary & WithDateUpdated(const Aws::Utils::DateTime &value)
LifecyclePolicySummary & WithArn(const char *value)
const Aws::Utils::DateTime & GetDateUpdated() const
LifecyclePolicySummary & WithDateCreated(Aws::Utils::DateTime &&value)
LifecyclePolicySummary & WithStatus(LifecyclePolicyStatus &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicySummary & WithArn(const Aws::String &value)
LifecyclePolicySummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicySummary & WithDescription(Aws::String &&value)
LifecyclePolicySummary & WithResourceType(LifecyclePolicyResourceType &&value)
LifecyclePolicySummary & WithName(const char *value)
const Aws::Utils::DateTime & GetDateCreated() const
const LifecyclePolicyStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IMAGEBUILDER_API LifecyclePolicySummary(Aws::Utils::Json::JsonView jsonValue)
void SetDateUpdated(const Aws::Utils::DateTime &value)
LifecyclePolicySummary & WithDateUpdated(Aws::Utils::DateTime &&value)
LifecyclePolicySummary & WithDateLastRun(Aws::Utils::DateTime &&value)
LifecyclePolicySummary & WithResourceType(const LifecyclePolicyResourceType &value)
LifecyclePolicySummary & WithExecutionRole(const char *value)
LifecyclePolicySummary & WithExecutionRole(Aws::String &&value)
LifecyclePolicySummary & AddTags(Aws::String &&key, const Aws::String &value)
LifecyclePolicySummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
LifecyclePolicySummary & AddTags(Aws::String &&key, const char *value)
LifecyclePolicySummary & AddTags(const Aws::String &key, const Aws::String &value)
LifecyclePolicySummary & WithStatus(const LifecyclePolicyStatus &value)
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