AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLifecycleExecutionId(const Aws::String& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = value; }
51 inline void SetLifecycleExecutionId(Aws::String&& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = std::move(value); }
52 inline void SetLifecycleExecutionId(const char* value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId.assign(value); }
54 inline LifecycleExecution& WithLifecycleExecutionId(Aws::String&& value) { SetLifecycleExecutionId(std::move(value)); return *this;}
55 inline LifecycleExecution& WithLifecycleExecutionId(const char* value) { SetLifecycleExecutionId(value); return *this;}
57
59
62 inline const Aws::String& GetLifecyclePolicyArn() const{ return m_lifecyclePolicyArn; }
63 inline bool LifecyclePolicyArnHasBeenSet() const { return m_lifecyclePolicyArnHasBeenSet; }
64 inline void SetLifecyclePolicyArn(const Aws::String& value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = value; }
65 inline void SetLifecyclePolicyArn(Aws::String&& value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = std::move(value); }
66 inline void SetLifecyclePolicyArn(const char* value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn.assign(value); }
67 inline LifecycleExecution& WithLifecyclePolicyArn(const Aws::String& value) { SetLifecyclePolicyArn(value); return *this;}
68 inline LifecycleExecution& WithLifecyclePolicyArn(Aws::String&& value) { SetLifecyclePolicyArn(std::move(value)); return *this;}
69 inline LifecycleExecution& WithLifecyclePolicyArn(const char* value) { SetLifecyclePolicyArn(value); return *this;}
71
73
77 inline const LifecycleExecutionResourcesImpactedSummary& GetResourcesImpactedSummary() const{ return m_resourcesImpactedSummary; }
78 inline bool ResourcesImpactedSummaryHasBeenSet() const { return m_resourcesImpactedSummaryHasBeenSet; }
79 inline void SetResourcesImpactedSummary(const LifecycleExecutionResourcesImpactedSummary& value) { m_resourcesImpactedSummaryHasBeenSet = true; m_resourcesImpactedSummary = value; }
80 inline void SetResourcesImpactedSummary(LifecycleExecutionResourcesImpactedSummary&& value) { m_resourcesImpactedSummaryHasBeenSet = true; m_resourcesImpactedSummary = std::move(value); }
84
86
90 inline const LifecycleExecutionState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const LifecycleExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(LifecycleExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline LifecycleExecution& WithState(const LifecycleExecutionState& value) { SetState(value); return *this;}
95 inline LifecycleExecution& WithState(LifecycleExecutionState&& value) { SetState(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
105 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
106 inline LifecycleExecution& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
107 inline LifecycleExecution& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
115 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
116 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
117 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
118 inline LifecycleExecution& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
119 inline LifecycleExecution& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_lifecycleExecutionId;
124 bool m_lifecycleExecutionIdHasBeenSet = false;
125
126 Aws::String m_lifecyclePolicyArn;
127 bool m_lifecyclePolicyArnHasBeenSet = false;
128
129 LifecycleExecutionResourcesImpactedSummary m_resourcesImpactedSummary;
130 bool m_resourcesImpactedSummaryHasBeenSet = false;
131
133 bool m_stateHasBeenSet = false;
134
135 Aws::Utils::DateTime m_startTime;
136 bool m_startTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_endTime;
139 bool m_endTimeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace imagebuilder
144} // namespace Aws
AWS_IMAGEBUILDER_API LifecycleExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLifecycleExecutionId() const
LifecycleExecution & WithEndTime(const Aws::Utils::DateTime &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecycleExecution & WithStartTime(Aws::Utils::DateTime &&value)
void SetLifecyclePolicyArn(const Aws::String &value)
AWS_IMAGEBUILDER_API LifecycleExecution(Aws::Utils::Json::JsonView jsonValue)
LifecycleExecution & WithLifecycleExecutionId(const char *value)
LifecycleExecution & WithState(LifecycleExecutionState &&value)
LifecycleExecution & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
LifecycleExecution & WithResourcesImpactedSummary(const LifecycleExecutionResourcesImpactedSummary &value)
LifecycleExecution & WithLifecyclePolicyArn(Aws::String &&value)
LifecycleExecution & WithLifecyclePolicyArn(const Aws::String &value)
void SetState(const LifecycleExecutionState &value)
LifecycleExecution & WithLifecyclePolicyArn(const char *value)
const Aws::String & GetLifecyclePolicyArn() const
LifecycleExecution & WithState(const LifecycleExecutionState &value)
void SetState(LifecycleExecutionState &&value)
const Aws::Utils::DateTime & GetStartTime() const
LifecycleExecution & WithLifecycleExecutionId(const Aws::String &value)
const LifecycleExecutionState & GetState() const
void SetEndTime(const Aws::Utils::DateTime &value)
LifecycleExecution & WithResourcesImpactedSummary(LifecycleExecutionResourcesImpactedSummary &&value)
LifecycleExecution & WithEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
const LifecycleExecutionResourcesImpactedSummary & GetResourcesImpactedSummary() const
void SetResourcesImpactedSummary(LifecycleExecutionResourcesImpactedSummary &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetResourcesImpactedSummary(const LifecycleExecutionResourcesImpactedSummary &value)
void SetLifecycleExecutionId(const Aws::String &value)
LifecycleExecution & WithLifecycleExecutionId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue