AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
53 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
54 template<typename AccountIdT = Aws::String>
55 LifecycleExecutionResource& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
70 template<typename ResourceIdT = Aws::String>
71 LifecycleExecutionResource& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
73
75
78 inline const LifecycleExecutionResourceState& GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 template<typename StateT = LifecycleExecutionResourceState>
81 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
82 template<typename StateT = LifecycleExecutionResourceState>
83 LifecycleExecutionResource& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
85
87
90 inline const LifecycleExecutionResourceAction& GetAction() const { return m_action; }
91 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
92 template<typename ActionT = LifecycleExecutionResourceAction>
93 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
94 template<typename ActionT = LifecycleExecutionResourceAction>
95 LifecycleExecutionResource& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
97
99
103 inline const Aws::String& GetRegion() const { return m_region; }
104 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
105 template<typename RegionT = Aws::String>
106 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
107 template<typename RegionT = Aws::String>
108 LifecycleExecutionResource& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
110
112
116 inline const Aws::Vector<LifecycleExecutionSnapshotResource>& GetSnapshots() const { return m_snapshots; }
117 inline bool SnapshotsHasBeenSet() const { return m_snapshotsHasBeenSet; }
118 template<typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
119 void SetSnapshots(SnapshotsT&& value) { m_snapshotsHasBeenSet = true; m_snapshots = std::forward<SnapshotsT>(value); }
120 template<typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
121 LifecycleExecutionResource& WithSnapshots(SnapshotsT&& value) { SetSnapshots(std::forward<SnapshotsT>(value)); return *this;}
122 template<typename SnapshotsT = LifecycleExecutionSnapshotResource>
123 LifecycleExecutionResource& AddSnapshots(SnapshotsT&& value) { m_snapshotsHasBeenSet = true; m_snapshots.emplace_back(std::forward<SnapshotsT>(value)); return *this; }
125
127
131 inline const Aws::Vector<Aws::String>& GetImageUris() const { return m_imageUris; }
132 inline bool ImageUrisHasBeenSet() const { return m_imageUrisHasBeenSet; }
133 template<typename ImageUrisT = Aws::Vector<Aws::String>>
134 void SetImageUris(ImageUrisT&& value) { m_imageUrisHasBeenSet = true; m_imageUris = std::forward<ImageUrisT>(value); }
135 template<typename ImageUrisT = Aws::Vector<Aws::String>>
136 LifecycleExecutionResource& WithImageUris(ImageUrisT&& value) { SetImageUris(std::forward<ImageUrisT>(value)); return *this;}
137 template<typename ImageUrisT = Aws::String>
138 LifecycleExecutionResource& AddImageUris(ImageUrisT&& value) { m_imageUrisHasBeenSet = true; m_imageUris.emplace_back(std::forward<ImageUrisT>(value)); return *this; }
140
142
146 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
147 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
148 template<typename StartTimeT = Aws::Utils::DateTime>
149 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
150 template<typename StartTimeT = Aws::Utils::DateTime>
151 LifecycleExecutionResource& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
153
155
159 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
160 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
161 template<typename EndTimeT = Aws::Utils::DateTime>
162 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
163 template<typename EndTimeT = Aws::Utils::DateTime>
164 LifecycleExecutionResource& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
166 private:
167
168 Aws::String m_accountId;
169 bool m_accountIdHasBeenSet = false;
170
171 Aws::String m_resourceId;
172 bool m_resourceIdHasBeenSet = false;
173
175 bool m_stateHasBeenSet = false;
176
178 bool m_actionHasBeenSet = false;
179
180 Aws::String m_region;
181 bool m_regionHasBeenSet = false;
182
184 bool m_snapshotsHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_imageUris;
187 bool m_imageUrisHasBeenSet = false;
188
189 Aws::Utils::DateTime m_startTime{};
190 bool m_startTimeHasBeenSet = false;
191
192 Aws::Utils::DateTime m_endTime{};
193 bool m_endTimeHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace imagebuilder
198} // 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