AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecycleExecutionResource.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/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/LifecycleExecutionResourceAction.h>
12#include <aws/imagebuilder/model/LifecycleExecutionResourceState.h>
13#include <aws/imagebuilder/model/LifecycleExecutionSnapshotResource.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder {
25namespace Model {
26
34 public:
35 AWS_IMAGEBUILDER_API LifecycleExecutionResource() = default;
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetResourceId() const { return m_resourceId; }
67 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
68 template <typename ResourceIdT = Aws::String>
69 void SetResourceId(ResourceIdT&& value) {
70 m_resourceIdHasBeenSet = true;
71 m_resourceId = std::forward<ResourceIdT>(value);
72 }
73 template <typename ResourceIdT = Aws::String>
75 SetResourceId(std::forward<ResourceIdT>(value));
76 return *this;
77 }
79
81
84 inline const LifecycleExecutionResourceState& GetState() const { return m_state; }
85 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
86 template <typename StateT = LifecycleExecutionResourceState>
87 void SetState(StateT&& value) {
88 m_stateHasBeenSet = true;
89 m_state = std::forward<StateT>(value);
90 }
91 template <typename StateT = LifecycleExecutionResourceState>
93 SetState(std::forward<StateT>(value));
94 return *this;
95 }
97
99
102 inline const LifecycleExecutionResourceAction& GetAction() const { return m_action; }
103 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
104 template <typename ActionT = LifecycleExecutionResourceAction>
105 void SetAction(ActionT&& value) {
106 m_actionHasBeenSet = true;
107 m_action = std::forward<ActionT>(value);
108 }
109 template <typename ActionT = LifecycleExecutionResourceAction>
111 SetAction(std::forward<ActionT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetRegion() const { return m_region; }
122 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
123 template <typename RegionT = Aws::String>
124 void SetRegion(RegionT&& value) {
125 m_regionHasBeenSet = true;
126 m_region = std::forward<RegionT>(value);
127 }
128 template <typename RegionT = Aws::String>
130 SetRegion(std::forward<RegionT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<LifecycleExecutionSnapshotResource>& GetSnapshots() const { return m_snapshots; }
141 inline bool SnapshotsHasBeenSet() const { return m_snapshotsHasBeenSet; }
142 template <typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
143 void SetSnapshots(SnapshotsT&& value) {
144 m_snapshotsHasBeenSet = true;
145 m_snapshots = std::forward<SnapshotsT>(value);
146 }
147 template <typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
149 SetSnapshots(std::forward<SnapshotsT>(value));
150 return *this;
151 }
152 template <typename SnapshotsT = LifecycleExecutionSnapshotResource>
154 m_snapshotsHasBeenSet = true;
155 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Vector<Aws::String>& GetImageUris() const { return m_imageUris; }
166 inline bool ImageUrisHasBeenSet() const { return m_imageUrisHasBeenSet; }
167 template <typename ImageUrisT = Aws::Vector<Aws::String>>
168 void SetImageUris(ImageUrisT&& value) {
169 m_imageUrisHasBeenSet = true;
170 m_imageUris = std::forward<ImageUrisT>(value);
171 }
172 template <typename ImageUrisT = Aws::Vector<Aws::String>>
174 SetImageUris(std::forward<ImageUrisT>(value));
175 return *this;
176 }
177 template <typename ImageUrisT = Aws::String>
179 m_imageUrisHasBeenSet = true;
180 m_imageUris.emplace_back(std::forward<ImageUrisT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
191 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
192 template <typename StartTimeT = Aws::Utils::DateTime>
193 void SetStartTime(StartTimeT&& value) {
194 m_startTimeHasBeenSet = true;
195 m_startTime = std::forward<StartTimeT>(value);
196 }
197 template <typename StartTimeT = Aws::Utils::DateTime>
199 SetStartTime(std::forward<StartTimeT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
210 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
211 template <typename EndTimeT = Aws::Utils::DateTime>
212 void SetEndTime(EndTimeT&& value) {
213 m_endTimeHasBeenSet = true;
214 m_endTime = std::forward<EndTimeT>(value);
215 }
216 template <typename EndTimeT = Aws::Utils::DateTime>
218 SetEndTime(std::forward<EndTimeT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_accountId;
224
225 Aws::String m_resourceId;
226
228
230
231 Aws::String m_region;
232
234
235 Aws::Vector<Aws::String> m_imageUris;
236
237 Aws::Utils::DateTime m_startTime{};
238
239 Aws::Utils::DateTime m_endTime{};
240 bool m_accountIdHasBeenSet = false;
241 bool m_resourceIdHasBeenSet = false;
242 bool m_stateHasBeenSet = false;
243 bool m_actionHasBeenSet = false;
244 bool m_regionHasBeenSet = false;
245 bool m_snapshotsHasBeenSet = false;
246 bool m_imageUrisHasBeenSet = false;
247 bool m_startTimeHasBeenSet = false;
248 bool m_endTimeHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace imagebuilder
253} // namespace Aws
const Aws::Vector< Aws::String > & GetImageUris() const
const LifecycleExecutionResourceState & GetState() const
LifecycleExecutionResource & WithState(StateT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API LifecycleExecutionResource()=default
LifecycleExecutionResource & WithEndTime(EndTimeT &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionResource(Aws::Utils::Json::JsonView jsonValue)
const LifecycleExecutionResourceAction & GetAction() const
LifecycleExecutionResource & WithStartTime(StartTimeT &&value)
LifecycleExecutionResource & AddImageUris(ImageUrisT &&value)
LifecycleExecutionResource & WithAccountId(AccountIdT &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionResource & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecycleExecutionResource & WithAction(ActionT &&value)
LifecycleExecutionResource & WithImageUris(ImageUrisT &&value)
LifecycleExecutionResource & AddSnapshots(SnapshotsT &&value)
const Aws::Vector< LifecycleExecutionSnapshotResource > & GetSnapshots() const
LifecycleExecutionResource & WithResourceId(ResourceIdT &&value)
LifecycleExecutionResource & WithSnapshots(SnapshotsT &&value)
LifecycleExecutionResource & WithRegion(RegionT &&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