AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceBundle.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/BundleType.h>
12#include <aws/workspaces/model/ComputeType.h>
13#include <aws/workspaces/model/RootStorage.h>
14#include <aws/workspaces/model/UserStorage.h>
15#include <aws/workspaces/model/WorkspaceBundleState.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace WorkSpaces {
26namespace Model {
27
34 public:
35 AWS_WORKSPACES_API WorkspaceBundle() = default;
36 AWS_WORKSPACES_API WorkspaceBundle(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_WORKSPACES_API WorkspaceBundle& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetBundleId() const { return m_bundleId; }
45 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
46 template <typename BundleIdT = Aws::String>
47 void SetBundleId(BundleIdT&& value) {
48 m_bundleIdHasBeenSet = true;
49 m_bundleId = std::forward<BundleIdT>(value);
50 }
51 template <typename BundleIdT = Aws::String>
52 WorkspaceBundle& WithBundleId(BundleIdT&& value) {
53 SetBundleId(std::forward<BundleIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 WorkspaceBundle& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetOwner() const { return m_owner; }
82 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
83 template <typename OwnerT = Aws::String>
84 void SetOwner(OwnerT&& value) {
85 m_ownerHasBeenSet = true;
86 m_owner = std::forward<OwnerT>(value);
87 }
88 template <typename OwnerT = Aws::String>
89 WorkspaceBundle& WithOwner(OwnerT&& value) {
90 SetOwner(std::forward<OwnerT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 WorkspaceBundle& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetImageId() const { return m_imageId; }
118 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
119 template <typename ImageIdT = Aws::String>
120 void SetImageId(ImageIdT&& value) {
121 m_imageIdHasBeenSet = true;
122 m_imageId = std::forward<ImageIdT>(value);
123 }
124 template <typename ImageIdT = Aws::String>
125 WorkspaceBundle& WithImageId(ImageIdT&& value) {
126 SetImageId(std::forward<ImageIdT>(value));
127 return *this;
128 }
130
132
135 inline const RootStorage& GetRootStorage() const { return m_rootStorage; }
136 inline bool RootStorageHasBeenSet() const { return m_rootStorageHasBeenSet; }
137 template <typename RootStorageT = RootStorage>
138 void SetRootStorage(RootStorageT&& value) {
139 m_rootStorageHasBeenSet = true;
140 m_rootStorage = std::forward<RootStorageT>(value);
141 }
142 template <typename RootStorageT = RootStorage>
143 WorkspaceBundle& WithRootStorage(RootStorageT&& value) {
144 SetRootStorage(std::forward<RootStorageT>(value));
145 return *this;
146 }
148
150
153 inline const UserStorage& GetUserStorage() const { return m_userStorage; }
154 inline bool UserStorageHasBeenSet() const { return m_userStorageHasBeenSet; }
155 template <typename UserStorageT = UserStorage>
156 void SetUserStorage(UserStorageT&& value) {
157 m_userStorageHasBeenSet = true;
158 m_userStorage = std::forward<UserStorageT>(value);
159 }
160 template <typename UserStorageT = UserStorage>
161 WorkspaceBundle& WithUserStorage(UserStorageT&& value) {
162 SetUserStorage(std::forward<UserStorageT>(value));
163 return *this;
164 }
166
168
173 inline const ComputeType& GetComputeType() const { return m_computeType; }
174 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
175 template <typename ComputeTypeT = ComputeType>
176 void SetComputeType(ComputeTypeT&& value) {
177 m_computeTypeHasBeenSet = true;
178 m_computeType = std::forward<ComputeTypeT>(value);
179 }
180 template <typename ComputeTypeT = ComputeType>
181 WorkspaceBundle& WithComputeType(ComputeTypeT&& value) {
182 SetComputeType(std::forward<ComputeTypeT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
192 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
193 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
194 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
195 m_lastUpdatedTimeHasBeenSet = true;
196 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
197 }
198 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
199 WorkspaceBundle& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
200 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
210 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
211 template <typename CreationTimeT = Aws::Utils::DateTime>
212 void SetCreationTime(CreationTimeT&& value) {
213 m_creationTimeHasBeenSet = true;
214 m_creationTime = std::forward<CreationTimeT>(value);
215 }
216 template <typename CreationTimeT = Aws::Utils::DateTime>
217 WorkspaceBundle& WithCreationTime(CreationTimeT&& value) {
218 SetCreationTime(std::forward<CreationTimeT>(value));
219 return *this;
220 }
222
224
227 inline WorkspaceBundleState GetState() const { return m_state; }
228 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
229 inline void SetState(WorkspaceBundleState value) {
230 m_stateHasBeenSet = true;
231 m_state = value;
232 }
234 SetState(value);
235 return *this;
236 }
238
240
243 inline BundleType GetBundleType() const { return m_bundleType; }
244 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
245 inline void SetBundleType(BundleType value) {
246 m_bundleTypeHasBeenSet = true;
247 m_bundleType = value;
248 }
250 SetBundleType(value);
251 return *this;
252 }
254 private:
255 Aws::String m_bundleId;
256
257 Aws::String m_name;
258
259 Aws::String m_owner;
260
261 Aws::String m_description;
262
263 Aws::String m_imageId;
264
265 RootStorage m_rootStorage;
266
267 UserStorage m_userStorage;
268
269 ComputeType m_computeType;
270
271 Aws::Utils::DateTime m_lastUpdatedTime{};
272
273 Aws::Utils::DateTime m_creationTime{};
274
276
277 BundleType m_bundleType{BundleType::NOT_SET};
278 bool m_bundleIdHasBeenSet = false;
279 bool m_nameHasBeenSet = false;
280 bool m_ownerHasBeenSet = false;
281 bool m_descriptionHasBeenSet = false;
282 bool m_imageIdHasBeenSet = false;
283 bool m_rootStorageHasBeenSet = false;
284 bool m_userStorageHasBeenSet = false;
285 bool m_computeTypeHasBeenSet = false;
286 bool m_lastUpdatedTimeHasBeenSet = false;
287 bool m_creationTimeHasBeenSet = false;
288 bool m_stateHasBeenSet = false;
289 bool m_bundleTypeHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace WorkSpaces
294} // namespace Aws
WorkspaceBundleState GetState() const
AWS_WORKSPACES_API WorkspaceBundle & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceBundle & WithImageId(ImageIdT &&value)
const Aws::String & GetImageId() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
WorkspaceBundle & WithBundleType(BundleType value)
WorkspaceBundle & WithComputeType(ComputeTypeT &&value)
void SetRootStorage(RootStorageT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
WorkspaceBundle & WithRootStorage(RootStorageT &&value)
const RootStorage & GetRootStorage() const
void SetState(WorkspaceBundleState value)
const ComputeType & GetComputeType() const
WorkspaceBundle & WithDescription(DescriptionT &&value)
const Aws::String & GetBundleId() const
WorkspaceBundle & WithUserStorage(UserStorageT &&value)
WorkspaceBundle & WithName(NameT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetComputeType(ComputeTypeT &&value)
const Aws::String & GetOwner() const
const Aws::String & GetDescription() const
AWS_WORKSPACES_API WorkspaceBundle(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceBundle & WithLastUpdatedTime(LastUpdatedTimeT &&value)
WorkspaceBundle & WithState(WorkspaceBundleState value)
WorkspaceBundle & WithBundleId(BundleIdT &&value)
WorkspaceBundle & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetUserStorage(UserStorageT &&value)
const Aws::String & GetName() const
AWS_WORKSPACES_API WorkspaceBundle()=default
WorkspaceBundle & WithOwner(OwnerT &&value)
const UserStorage & GetUserStorage() const
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String