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>
24namespace imagebuilder {
46 template <
typename AccountIdT = Aws::String>
48 m_accountIdHasBeenSet =
true;
49 m_accountId = std::forward<AccountIdT>(value);
51 template <
typename AccountIdT = Aws::String>
68 template <
typename ResourceIdT = Aws::String>
70 m_resourceIdHasBeenSet =
true;
71 m_resourceId = std::forward<ResourceIdT>(value);
73 template <
typename ResourceIdT = Aws::String>
86 template <
typename StateT = LifecycleExecutionResourceState>
88 m_stateHasBeenSet =
true;
89 m_state = std::forward<StateT>(value);
91 template <
typename StateT = LifecycleExecutionResourceState>
93 SetState(std::forward<StateT>(value));
104 template <
typename ActionT = LifecycleExecutionResourceAction>
106 m_actionHasBeenSet =
true;
107 m_action = std::forward<ActionT>(value);
109 template <
typename ActionT = LifecycleExecutionResourceAction>
123 template <
typename RegionT = Aws::String>
125 m_regionHasBeenSet =
true;
126 m_region = std::forward<RegionT>(value);
128 template <
typename RegionT = Aws::String>
142 template <
typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
144 m_snapshotsHasBeenSet =
true;
145 m_snapshots = std::forward<SnapshotsT>(value);
147 template <
typename SnapshotsT = Aws::Vector<LifecycleExecutionSnapshotResource>>
152 template <
typename SnapshotsT = LifecycleExecutionSnapshotResource>
154 m_snapshotsHasBeenSet =
true;
155 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
167 template <
typename ImageUrisT = Aws::Vector<Aws::String>>
169 m_imageUrisHasBeenSet =
true;
170 m_imageUris = std::forward<ImageUrisT>(value);
172 template <
typename ImageUrisT = Aws::Vector<Aws::String>>
177 template <
typename ImageUrisT = Aws::String>
179 m_imageUrisHasBeenSet =
true;
180 m_imageUris.emplace_back(std::forward<ImageUrisT>(value));
192 template <
typename StartTimeT = Aws::Utils::DateTime>
194 m_startTimeHasBeenSet =
true;
195 m_startTime = std::forward<StartTimeT>(value);
197 template <
typename StartTimeT = Aws::Utils::DateTime>
211 template <
typename EndTimeT = Aws::Utils::DateTime>
213 m_endTimeHasBeenSet =
true;
214 m_endTime = std::forward<EndTimeT>(value);
216 template <
typename EndTimeT = Aws::Utils::DateTime>
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;
const Aws::String & GetResourceId() const
const Aws::Vector< Aws::String > & GetImageUris() const
const LifecycleExecutionResourceState & GetState() const
void SetResourceId(ResourceIdT &&value)
bool AccountIdHasBeenSet() const
bool StateHasBeenSet() const
LifecycleExecutionResource & WithState(StateT &&value)
void SetAction(ActionT &&value)
bool ResourceIdHasBeenSet() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionHasBeenSet() const
bool EndTimeHasBeenSet() const
AWS_IMAGEBUILDER_API LifecycleExecutionResource()=default
LifecycleExecutionResource & WithEndTime(EndTimeT &&value)
bool SnapshotsHasBeenSet() const
AWS_IMAGEBUILDER_API LifecycleExecutionResource(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const LifecycleExecutionResourceAction & GetAction() const
bool RegionHasBeenSet() const
void SetEndTime(EndTimeT &&value)
LifecycleExecutionResource & WithStartTime(StartTimeT &&value)
void SetImageUris(ImageUrisT &&value)
LifecycleExecutionResource & AddImageUris(ImageUrisT &&value)
LifecycleExecutionResource & WithAccountId(AccountIdT &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
LifecycleExecutionResource & WithAction(ActionT &&value)
void SetState(StateT &&value)
LifecycleExecutionResource & WithImageUris(ImageUrisT &&value)
LifecycleExecutionResource & AddSnapshots(SnapshotsT &&value)
const Aws::String & GetRegion() const
void SetSnapshots(SnapshotsT &&value)
const Aws::Vector< LifecycleExecutionSnapshotResource > & GetSnapshots() const
const Aws::String & GetAccountId() const
void SetRegion(RegionT &&value)
LifecycleExecutionResource & WithResourceId(ResourceIdT &&value)
bool StartTimeHasBeenSet() const
LifecycleExecutionResource & WithSnapshots(SnapshotsT &&value)
bool ImageUrisHasBeenSet() const
LifecycleExecutionResource & WithRegion(RegionT &&value)
void SetStartTime(StartTimeT &&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