AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LifecycleExecution.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/LifecycleExecutionResourcesImpactedSummary.h>
10#include <aws/imagebuilder/model/LifecycleExecutionState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IMAGEBUILDER_API LifecycleExecution() = default;
39 AWS_IMAGEBUILDER_API LifecycleExecution(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetLifecycleExecutionId() const { return m_lifecycleExecutionId; }
49 inline bool LifecycleExecutionIdHasBeenSet() const { return m_lifecycleExecutionIdHasBeenSet; }
50 template<typename LifecycleExecutionIdT = Aws::String>
51 void SetLifecycleExecutionId(LifecycleExecutionIdT&& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = std::forward<LifecycleExecutionIdT>(value); }
52 template<typename LifecycleExecutionIdT = Aws::String>
53 LifecycleExecution& WithLifecycleExecutionId(LifecycleExecutionIdT&& value) { SetLifecycleExecutionId(std::forward<LifecycleExecutionIdT>(value)); return *this;}
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) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value); }
64 template<typename LifecyclePolicyArnT = Aws::String>
65 LifecycleExecution& WithLifecyclePolicyArn(LifecyclePolicyArnT&& value) { SetLifecyclePolicyArn(std::forward<LifecyclePolicyArnT>(value)); return *this;}
67
69
73 inline const LifecycleExecutionResourcesImpactedSummary& GetResourcesImpactedSummary() const { return m_resourcesImpactedSummary; }
74 inline bool ResourcesImpactedSummaryHasBeenSet() const { return m_resourcesImpactedSummaryHasBeenSet; }
75 template<typename ResourcesImpactedSummaryT = LifecycleExecutionResourcesImpactedSummary>
76 void SetResourcesImpactedSummary(ResourcesImpactedSummaryT&& value) { m_resourcesImpactedSummaryHasBeenSet = true; m_resourcesImpactedSummary = std::forward<ResourcesImpactedSummaryT>(value); }
77 template<typename ResourcesImpactedSummaryT = LifecycleExecutionResourcesImpactedSummary>
78 LifecycleExecution& WithResourcesImpactedSummary(ResourcesImpactedSummaryT&& value) { SetResourcesImpactedSummary(std::forward<ResourcesImpactedSummaryT>(value)); return *this;}
80
82
86 inline const LifecycleExecutionState& GetState() const { return m_state; }
87 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
88 template<typename StateT = LifecycleExecutionState>
89 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
90 template<typename StateT = LifecycleExecutionState>
91 LifecycleExecution& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
99 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
100 template<typename StartTimeT = Aws::Utils::DateTime>
101 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
102 template<typename StartTimeT = Aws::Utils::DateTime>
103 LifecycleExecution& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
111 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
112 template<typename EndTimeT = Aws::Utils::DateTime>
113 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
114 template<typename EndTimeT = Aws::Utils::DateTime>
115 LifecycleExecution& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
117 private:
118
119 Aws::String m_lifecycleExecutionId;
120 bool m_lifecycleExecutionIdHasBeenSet = false;
121
122 Aws::String m_lifecyclePolicyArn;
123 bool m_lifecyclePolicyArnHasBeenSet = false;
124
125 LifecycleExecutionResourcesImpactedSummary m_resourcesImpactedSummary;
126 bool m_resourcesImpactedSummaryHasBeenSet = false;
127
129 bool m_stateHasBeenSet = false;
130
131 Aws::Utils::DateTime m_startTime{};
132 bool m_startTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_endTime{};
135 bool m_endTimeHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace imagebuilder
140} // 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