AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
MicrovmImageBuildSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
10#include <aws/lambda-microvms/model/Architecture.h>
11#include <aws/lambda-microvms/model/BuildState.h>
12#include <aws/lambda-microvms/model/Chipset.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LambdaMicrovms {
24namespace Model {
25
33 public:
34 AWS_LAMBDAMICROVMS_API MicrovmImageBuildSummary() = default;
35 AWS_LAMBDAMICROVMS_API MicrovmImageBuildSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetImageArn() const { return m_imageArn; }
44 inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
45 template <typename ImageArnT = Aws::String>
46 void SetImageArn(ImageArnT&& value) {
47 m_imageArnHasBeenSet = true;
48 m_imageArn = std::forward<ImageArnT>(value);
49 }
50 template <typename ImageArnT = Aws::String>
52 SetImageArn(std::forward<ImageArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
62 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
63 template <typename ImageVersionT = Aws::String>
64 void SetImageVersion(ImageVersionT&& value) {
65 m_imageVersionHasBeenSet = true;
66 m_imageVersion = std::forward<ImageVersionT>(value);
67 }
68 template <typename ImageVersionT = Aws::String>
70 SetImageVersion(std::forward<ImageVersionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetBuildId() const { return m_buildId; }
80 inline bool BuildIdHasBeenSet() const { return m_buildIdHasBeenSet; }
81 template <typename BuildIdT = Aws::String>
82 void SetBuildId(BuildIdT&& value) {
83 m_buildIdHasBeenSet = true;
84 m_buildId = std::forward<BuildIdT>(value);
85 }
86 template <typename BuildIdT = Aws::String>
88 SetBuildId(std::forward<BuildIdT>(value));
89 return *this;
90 }
92
94
97 inline BuildState GetBuildState() const { return m_buildState; }
98 inline bool BuildStateHasBeenSet() const { return m_buildStateHasBeenSet; }
99 inline void SetBuildState(BuildState value) {
100 m_buildStateHasBeenSet = true;
101 m_buildState = value;
102 }
104 SetBuildState(value);
105 return *this;
106 }
108
110
113 inline Architecture GetArchitecture() const { return m_architecture; }
114 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
115 inline void SetArchitecture(Architecture value) {
116 m_architectureHasBeenSet = true;
117 m_architecture = value;
118 }
120 SetArchitecture(value);
121 return *this;
122 }
124
126
129 inline Chipset GetChipset() const { return m_chipset; }
130 inline bool ChipsetHasBeenSet() const { return m_chipsetHasBeenSet; }
131 inline void SetChipset(Chipset value) {
132 m_chipsetHasBeenSet = true;
133 m_chipset = value;
134 }
136 SetChipset(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetChipsetGeneration() const { return m_chipsetGeneration; }
146 inline bool ChipsetGenerationHasBeenSet() const { return m_chipsetGenerationHasBeenSet; }
147 template <typename ChipsetGenerationT = Aws::String>
148 void SetChipsetGeneration(ChipsetGenerationT&& value) {
149 m_chipsetGenerationHasBeenSet = true;
150 m_chipsetGeneration = std::forward<ChipsetGenerationT>(value);
151 }
152 template <typename ChipsetGenerationT = Aws::String>
153 MicrovmImageBuildSummary& WithChipsetGeneration(ChipsetGenerationT&& value) {
154 SetChipsetGeneration(std::forward<ChipsetGenerationT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetStateReason() const { return m_stateReason; }
164 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
165 template <typename StateReasonT = Aws::String>
166 void SetStateReason(StateReasonT&& value) {
167 m_stateReasonHasBeenSet = true;
168 m_stateReason = std::forward<StateReasonT>(value);
169 }
170 template <typename StateReasonT = Aws::String>
172 SetStateReason(std::forward<StateReasonT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
182 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
184 void SetCreatedAt(CreatedAtT&& value) {
185 m_createdAtHasBeenSet = true;
186 m_createdAt = std::forward<CreatedAtT>(value);
187 }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
190 SetCreatedAt(std::forward<CreatedAtT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_imageArn;
196
197 Aws::String m_imageVersion;
198
199 Aws::String m_buildId;
200
201 BuildState m_buildState{BuildState::NOT_SET};
202
203 Architecture m_architecture{Architecture::NOT_SET};
204
205 Chipset m_chipset{Chipset::NOT_SET};
206
207 Aws::String m_chipsetGeneration;
208
209 Aws::String m_stateReason;
210
211 Aws::Utils::DateTime m_createdAt{};
212 bool m_imageArnHasBeenSet = false;
213 bool m_imageVersionHasBeenSet = false;
214 bool m_buildIdHasBeenSet = false;
215 bool m_buildStateHasBeenSet = false;
216 bool m_architectureHasBeenSet = false;
217 bool m_chipsetHasBeenSet = false;
218 bool m_chipsetGenerationHasBeenSet = false;
219 bool m_stateReasonHasBeenSet = false;
220 bool m_createdAtHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace LambdaMicrovms
225} // namespace Aws
AWS_LAMBDAMICROVMS_API MicrovmImageBuildSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MicrovmImageBuildSummary & WithCreatedAt(CreatedAtT &&value)
MicrovmImageBuildSummary & WithChipsetGeneration(ChipsetGenerationT &&value)
MicrovmImageBuildSummary & WithStateReason(StateReasonT &&value)
MicrovmImageBuildSummary & WithChipset(Chipset value)
MicrovmImageBuildSummary & WithArchitecture(Architecture value)
AWS_LAMBDAMICROVMS_API MicrovmImageBuildSummary()=default
MicrovmImageBuildSummary & WithImageArn(ImageArnT &&value)
MicrovmImageBuildSummary & WithBuildId(BuildIdT &&value)
AWS_LAMBDAMICROVMS_API Aws::Utils::Json::JsonValue Jsonize() const
MicrovmImageBuildSummary & WithImageVersion(ImageVersionT &&value)
MicrovmImageBuildSummary & WithBuildState(BuildState value)
AWS_LAMBDAMICROVMS_API MicrovmImageBuildSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue