AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleExecutionResource.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/LifecycleExecutionResourceState.h>
10#include <aws/imagebuilder/model/LifecycleExecutionResourceAction.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/imagebuilder/model/LifecycleExecutionSnapshotResource.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace imagebuilder
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_IMAGEBUILDER_API LifecycleExecutionResource();
43 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAccountId() const{ return m_accountId; }
51 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
52 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
53 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
54 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
55 inline LifecycleExecutionResource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
56 inline LifecycleExecutionResource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
57 inline LifecycleExecutionResource& WithAccountId(const char* value) { SetAccountId(value); return *this;}
59
61
68 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
69 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
70 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
71 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
72 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
73 inline LifecycleExecutionResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
74 inline LifecycleExecutionResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
75 inline LifecycleExecutionResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77
79
82 inline const LifecycleExecutionResourceState& GetState() const{ return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 inline void SetState(const LifecycleExecutionResourceState& value) { m_stateHasBeenSet = true; m_state = value; }
85 inline void SetState(LifecycleExecutionResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
87 inline LifecycleExecutionResource& WithState(LifecycleExecutionResourceState&& value) { SetState(std::move(value)); return *this;}
89
91
94 inline const LifecycleExecutionResourceAction& GetAction() const{ return m_action; }
95 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
96 inline void SetAction(const LifecycleExecutionResourceAction& value) { m_actionHasBeenSet = true; m_action = value; }
97 inline void SetAction(LifecycleExecutionResourceAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
99 inline LifecycleExecutionResource& WithAction(LifecycleExecutionResourceAction&& value) { SetAction(std::move(value)); return *this;}
101
103
107 inline const Aws::String& GetRegion() const{ return m_region; }
108 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
109 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
110 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
111 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
112 inline LifecycleExecutionResource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
113 inline LifecycleExecutionResource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
114 inline LifecycleExecutionResource& WithRegion(const char* value) { SetRegion(value); return *this;}
116
118
122 inline const Aws::Vector<LifecycleExecutionSnapshotResource>& GetSnapshots() const{ return m_snapshots; }
123 inline bool SnapshotsHasBeenSet() const { return m_snapshotsHasBeenSet; }
124 inline void SetSnapshots(const Aws::Vector<LifecycleExecutionSnapshotResource>& value) { m_snapshotsHasBeenSet = true; m_snapshots = value; }
125 inline void SetSnapshots(Aws::Vector<LifecycleExecutionSnapshotResource>&& value) { m_snapshotsHasBeenSet = true; m_snapshots = std::move(value); }
128 inline LifecycleExecutionResource& AddSnapshots(const LifecycleExecutionSnapshotResource& value) { m_snapshotsHasBeenSet = true; m_snapshots.push_back(value); return *this; }
129 inline LifecycleExecutionResource& AddSnapshots(LifecycleExecutionSnapshotResource&& value) { m_snapshotsHasBeenSet = true; m_snapshots.push_back(std::move(value)); return *this; }
131
133
137 inline const Aws::Vector<Aws::String>& GetImageUris() const{ return m_imageUris; }
138 inline bool ImageUrisHasBeenSet() const { return m_imageUrisHasBeenSet; }
139 inline void SetImageUris(const Aws::Vector<Aws::String>& value) { m_imageUrisHasBeenSet = true; m_imageUris = value; }
140 inline void SetImageUris(Aws::Vector<Aws::String>&& value) { m_imageUrisHasBeenSet = true; m_imageUris = std::move(value); }
142 inline LifecycleExecutionResource& WithImageUris(Aws::Vector<Aws::String>&& value) { SetImageUris(std::move(value)); return *this;}
143 inline LifecycleExecutionResource& AddImageUris(const Aws::String& value) { m_imageUrisHasBeenSet = true; m_imageUris.push_back(value); return *this; }
144 inline LifecycleExecutionResource& AddImageUris(Aws::String&& value) { m_imageUrisHasBeenSet = true; m_imageUris.push_back(std::move(value)); return *this; }
145 inline LifecycleExecutionResource& AddImageUris(const char* value) { m_imageUrisHasBeenSet = true; m_imageUris.push_back(value); return *this; }
147
149
153 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
154 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
155 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
156 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
157 inline LifecycleExecutionResource& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
158 inline LifecycleExecutionResource& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
160
162
166 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
167 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
168 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
169 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
170 inline LifecycleExecutionResource& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
171 inline LifecycleExecutionResource& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
173 private:
174
175 Aws::String m_accountId;
176 bool m_accountIdHasBeenSet = false;
177
178 Aws::String m_resourceId;
179 bool m_resourceIdHasBeenSet = false;
180
182 bool m_stateHasBeenSet = false;
183
185 bool m_actionHasBeenSet = false;
186
187 Aws::String m_region;
188 bool m_regionHasBeenSet = false;
189
191 bool m_snapshotsHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_imageUris;
194 bool m_imageUrisHasBeenSet = false;
195
196 Aws::Utils::DateTime m_startTime;
197 bool m_startTimeHasBeenSet = false;
198
199 Aws::Utils::DateTime m_endTime;
200 bool m_endTimeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace imagebuilder
205} // namespace Aws
const Aws::Vector< Aws::String > & GetImageUris() const
LifecycleExecutionResource & WithRegion(const char *value)
const LifecycleExecutionResourceState & GetState() const
LifecycleExecutionResource & WithAction(const LifecycleExecutionResourceAction &value)
LifecycleExecutionResource & WithAccountId(Aws::String &&value)
void SetAction(LifecycleExecutionResourceAction &&value)
LifecycleExecutionResource & WithImageUris(Aws::Vector< Aws::String > &&value)
LifecycleExecutionResource & WithAccountId(const Aws::String &value)
LifecycleExecutionResource & WithEndTime(Aws::Utils::DateTime &&value)
LifecycleExecutionResource & WithRegion(Aws::String &&value)
LifecycleExecutionResource & WithImageUris(const Aws::Vector< Aws::String > &value)
LifecycleExecutionResource & WithRegion(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const LifecycleExecutionResourceState &value)
LifecycleExecutionResource & AddImageUris(const Aws::String &value)
void SetState(LifecycleExecutionResourceState &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionResource(Aws::Utils::Json::JsonView jsonValue)
void SetSnapshots(const Aws::Vector< LifecycleExecutionSnapshotResource > &value)
LifecycleExecutionResource & WithResourceId(Aws::String &&value)
LifecycleExecutionResource & WithAction(LifecycleExecutionResourceAction &&value)
const LifecycleExecutionResourceAction & GetAction() const
LifecycleExecutionResource & WithState(const LifecycleExecutionResourceState &value)
LifecycleExecutionResource & AddImageUris(const char *value)
void SetSnapshots(Aws::Vector< LifecycleExecutionSnapshotResource > &&value)
void SetImageUris(const Aws::Vector< Aws::String > &value)
AWS_IMAGEBUILDER_API LifecycleExecutionResource & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecycleExecutionResource & WithStartTime(const Aws::Utils::DateTime &value)
LifecycleExecutionResource & WithSnapshots(const Aws::Vector< LifecycleExecutionSnapshotResource > &value)
LifecycleExecutionResource & AddSnapshots(LifecycleExecutionSnapshotResource &&value)
LifecycleExecutionResource & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Vector< LifecycleExecutionSnapshotResource > & GetSnapshots() const
LifecycleExecutionResource & WithResourceId(const Aws::String &value)
LifecycleExecutionResource & WithState(LifecycleExecutionResourceState &&value)
LifecycleExecutionResource & WithEndTime(const Aws::Utils::DateTime &value)
LifecycleExecutionResource & WithSnapshots(Aws::Vector< LifecycleExecutionSnapshotResource > &&value)
LifecycleExecutionResource & AddSnapshots(const LifecycleExecutionSnapshotResource &value)
LifecycleExecutionResource & AddImageUris(Aws::String &&value)
LifecycleExecutionResource & WithResourceId(const char *value)
LifecycleExecutionResource & WithAccountId(const char *value)
void SetAction(const LifecycleExecutionResourceAction &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