AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecycleExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/LifecycleExecutionResourcesImpactedSummary.h>
11#include <aws/imagebuilder/model/LifecycleExecutionState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
32 public:
33 AWS_IMAGEBUILDER_API LifecycleExecution() = default;
34 AWS_IMAGEBUILDER_API LifecycleExecution(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetLifecycleExecutionId() const { return m_lifecycleExecutionId; }
43 inline bool LifecycleExecutionIdHasBeenSet() const { return m_lifecycleExecutionIdHasBeenSet; }
44 template <typename LifecycleExecutionIdT = Aws::String>
45 void SetLifecycleExecutionId(LifecycleExecutionIdT&& value) {
46 m_lifecycleExecutionIdHasBeenSet = true;
47 m_lifecycleExecutionId = std::forward<LifecycleExecutionIdT>(value);
48 }
49 template <typename LifecycleExecutionIdT = Aws::String>
50 LifecycleExecution& WithLifecycleExecutionId(LifecycleExecutionIdT&& value) {
51 SetLifecycleExecutionId(std::forward<LifecycleExecutionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetLifecyclePolicyArn() const { return m_lifecyclePolicyArn; }
61 inline bool LifecyclePolicyArnHasBeenSet() const { return m_lifecyclePolicyArnHasBeenSet; }
62 template <typename LifecyclePolicyArnT = Aws::String>
63 void SetLifecyclePolicyArn(LifecyclePolicyArnT&& value) {
64 m_lifecyclePolicyArnHasBeenSet = true;
65 m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value);
66 }
67 template <typename LifecyclePolicyArnT = Aws::String>
68 LifecycleExecution& WithLifecyclePolicyArn(LifecyclePolicyArnT&& value) {
69 SetLifecyclePolicyArn(std::forward<LifecyclePolicyArnT>(value));
70 return *this;
71 }
73
75
79 inline const LifecycleExecutionResourcesImpactedSummary& GetResourcesImpactedSummary() const { return m_resourcesImpactedSummary; }
80 inline bool ResourcesImpactedSummaryHasBeenSet() const { return m_resourcesImpactedSummaryHasBeenSet; }
81 template <typename ResourcesImpactedSummaryT = LifecycleExecutionResourcesImpactedSummary>
82 void SetResourcesImpactedSummary(ResourcesImpactedSummaryT&& value) {
83 m_resourcesImpactedSummaryHasBeenSet = true;
84 m_resourcesImpactedSummary = std::forward<ResourcesImpactedSummaryT>(value);
85 }
86 template <typename ResourcesImpactedSummaryT = LifecycleExecutionResourcesImpactedSummary>
87 LifecycleExecution& WithResourcesImpactedSummary(ResourcesImpactedSummaryT&& value) {
88 SetResourcesImpactedSummary(std::forward<ResourcesImpactedSummaryT>(value));
89 return *this;
90 }
92
94
98 inline const LifecycleExecutionState& GetState() const { return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 template <typename StateT = LifecycleExecutionState>
101 void SetState(StateT&& value) {
102 m_stateHasBeenSet = true;
103 m_state = std::forward<StateT>(value);
104 }
105 template <typename StateT = LifecycleExecutionState>
106 LifecycleExecution& WithState(StateT&& value) {
107 SetState(std::forward<StateT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
117 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
118 template <typename StartTimeT = Aws::Utils::DateTime>
119 void SetStartTime(StartTimeT&& value) {
120 m_startTimeHasBeenSet = true;
121 m_startTime = std::forward<StartTimeT>(value);
122 }
123 template <typename StartTimeT = Aws::Utils::DateTime>
124 LifecycleExecution& WithStartTime(StartTimeT&& value) {
125 SetStartTime(std::forward<StartTimeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 template <typename EndTimeT = Aws::Utils::DateTime>
137 void SetEndTime(EndTimeT&& value) {
138 m_endTimeHasBeenSet = true;
139 m_endTime = std::forward<EndTimeT>(value);
140 }
141 template <typename EndTimeT = Aws::Utils::DateTime>
142 LifecycleExecution& WithEndTime(EndTimeT&& value) {
143 SetEndTime(std::forward<EndTimeT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_lifecycleExecutionId;
149
150 Aws::String m_lifecyclePolicyArn;
151
152 LifecycleExecutionResourcesImpactedSummary m_resourcesImpactedSummary;
153
155
156 Aws::Utils::DateTime m_startTime{};
157
158 Aws::Utils::DateTime m_endTime{};
159 bool m_lifecycleExecutionIdHasBeenSet = false;
160 bool m_lifecyclePolicyArnHasBeenSet = false;
161 bool m_resourcesImpactedSummaryHasBeenSet = false;
162 bool m_stateHasBeenSet = false;
163 bool m_startTimeHasBeenSet = false;
164 bool m_endTimeHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace imagebuilder
169} // namespace Aws
LifecycleExecution & WithResourcesImpactedSummary(ResourcesImpactedSummaryT &&value)
AWS_IMAGEBUILDER_API LifecycleExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecyclePolicyArn(LifecyclePolicyArnT &&value)
const Aws::String & GetLifecycleExecutionId() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API LifecycleExecution(Aws::Utils::Json::JsonView jsonValue)
LifecycleExecution & WithLifecyclePolicyArn(LifecyclePolicyArnT &&value)
AWS_IMAGEBUILDER_API LifecycleExecution()=default
const Aws::Utils::DateTime & GetEndTime() const
void SetResourcesImpactedSummary(ResourcesImpactedSummaryT &&value)
LifecycleExecution & WithEndTime(EndTimeT &&value)
const Aws::String & GetLifecyclePolicyArn() const
LifecycleExecution & WithState(StateT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const LifecycleExecutionState & GetState() const
LifecycleExecution & WithStartTime(StartTimeT &&value)
void SetLifecycleExecutionId(LifecycleExecutionIdT &&value)
const LifecycleExecutionResourcesImpactedSummary & GetResourcesImpactedSummary() const
LifecycleExecution & WithLifecycleExecutionId(LifecycleExecutionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue