AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkspaceRequest.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/grafana/model/AccountAccessType.h>
10#include <aws/grafana/model/NetworkAccessConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/grafana/model/PermissionType.h>
13#include <aws/grafana/model/VpcConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/grafana/model/DataSourceType.h>
16#include <aws/grafana/model/NotificationDestinationType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace ManagedGrafana
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_MANAGEDGRAFANA_API UpdateWorkspaceRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspace"; }
38
39 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
40
41
43
51 inline const AccountAccessType& GetAccountAccessType() const{ return m_accountAccessType; }
52 inline bool AccountAccessTypeHasBeenSet() const { return m_accountAccessTypeHasBeenSet; }
53 inline void SetAccountAccessType(const AccountAccessType& value) { m_accountAccessTypeHasBeenSet = true; m_accountAccessType = value; }
54 inline void SetAccountAccessType(AccountAccessType&& value) { m_accountAccessTypeHasBeenSet = true; m_accountAccessType = std::move(value); }
56 inline UpdateWorkspaceRequest& WithAccountAccessType(AccountAccessType&& value) { SetAccountAccessType(std::move(value)); return *this;}
58
60
68 inline const NetworkAccessConfiguration& GetNetworkAccessControl() const{ return m_networkAccessControl; }
69 inline bool NetworkAccessControlHasBeenSet() const { return m_networkAccessControlHasBeenSet; }
70 inline void SetNetworkAccessControl(const NetworkAccessConfiguration& value) { m_networkAccessControlHasBeenSet = true; m_networkAccessControl = value; }
71 inline void SetNetworkAccessControl(NetworkAccessConfiguration&& value) { m_networkAccessControlHasBeenSet = true; m_networkAccessControl = std::move(value); }
75
77
82 inline const Aws::String& GetOrganizationRoleName() const{ return m_organizationRoleName; }
83 inline bool OrganizationRoleNameHasBeenSet() const { return m_organizationRoleNameHasBeenSet; }
84 inline void SetOrganizationRoleName(const Aws::String& value) { m_organizationRoleNameHasBeenSet = true; m_organizationRoleName = value; }
85 inline void SetOrganizationRoleName(Aws::String&& value) { m_organizationRoleNameHasBeenSet = true; m_organizationRoleName = std::move(value); }
86 inline void SetOrganizationRoleName(const char* value) { m_organizationRoleNameHasBeenSet = true; m_organizationRoleName.assign(value); }
88 inline UpdateWorkspaceRequest& WithOrganizationRoleName(Aws::String&& value) { SetOrganizationRoleName(std::move(value)); return *this;}
89 inline UpdateWorkspaceRequest& WithOrganizationRoleName(const char* value) { SetOrganizationRoleName(value); return *this;}
91
93
117 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
118 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
119 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
120 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
121 inline UpdateWorkspaceRequest& WithPermissionType(const PermissionType& value) { SetPermissionType(value); return *this;}
122 inline UpdateWorkspaceRequest& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
124
126
134 inline bool GetRemoveNetworkAccessConfiguration() const{ return m_removeNetworkAccessConfiguration; }
135 inline bool RemoveNetworkAccessConfigurationHasBeenSet() const { return m_removeNetworkAccessConfigurationHasBeenSet; }
136 inline void SetRemoveNetworkAccessConfiguration(bool value) { m_removeNetworkAccessConfigurationHasBeenSet = true; m_removeNetworkAccessConfiguration = value; }
139
141
146 inline bool GetRemoveVpcConfiguration() const{ return m_removeVpcConfiguration; }
147 inline bool RemoveVpcConfigurationHasBeenSet() const { return m_removeVpcConfigurationHasBeenSet; }
148 inline void SetRemoveVpcConfiguration(bool value) { m_removeVpcConfigurationHasBeenSet = true; m_removeVpcConfiguration = value; }
151
153
157 inline const Aws::String& GetStackSetName() const{ return m_stackSetName; }
158 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
159 inline void SetStackSetName(const Aws::String& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = value; }
160 inline void SetStackSetName(Aws::String&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::move(value); }
161 inline void SetStackSetName(const char* value) { m_stackSetNameHasBeenSet = true; m_stackSetName.assign(value); }
162 inline UpdateWorkspaceRequest& WithStackSetName(const Aws::String& value) { SetStackSetName(value); return *this;}
163 inline UpdateWorkspaceRequest& WithStackSetName(Aws::String&& value) { SetStackSetName(std::move(value)); return *this;}
164 inline UpdateWorkspaceRequest& WithStackSetName(const char* value) { SetStackSetName(value); return *this;}
166
168
172 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
173 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
174 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
175 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
177 inline UpdateWorkspaceRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
179
181
184 inline const Aws::Vector<DataSourceType>& GetWorkspaceDataSources() const{ return m_workspaceDataSources; }
185 inline bool WorkspaceDataSourcesHasBeenSet() const { return m_workspaceDataSourcesHasBeenSet; }
186 inline void SetWorkspaceDataSources(const Aws::Vector<DataSourceType>& value) { m_workspaceDataSourcesHasBeenSet = true; m_workspaceDataSources = value; }
187 inline void SetWorkspaceDataSources(Aws::Vector<DataSourceType>&& value) { m_workspaceDataSourcesHasBeenSet = true; m_workspaceDataSources = std::move(value); }
190 inline UpdateWorkspaceRequest& AddWorkspaceDataSources(const DataSourceType& value) { m_workspaceDataSourcesHasBeenSet = true; m_workspaceDataSources.push_back(value); return *this; }
191 inline UpdateWorkspaceRequest& AddWorkspaceDataSources(DataSourceType&& value) { m_workspaceDataSourcesHasBeenSet = true; m_workspaceDataSources.push_back(std::move(value)); return *this; }
193
195
199 inline const Aws::String& GetWorkspaceDescription() const{ return m_workspaceDescription; }
200 inline bool WorkspaceDescriptionHasBeenSet() const { return m_workspaceDescriptionHasBeenSet; }
201 inline void SetWorkspaceDescription(const Aws::String& value) { m_workspaceDescriptionHasBeenSet = true; m_workspaceDescription = value; }
202 inline void SetWorkspaceDescription(Aws::String&& value) { m_workspaceDescriptionHasBeenSet = true; m_workspaceDescription = std::move(value); }
203 inline void SetWorkspaceDescription(const char* value) { m_workspaceDescriptionHasBeenSet = true; m_workspaceDescription.assign(value); }
205 inline UpdateWorkspaceRequest& WithWorkspaceDescription(Aws::String&& value) { SetWorkspaceDescription(std::move(value)); return *this;}
206 inline UpdateWorkspaceRequest& WithWorkspaceDescription(const char* value) { SetWorkspaceDescription(value); return *this;}
208
210
213 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
214 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
215 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
216 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
217 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
218 inline UpdateWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
219 inline UpdateWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
220 inline UpdateWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
222
224
227 inline const Aws::String& GetWorkspaceName() const{ return m_workspaceName; }
228 inline bool WorkspaceNameHasBeenSet() const { return m_workspaceNameHasBeenSet; }
229 inline void SetWorkspaceName(const Aws::String& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = value; }
230 inline void SetWorkspaceName(Aws::String&& value) { m_workspaceNameHasBeenSet = true; m_workspaceName = std::move(value); }
231 inline void SetWorkspaceName(const char* value) { m_workspaceNameHasBeenSet = true; m_workspaceName.assign(value); }
232 inline UpdateWorkspaceRequest& WithWorkspaceName(const Aws::String& value) { SetWorkspaceName(value); return *this;}
233 inline UpdateWorkspaceRequest& WithWorkspaceName(Aws::String&& value) { SetWorkspaceName(std::move(value)); return *this;}
234 inline UpdateWorkspaceRequest& WithWorkspaceName(const char* value) { SetWorkspaceName(value); return *this;}
236
238
244 inline const Aws::Vector<NotificationDestinationType>& GetWorkspaceNotificationDestinations() const{ return m_workspaceNotificationDestinations; }
245 inline bool WorkspaceNotificationDestinationsHasBeenSet() const { return m_workspaceNotificationDestinationsHasBeenSet; }
246 inline void SetWorkspaceNotificationDestinations(const Aws::Vector<NotificationDestinationType>& value) { m_workspaceNotificationDestinationsHasBeenSet = true; m_workspaceNotificationDestinations = value; }
247 inline void SetWorkspaceNotificationDestinations(Aws::Vector<NotificationDestinationType>&& value) { m_workspaceNotificationDestinationsHasBeenSet = true; m_workspaceNotificationDestinations = std::move(value); }
250 inline UpdateWorkspaceRequest& AddWorkspaceNotificationDestinations(const NotificationDestinationType& value) { m_workspaceNotificationDestinationsHasBeenSet = true; m_workspaceNotificationDestinations.push_back(value); return *this; }
251 inline UpdateWorkspaceRequest& AddWorkspaceNotificationDestinations(NotificationDestinationType&& value) { m_workspaceNotificationDestinationsHasBeenSet = true; m_workspaceNotificationDestinations.push_back(std::move(value)); return *this; }
253
255
260 inline const Aws::Vector<Aws::String>& GetWorkspaceOrganizationalUnits() const{ return m_workspaceOrganizationalUnits; }
261 inline bool WorkspaceOrganizationalUnitsHasBeenSet() const { return m_workspaceOrganizationalUnitsHasBeenSet; }
262 inline void SetWorkspaceOrganizationalUnits(const Aws::Vector<Aws::String>& value) { m_workspaceOrganizationalUnitsHasBeenSet = true; m_workspaceOrganizationalUnits = value; }
263 inline void SetWorkspaceOrganizationalUnits(Aws::Vector<Aws::String>&& value) { m_workspaceOrganizationalUnitsHasBeenSet = true; m_workspaceOrganizationalUnits = std::move(value); }
266 inline UpdateWorkspaceRequest& AddWorkspaceOrganizationalUnits(const Aws::String& value) { m_workspaceOrganizationalUnitsHasBeenSet = true; m_workspaceOrganizationalUnits.push_back(value); return *this; }
267 inline UpdateWorkspaceRequest& AddWorkspaceOrganizationalUnits(Aws::String&& value) { m_workspaceOrganizationalUnitsHasBeenSet = true; m_workspaceOrganizationalUnits.push_back(std::move(value)); return *this; }
268 inline UpdateWorkspaceRequest& AddWorkspaceOrganizationalUnits(const char* value) { m_workspaceOrganizationalUnitsHasBeenSet = true; m_workspaceOrganizationalUnits.push_back(value); return *this; }
270
272
278 inline const Aws::String& GetWorkspaceRoleArn() const{ return m_workspaceRoleArn; }
279 inline bool WorkspaceRoleArnHasBeenSet() const { return m_workspaceRoleArnHasBeenSet; }
280 inline void SetWorkspaceRoleArn(const Aws::String& value) { m_workspaceRoleArnHasBeenSet = true; m_workspaceRoleArn = value; }
281 inline void SetWorkspaceRoleArn(Aws::String&& value) { m_workspaceRoleArnHasBeenSet = true; m_workspaceRoleArn = std::move(value); }
282 inline void SetWorkspaceRoleArn(const char* value) { m_workspaceRoleArnHasBeenSet = true; m_workspaceRoleArn.assign(value); }
283 inline UpdateWorkspaceRequest& WithWorkspaceRoleArn(const Aws::String& value) { SetWorkspaceRoleArn(value); return *this;}
284 inline UpdateWorkspaceRequest& WithWorkspaceRoleArn(Aws::String&& value) { SetWorkspaceRoleArn(std::move(value)); return *this;}
285 inline UpdateWorkspaceRequest& WithWorkspaceRoleArn(const char* value) { SetWorkspaceRoleArn(value); return *this;}
287 private:
288
289 AccountAccessType m_accountAccessType;
290 bool m_accountAccessTypeHasBeenSet = false;
291
292 NetworkAccessConfiguration m_networkAccessControl;
293 bool m_networkAccessControlHasBeenSet = false;
294
295 Aws::String m_organizationRoleName;
296 bool m_organizationRoleNameHasBeenSet = false;
297
298 PermissionType m_permissionType;
299 bool m_permissionTypeHasBeenSet = false;
300
301 bool m_removeNetworkAccessConfiguration;
302 bool m_removeNetworkAccessConfigurationHasBeenSet = false;
303
304 bool m_removeVpcConfiguration;
305 bool m_removeVpcConfigurationHasBeenSet = false;
306
307 Aws::String m_stackSetName;
308 bool m_stackSetNameHasBeenSet = false;
309
310 VpcConfiguration m_vpcConfiguration;
311 bool m_vpcConfigurationHasBeenSet = false;
312
313 Aws::Vector<DataSourceType> m_workspaceDataSources;
314 bool m_workspaceDataSourcesHasBeenSet = false;
315
316 Aws::String m_workspaceDescription;
317 bool m_workspaceDescriptionHasBeenSet = false;
318
319 Aws::String m_workspaceId;
320 bool m_workspaceIdHasBeenSet = false;
321
322 Aws::String m_workspaceName;
323 bool m_workspaceNameHasBeenSet = false;
324
325 Aws::Vector<NotificationDestinationType> m_workspaceNotificationDestinations;
326 bool m_workspaceNotificationDestinationsHasBeenSet = false;
327
328 Aws::Vector<Aws::String> m_workspaceOrganizationalUnits;
329 bool m_workspaceOrganizationalUnitsHasBeenSet = false;
330
331 Aws::String m_workspaceRoleArn;
332 bool m_workspaceRoleArnHasBeenSet = false;
333 };
334
335} // namespace Model
336} // namespace ManagedGrafana
337} // namespace Aws
UpdateWorkspaceRequest & WithWorkspaceOrganizationalUnits(const Aws::Vector< Aws::String > &value)
const Aws::Vector< DataSourceType > & GetWorkspaceDataSources() const
UpdateWorkspaceRequest & WithWorkspaceOrganizationalUnits(Aws::Vector< Aws::String > &&value)
UpdateWorkspaceRequest & WithOrganizationRoleName(const char *value)
UpdateWorkspaceRequest & WithWorkspaceName(Aws::String &&value)
UpdateWorkspaceRequest & AddWorkspaceDataSources(DataSourceType &&value)
const Aws::Vector< Aws::String > & GetWorkspaceOrganizationalUnits() const
UpdateWorkspaceRequest & AddWorkspaceOrganizationalUnits(const char *value)
UpdateWorkspaceRequest & WithNetworkAccessControl(NetworkAccessConfiguration &&value)
UpdateWorkspaceRequest & WithWorkspaceRoleArn(const Aws::String &value)
UpdateWorkspaceRequest & WithRemoveVpcConfiguration(bool value)
void SetWorkspaceOrganizationalUnits(const Aws::Vector< Aws::String > &value)
UpdateWorkspaceRequest & WithWorkspaceName(const Aws::String &value)
UpdateWorkspaceRequest & WithWorkspaceDescription(const Aws::String &value)
UpdateWorkspaceRequest & WithStackSetName(Aws::String &&value)
UpdateWorkspaceRequest & WithStackSetName(const Aws::String &value)
void SetWorkspaceDataSources(const Aws::Vector< DataSourceType > &value)
UpdateWorkspaceRequest & WithWorkspaceNotificationDestinations(const Aws::Vector< NotificationDestinationType > &value)
UpdateWorkspaceRequest & WithVpcConfiguration(VpcConfiguration &&value)
UpdateWorkspaceRequest & WithNetworkAccessControl(const NetworkAccessConfiguration &value)
UpdateWorkspaceRequest & WithWorkspaceName(const char *value)
UpdateWorkspaceRequest & AddWorkspaceNotificationDestinations(NotificationDestinationType &&value)
UpdateWorkspaceRequest & AddWorkspaceDataSources(const DataSourceType &value)
const Aws::Vector< NotificationDestinationType > & GetWorkspaceNotificationDestinations() const
UpdateWorkspaceRequest & WithWorkspaceId(const char *value)
void SetWorkspaceNotificationDestinations(const Aws::Vector< NotificationDestinationType > &value)
UpdateWorkspaceRequest & WithWorkspaceNotificationDestinations(Aws::Vector< NotificationDestinationType > &&value)
UpdateWorkspaceRequest & WithAccountAccessType(const AccountAccessType &value)
UpdateWorkspaceRequest & WithStackSetName(const char *value)
UpdateWorkspaceRequest & WithWorkspaceDataSources(const Aws::Vector< DataSourceType > &value)
void SetWorkspaceDataSources(Aws::Vector< DataSourceType > &&value)
void SetWorkspaceOrganizationalUnits(Aws::Vector< Aws::String > &&value)
UpdateWorkspaceRequest & WithWorkspaceDescription(Aws::String &&value)
UpdateWorkspaceRequest & WithOrganizationRoleName(Aws::String &&value)
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
UpdateWorkspaceRequest & WithOrganizationRoleName(const Aws::String &value)
UpdateWorkspaceRequest & WithWorkspaceDataSources(Aws::Vector< DataSourceType > &&value)
UpdateWorkspaceRequest & WithAccountAccessType(AccountAccessType &&value)
void SetVpcConfiguration(const VpcConfiguration &value)
UpdateWorkspaceRequest & WithWorkspaceRoleArn(Aws::String &&value)
const NetworkAccessConfiguration & GetNetworkAccessControl() const
UpdateWorkspaceRequest & WithWorkspaceDescription(const char *value)
virtual const char * GetServiceRequestName() const override
void SetWorkspaceNotificationDestinations(Aws::Vector< NotificationDestinationType > &&value)
UpdateWorkspaceRequest & WithWorkspaceId(Aws::String &&value)
UpdateWorkspaceRequest & WithWorkspaceRoleArn(const char *value)
void SetAccountAccessType(const AccountAccessType &value)
UpdateWorkspaceRequest & WithVpcConfiguration(const VpcConfiguration &value)
UpdateWorkspaceRequest & WithRemoveNetworkAccessConfiguration(bool value)
void SetNetworkAccessControl(NetworkAccessConfiguration &&value)
void SetNetworkAccessControl(const NetworkAccessConfiguration &value)
UpdateWorkspaceRequest & WithPermissionType(const PermissionType &value)
UpdateWorkspaceRequest & WithPermissionType(PermissionType &&value)
UpdateWorkspaceRequest & AddWorkspaceOrganizationalUnits(Aws::String &&value)
UpdateWorkspaceRequest & AddWorkspaceOrganizationalUnits(const Aws::String &value)
UpdateWorkspaceRequest & AddWorkspaceNotificationDestinations(const NotificationDestinationType &value)
UpdateWorkspaceRequest & WithWorkspaceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector