AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceBundle.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/RootStorage.h>
10#include <aws/workspaces/model/UserStorage.h>
11#include <aws/workspaces/model/ComputeType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/workspaces/model/WorkspaceBundleState.h>
14#include <aws/workspaces/model/BundleType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace WorkSpaces
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_WORKSPACES_API WorkspaceBundle();
41 AWS_WORKSPACES_API WorkspaceBundle(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
51 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
52 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
53 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
54 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
55 inline WorkspaceBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
56 inline WorkspaceBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
57 inline WorkspaceBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline WorkspaceBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline WorkspaceBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline WorkspaceBundle& WithName(const char* value) { SetName(value); return *this;}
73
75
79 inline const Aws::String& GetOwner() const{ return m_owner; }
80 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
81 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
82 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
83 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
84 inline WorkspaceBundle& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
85 inline WorkspaceBundle& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
86 inline WorkspaceBundle& WithOwner(const char* value) { SetOwner(value); return *this;}
88
90
93 inline const Aws::String& GetDescription() const{ return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
98 inline WorkspaceBundle& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
99 inline WorkspaceBundle& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
100 inline WorkspaceBundle& WithDescription(const char* value) { SetDescription(value); return *this;}
102
104
107 inline const Aws::String& GetImageId() const{ return m_imageId; }
108 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
109 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
110 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
111 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
112 inline WorkspaceBundle& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
113 inline WorkspaceBundle& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
114 inline WorkspaceBundle& WithImageId(const char* value) { SetImageId(value); return *this;}
116
118
121 inline const RootStorage& GetRootStorage() const{ return m_rootStorage; }
122 inline bool RootStorageHasBeenSet() const { return m_rootStorageHasBeenSet; }
123 inline void SetRootStorage(const RootStorage& value) { m_rootStorageHasBeenSet = true; m_rootStorage = value; }
124 inline void SetRootStorage(RootStorage&& value) { m_rootStorageHasBeenSet = true; m_rootStorage = std::move(value); }
125 inline WorkspaceBundle& WithRootStorage(const RootStorage& value) { SetRootStorage(value); return *this;}
126 inline WorkspaceBundle& WithRootStorage(RootStorage&& value) { SetRootStorage(std::move(value)); return *this;}
128
130
133 inline const UserStorage& GetUserStorage() const{ return m_userStorage; }
134 inline bool UserStorageHasBeenSet() const { return m_userStorageHasBeenSet; }
135 inline void SetUserStorage(const UserStorage& value) { m_userStorageHasBeenSet = true; m_userStorage = value; }
136 inline void SetUserStorage(UserStorage&& value) { m_userStorageHasBeenSet = true; m_userStorage = std::move(value); }
137 inline WorkspaceBundle& WithUserStorage(const UserStorage& value) { SetUserStorage(value); return *this;}
138 inline WorkspaceBundle& WithUserStorage(UserStorage&& value) { SetUserStorage(std::move(value)); return *this;}
140
142
147 inline const ComputeType& GetComputeType() const{ return m_computeType; }
148 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
149 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
150 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
151 inline WorkspaceBundle& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
152 inline WorkspaceBundle& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
160 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
161 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
162 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
163 inline WorkspaceBundle& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
164 inline WorkspaceBundle& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
172 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
173 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
174 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
175 inline WorkspaceBundle& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
176 inline WorkspaceBundle& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
178
180
183 inline const WorkspaceBundleState& GetState() const{ return m_state; }
184 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
185 inline void SetState(const WorkspaceBundleState& value) { m_stateHasBeenSet = true; m_state = value; }
186 inline void SetState(WorkspaceBundleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
187 inline WorkspaceBundle& WithState(const WorkspaceBundleState& value) { SetState(value); return *this;}
188 inline WorkspaceBundle& WithState(WorkspaceBundleState&& value) { SetState(std::move(value)); return *this;}
190
192
195 inline const BundleType& GetBundleType() const{ return m_bundleType; }
196 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
197 inline void SetBundleType(const BundleType& value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
198 inline void SetBundleType(BundleType&& value) { m_bundleTypeHasBeenSet = true; m_bundleType = std::move(value); }
199 inline WorkspaceBundle& WithBundleType(const BundleType& value) { SetBundleType(value); return *this;}
200 inline WorkspaceBundle& WithBundleType(BundleType&& value) { SetBundleType(std::move(value)); return *this;}
202 private:
203
204 Aws::String m_bundleId;
205 bool m_bundleIdHasBeenSet = false;
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
210 Aws::String m_owner;
211 bool m_ownerHasBeenSet = false;
212
213 Aws::String m_description;
214 bool m_descriptionHasBeenSet = false;
215
216 Aws::String m_imageId;
217 bool m_imageIdHasBeenSet = false;
218
219 RootStorage m_rootStorage;
220 bool m_rootStorageHasBeenSet = false;
221
222 UserStorage m_userStorage;
223 bool m_userStorageHasBeenSet = false;
224
225 ComputeType m_computeType;
226 bool m_computeTypeHasBeenSet = false;
227
228 Aws::Utils::DateTime m_lastUpdatedTime;
229 bool m_lastUpdatedTimeHasBeenSet = false;
230
231 Aws::Utils::DateTime m_creationTime;
232 bool m_creationTimeHasBeenSet = false;
233
234 WorkspaceBundleState m_state;
235 bool m_stateHasBeenSet = false;
236
237 BundleType m_bundleType;
238 bool m_bundleTypeHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace WorkSpaces
243} // namespace Aws
void SetComputeType(ComputeType &&value)
void SetBundleId(const Aws::String &value)
WorkspaceBundle & WithState(const WorkspaceBundleState &value)
const Aws::String & GetImageId() const
void SetDescription(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetUserStorage(const UserStorage &value)
WorkspaceBundle & WithUserStorage(const UserStorage &value)
void SetComputeType(const ComputeType &value)
WorkspaceBundle & WithCreationTime(Aws::Utils::DateTime &&value)
WorkspaceBundle & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const WorkspaceBundleState &value)
const RootStorage & GetRootStorage() const
const ComputeType & GetComputeType() const
void SetName(const Aws::String &value)
WorkspaceBundle & WithOwner(const char *value)
WorkspaceBundle & WithOwner(const Aws::String &value)
WorkspaceBundle & WithRootStorage(RootStorage &&value)
const Aws::String & GetBundleId() const
const BundleType & GetBundleType() const
WorkspaceBundle & WithImageId(Aws::String &&value)
WorkspaceBundle & WithOwner(Aws::String &&value)
WorkspaceBundle & WithComputeType(const ComputeType &value)
WorkspaceBundle & WithState(WorkspaceBundleState &&value)
WorkspaceBundle & WithName(Aws::String &&value)
void SetRootStorage(const RootStorage &value)
WorkspaceBundle & WithImageId(const Aws::String &value)
WorkspaceBundle & WithBundleId(Aws::String &&value)
void SetOwner(const Aws::String &value)
WorkspaceBundle & WithBundleId(const char *value)
const Aws::String & GetOwner() const
const Aws::String & GetDescription() const
WorkspaceBundle & WithBundleId(const Aws::String &value)
WorkspaceBundle & WithName(const Aws::String &value)
AWS_WORKSPACES_API WorkspaceBundle(Aws::Utils::Json::JsonView jsonValue)
WorkspaceBundle & WithBundleType(BundleType &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetBundleId(Aws::String &&value)
void SetImageId(const Aws::String &value)
WorkspaceBundle & WithComputeType(ComputeType &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
WorkspaceBundle & WithBundleType(const BundleType &value)
WorkspaceBundle & WithDescription(const char *value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
AWS_WORKSPACES_API WorkspaceBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUserStorage(UserStorage &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetName() const
WorkspaceBundle & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
WorkspaceBundle & WithUserStorage(UserStorage &&value)
void SetState(WorkspaceBundleState &&value)
void SetBundleType(const BundleType &value)
WorkspaceBundle & WithName(const char *value)
WorkspaceBundle & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
const UserStorage & GetUserStorage() const
const WorkspaceBundleState & GetState() const
WorkspaceBundle & WithRootStorage(const RootStorage &value)
void SetRootStorage(RootStorage &&value)
WorkspaceBundle & WithDescription(const Aws::String &value)
WorkspaceBundle & WithImageId(const char *value)
WorkspaceBundle & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue