AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceRequest.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/WorkspaceProperties.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/Tag.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 WorkSpaces
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_WORKSPACES_API WorkspaceRequest();
39 AWS_WORKSPACES_API WorkspaceRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
50 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
51 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
52 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
53 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
54 inline WorkspaceRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
55 inline WorkspaceRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
56 inline WorkspaceRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
58
60
65 inline const Aws::String& GetUserName() const{ return m_userName; }
66 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
67 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
68 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
69 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
70 inline WorkspaceRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
71 inline WorkspaceRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
72 inline WorkspaceRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
74
76
80 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
81 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
82 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
83 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
84 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
85 inline WorkspaceRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
86 inline WorkspaceRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
87 inline WorkspaceRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
89
91
95 inline const Aws::String& GetVolumeEncryptionKey() const{ return m_volumeEncryptionKey; }
96 inline bool VolumeEncryptionKeyHasBeenSet() const { return m_volumeEncryptionKeyHasBeenSet; }
97 inline void SetVolumeEncryptionKey(const Aws::String& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = value; }
98 inline void SetVolumeEncryptionKey(Aws::String&& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = std::move(value); }
99 inline void SetVolumeEncryptionKey(const char* value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey.assign(value); }
100 inline WorkspaceRequest& WithVolumeEncryptionKey(const Aws::String& value) { SetVolumeEncryptionKey(value); return *this;}
101 inline WorkspaceRequest& WithVolumeEncryptionKey(Aws::String&& value) { SetVolumeEncryptionKey(std::move(value)); return *this;}
102 inline WorkspaceRequest& WithVolumeEncryptionKey(const char* value) { SetVolumeEncryptionKey(value); return *this;}
104
106
109 inline bool GetUserVolumeEncryptionEnabled() const{ return m_userVolumeEncryptionEnabled; }
110 inline bool UserVolumeEncryptionEnabledHasBeenSet() const { return m_userVolumeEncryptionEnabledHasBeenSet; }
111 inline void SetUserVolumeEncryptionEnabled(bool value) { m_userVolumeEncryptionEnabledHasBeenSet = true; m_userVolumeEncryptionEnabled = value; }
114
116
119 inline bool GetRootVolumeEncryptionEnabled() const{ return m_rootVolumeEncryptionEnabled; }
120 inline bool RootVolumeEncryptionEnabledHasBeenSet() const { return m_rootVolumeEncryptionEnabledHasBeenSet; }
121 inline void SetRootVolumeEncryptionEnabled(bool value) { m_rootVolumeEncryptionEnabledHasBeenSet = true; m_rootVolumeEncryptionEnabled = value; }
124
126
129 inline const WorkspaceProperties& GetWorkspaceProperties() const{ return m_workspaceProperties; }
130 inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; }
131 inline void SetWorkspaceProperties(const WorkspaceProperties& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = value; }
132 inline void SetWorkspaceProperties(WorkspaceProperties&& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = std::move(value); }
134 inline WorkspaceRequest& WithWorkspaceProperties(WorkspaceProperties&& value) { SetWorkspaceProperties(std::move(value)); return *this;}
136
138
141 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline WorkspaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 inline WorkspaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
147 inline WorkspaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
148 inline WorkspaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
150
152
159 inline const Aws::String& GetWorkspaceName() const{ return m_workspaceName; }
160 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
161 inline void SetWorkspaceName(const Aws::String& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = value; }
162 inline void SetWorkspaceName(Aws::String&& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = std::move(value); }
163 inline void SetWorkspaceName(const char* value) { m_workspaceNameHasBeenSet = true; m_workspaceName.assign(value); }
164 inline WorkspaceRequest& WithWorkspaceName(const Aws::String& value) { SetWorkspaceName(value); return *this;}
165 inline WorkspaceRequest& WithWorkspaceName(Aws::String&& value) { SetWorkspaceName(std::move(value)); return *this;}
166 inline WorkspaceRequest& WithWorkspaceName(const char* value) { SetWorkspaceName(value); return *this;}
168 private:
169
170 Aws::String m_directoryId;
171 bool m_directoryIdHasBeenSet = false;
172
173 Aws::String m_userName;
174 bool m_userNameHasBeenSet = false;
175
176 Aws::String m_bundleId;
177 bool m_bundleIdHasBeenSet = false;
178
179 Aws::String m_volumeEncryptionKey;
180 bool m_volumeEncryptionKeyHasBeenSet = false;
181
182 bool m_userVolumeEncryptionEnabled;
183 bool m_userVolumeEncryptionEnabledHasBeenSet = false;
184
185 bool m_rootVolumeEncryptionEnabled;
186 bool m_rootVolumeEncryptionEnabledHasBeenSet = false;
187
188 WorkspaceProperties m_workspaceProperties;
189 bool m_workspacePropertiesHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193
194 Aws::String m_workspaceName;
195 bool m_workspaceNameHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace WorkSpaces
200} // namespace Aws
const Aws::String & GetDirectoryId() const
WorkspaceRequest & WithWorkspaceProperties(WorkspaceProperties &&value)
WorkspaceRequest & AddTags(const Tag &value)
WorkspaceRequest & WithDirectoryId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_WORKSPACES_API WorkspaceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceRequest & WithVolumeEncryptionKey(Aws::String &&value)
const WorkspaceProperties & GetWorkspaceProperties() const
WorkspaceRequest & WithDirectoryId(const Aws::String &value)
void SetBundleId(const Aws::String &value)
WorkspaceRequest & WithBundleId(const Aws::String &value)
const Aws::String & GetBundleId() const
WorkspaceRequest & AddTags(Tag &&value)
WorkspaceRequest & WithWorkspaceName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetVolumeEncryptionKey(const Aws::String &value)
void SetVolumeEncryptionKey(const char *value)
WorkspaceRequest & WithBundleId(Aws::String &&value)
WorkspaceRequest & WithUserName(Aws::String &&value)
WorkspaceRequest & WithTags(const Aws::Vector< Tag > &value)
WorkspaceRequest & WithRootVolumeEncryptionEnabled(bool value)
const Aws::String & GetUserName() const
const Aws::String & GetVolumeEncryptionKey() const
const Aws::String & GetWorkspaceName() const
WorkspaceRequest & WithUserName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetUserName(const Aws::String &value)
void SetVolumeEncryptionKey(Aws::String &&value)
void SetWorkspaceProperties(const WorkspaceProperties &value)
void SetWorkspaceName(const Aws::String &value)
WorkspaceRequest & WithWorkspaceProperties(const WorkspaceProperties &value)
WorkspaceRequest & WithDirectoryId(const char *value)
WorkspaceRequest & WithWorkspaceName(Aws::String &&value)
AWS_WORKSPACES_API WorkspaceRequest(Aws::Utils::Json::JsonView jsonValue)
WorkspaceRequest & WithUserVolumeEncryptionEnabled(bool value)
void SetDirectoryId(const Aws::String &value)
WorkspaceRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceRequest & WithUserName(const char *value)
WorkspaceRequest & WithWorkspaceName(const Aws::String &value)
WorkspaceRequest & WithBundleId(const char *value)
WorkspaceRequest & WithVolumeEncryptionKey(const Aws::String &value)
WorkspaceRequest & WithVolumeEncryptionKey(const char *value)
void SetWorkspaceProperties(WorkspaceProperties &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue