AWS SDK for C++  1.9.123
AWS SDK for C++
ModifyWorkspacePropertiesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifyWorkspaceProperties"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
42 
46  inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
47 
51  inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
52 
56  inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
57 
61  inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
62 
66  inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
67 
71  inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
72 
76  inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
77 
78 
82  inline const WorkspaceProperties& GetWorkspaceProperties() const{ return m_workspaceProperties; }
83 
87  inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; }
88 
92  inline void SetWorkspaceProperties(const WorkspaceProperties& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = value; }
93 
97  inline void SetWorkspaceProperties(WorkspaceProperties&& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = std::move(value); }
98 
102  inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(const WorkspaceProperties& value) { SetWorkspaceProperties(value); return *this;}
103 
107  inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(WorkspaceProperties&& value) { SetWorkspaceProperties(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_workspaceId;
112  bool m_workspaceIdHasBeenSet;
113 
114  WorkspaceProperties m_workspaceProperties;
115  bool m_workspacePropertiesHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace WorkSpaces
120 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WorkspacePropertiesHasBeenSet
bool WorkspacePropertiesHasBeenSet() const
Definition: ModifyWorkspacePropertiesRequest.h:87
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WorkspaceIdHasBeenSet
bool WorkspaceIdHasBeenSet() const
Definition: ModifyWorkspacePropertiesRequest.h:46
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SetWorkspaceProperties
void SetWorkspaceProperties(WorkspaceProperties &&value)
Definition: ModifyWorkspacePropertiesRequest.h:97
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WithWorkspaceProperties
ModifyWorkspacePropertiesRequest & WithWorkspaceProperties(WorkspaceProperties &&value)
Definition: ModifyWorkspacePropertiesRequest.h:107
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SetWorkspaceProperties
void SetWorkspaceProperties(const WorkspaceProperties &value)
Definition: ModifyWorkspacePropertiesRequest.h:92
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest
Definition: ModifyWorkspacePropertiesRequest.h:23
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::GetWorkspaceId
const Aws::String & GetWorkspaceId() const
Definition: ModifyWorkspacePropertiesRequest.h:41
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WithWorkspaceId
ModifyWorkspacePropertiesRequest & WithWorkspaceId(const Aws::String &value)
Definition: ModifyWorkspacePropertiesRequest.h:66
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WithWorkspaceProperties
ModifyWorkspacePropertiesRequest & WithWorkspaceProperties(const WorkspaceProperties &value)
Definition: ModifyWorkspacePropertiesRequest.h:102
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::GetWorkspaceProperties
const WorkspaceProperties & GetWorkspaceProperties() const
Definition: ModifyWorkspacePropertiesRequest.h:82
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WithWorkspaceId
ModifyWorkspacePropertiesRequest & WithWorkspaceId(const char *value)
Definition: ModifyWorkspacePropertiesRequest.h:76
WorkspaceProperties.h
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SetWorkspaceId
void SetWorkspaceId(Aws::String &&value)
Definition: ModifyWorkspacePropertiesRequest.h:56
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::WithWorkspaceId
ModifyWorkspacePropertiesRequest & WithWorkspaceId(Aws::String &&value)
Definition: ModifyWorkspacePropertiesRequest.h:71
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SetWorkspaceId
void SetWorkspaceId(const char *value)
Definition: ModifyWorkspacePropertiesRequest.h:61
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SetWorkspaceId
void SetWorkspaceId(const Aws::String &value)
Definition: ModifyWorkspacePropertiesRequest.h:51
AWSString.h
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::ModifyWorkspacePropertiesRequest
ModifyWorkspacePropertiesRequest()
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyWorkspacePropertiesRequest.h:31
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::ModifyWorkspacePropertiesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::WorkspaceProperties
Definition: WorkspaceProperties.h:33