AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BundleIdT = Aws::String>
53 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
54 template<typename BundleIdT = Aws::String>
55 WorkspaceBundle& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 WorkspaceBundle& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
75 inline const Aws::String& GetOwner() const { return m_owner; }
76 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
77 template<typename OwnerT = Aws::String>
78 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
79 template<typename OwnerT = Aws::String>
80 WorkspaceBundle& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 WorkspaceBundle& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline const Aws::String& GetImageId() const { return m_imageId; }
100 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
101 template<typename ImageIdT = Aws::String>
102 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
103 template<typename ImageIdT = Aws::String>
104 WorkspaceBundle& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
106
108
111 inline const RootStorage& GetRootStorage() const { return m_rootStorage; }
112 inline bool RootStorageHasBeenSet() const { return m_rootStorageHasBeenSet; }
113 template<typename RootStorageT = RootStorage>
114 void SetRootStorage(RootStorageT&& value) { m_rootStorageHasBeenSet = true; m_rootStorage = std::forward<RootStorageT>(value); }
115 template<typename RootStorageT = RootStorage>
116 WorkspaceBundle& WithRootStorage(RootStorageT&& value) { SetRootStorage(std::forward<RootStorageT>(value)); return *this;}
118
120
123 inline const UserStorage& GetUserStorage() const { return m_userStorage; }
124 inline bool UserStorageHasBeenSet() const { return m_userStorageHasBeenSet; }
125 template<typename UserStorageT = UserStorage>
126 void SetUserStorage(UserStorageT&& value) { m_userStorageHasBeenSet = true; m_userStorage = std::forward<UserStorageT>(value); }
127 template<typename UserStorageT = UserStorage>
128 WorkspaceBundle& WithUserStorage(UserStorageT&& value) { SetUserStorage(std::forward<UserStorageT>(value)); return *this;}
130
132
137 inline const ComputeType& GetComputeType() const { return m_computeType; }
138 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
139 template<typename ComputeTypeT = ComputeType>
140 void SetComputeType(ComputeTypeT&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::forward<ComputeTypeT>(value); }
141 template<typename ComputeTypeT = ComputeType>
142 WorkspaceBundle& WithComputeType(ComputeTypeT&& value) { SetComputeType(std::forward<ComputeTypeT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
150 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
151 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
152 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
153 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
154 WorkspaceBundle& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
162 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
163 template<typename CreationTimeT = Aws::Utils::DateTime>
164 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
165 template<typename CreationTimeT = Aws::Utils::DateTime>
166 WorkspaceBundle& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
168
170
173 inline WorkspaceBundleState GetState() const { return m_state; }
174 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
175 inline void SetState(WorkspaceBundleState value) { m_stateHasBeenSet = true; m_state = value; }
176 inline WorkspaceBundle& WithState(WorkspaceBundleState value) { SetState(value); return *this;}
178
180
183 inline BundleType GetBundleType() const { return m_bundleType; }
184 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
185 inline void SetBundleType(BundleType value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
186 inline WorkspaceBundle& WithBundleType(BundleType value) { SetBundleType(value); return *this;}
188 private:
189
190 Aws::String m_bundleId;
191 bool m_bundleIdHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_owner;
197 bool m_ownerHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 Aws::String m_imageId;
203 bool m_imageIdHasBeenSet = false;
204
205 RootStorage m_rootStorage;
206 bool m_rootStorageHasBeenSet = false;
207
208 UserStorage m_userStorage;
209 bool m_userStorageHasBeenSet = false;
210
211 ComputeType m_computeType;
212 bool m_computeTypeHasBeenSet = false;
213
214 Aws::Utils::DateTime m_lastUpdatedTime{};
215 bool m_lastUpdatedTimeHasBeenSet = false;
216
217 Aws::Utils::DateTime m_creationTime{};
218 bool m_creationTimeHasBeenSet = false;
219
221 bool m_stateHasBeenSet = false;
222
223 BundleType m_bundleType{BundleType::NOT_SET};
224 bool m_bundleTypeHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace WorkSpaces
229} // namespace Aws
WorkspaceBundleState GetState() const
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)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
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)
void SetComputeType(ComputeTypeT &&value)
const Aws::String & GetOwner() const
const Aws::String & GetDescription() const
AWS_WORKSPACES_API WorkspaceBundle(Aws::Utils::Json::JsonView jsonValue)
WorkspaceBundle & WithLastUpdatedTime(LastUpdatedTimeT &&value)
WorkspaceBundle & WithState(WorkspaceBundleState value)
WorkspaceBundle & WithBundleId(BundleIdT &&value)
AWS_WORKSPACES_API WorkspaceBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue