AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 LifecyclePolicySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 LifecyclePolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 LifecyclePolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
85 inline LifecyclePolicyStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(LifecyclePolicyStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline LifecyclePolicySummary& WithStatus(LifecyclePolicyStatus value) { SetStatus(value); return *this;}
90
92
96 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
97 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
98 template<typename ExecutionRoleT = Aws::String>
99 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
100 template<typename ExecutionRoleT = Aws::String>
101 LifecyclePolicySummary& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
103
105
108 inline LifecyclePolicyResourceType GetResourceType() const { return m_resourceType; }
109 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
110 inline void SetResourceType(LifecyclePolicyResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
113
115
118 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
119 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
120 template<typename DateCreatedT = Aws::Utils::DateTime>
121 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
122 template<typename DateCreatedT = Aws::Utils::DateTime>
123 LifecyclePolicySummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetDateUpdated() const { return m_dateUpdated; }
131 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
132 template<typename DateUpdatedT = Aws::Utils::DateTime>
133 void SetDateUpdated(DateUpdatedT&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::forward<DateUpdatedT>(value); }
134 template<typename DateUpdatedT = Aws::Utils::DateTime>
135 LifecyclePolicySummary& WithDateUpdated(DateUpdatedT&& value) { SetDateUpdated(std::forward<DateUpdatedT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetDateLastRun() const { return m_dateLastRun; }
143 inline bool DateLastRunHasBeenSet() const { return m_dateLastRunHasBeenSet; }
144 template<typename DateLastRunT = Aws::Utils::DateTime>
145 void SetDateLastRun(DateLastRunT&& value) { m_dateLastRunHasBeenSet = true; m_dateLastRun = std::forward<DateLastRunT>(value); }
146 template<typename DateLastRunT = Aws::Utils::DateTime>
147 LifecyclePolicySummary& WithDateLastRun(DateLastRunT&& value) { SetDateLastRun(std::forward<DateLastRunT>(value)); return *this;}
149
151
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
160 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 LifecyclePolicySummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
162 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 LifecyclePolicySummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
165 }
167 private:
168
169 Aws::String m_arn;
170 bool m_arnHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
179 bool m_statusHasBeenSet = false;
180
181 Aws::String m_executionRole;
182 bool m_executionRoleHasBeenSet = false;
183
185 bool m_resourceTypeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_dateCreated{};
188 bool m_dateCreatedHasBeenSet = false;
189
190 Aws::Utils::DateTime m_dateUpdated{};
191 bool m_dateUpdatedHasBeenSet = false;
192
193 Aws::Utils::DateTime m_dateLastRun{};
194 bool m_dateLastRunHasBeenSet = false;
195
197 bool m_tagsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace imagebuilder
202} // 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