AWS SDK for C++  1.9.123
AWS SDK for C++
CreateWorkspacesRequest.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 "CreateWorkspaces"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<WorkspaceRequest>& GetWorkspaces() const{ return m_workspaces; }
42 
46  inline bool WorkspacesHasBeenSet() const { return m_workspacesHasBeenSet; }
47 
51  inline void SetWorkspaces(const Aws::Vector<WorkspaceRequest>& value) { m_workspacesHasBeenSet = true; m_workspaces = value; }
52 
56  inline void SetWorkspaces(Aws::Vector<WorkspaceRequest>&& value) { m_workspacesHasBeenSet = true; m_workspaces = std::move(value); }
57 
61  inline CreateWorkspacesRequest& WithWorkspaces(const Aws::Vector<WorkspaceRequest>& value) { SetWorkspaces(value); return *this;}
62 
66  inline CreateWorkspacesRequest& WithWorkspaces(Aws::Vector<WorkspaceRequest>&& value) { SetWorkspaces(std::move(value)); return *this;}
67 
71  inline CreateWorkspacesRequest& AddWorkspaces(const WorkspaceRequest& value) { m_workspacesHasBeenSet = true; m_workspaces.push_back(value); return *this; }
72 
76  inline CreateWorkspacesRequest& AddWorkspaces(WorkspaceRequest&& value) { m_workspacesHasBeenSet = true; m_workspaces.push_back(std::move(value)); return *this; }
77 
78  private:
79 
80  Aws::Vector<WorkspaceRequest> m_workspaces;
81  bool m_workspacesHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace WorkSpaces
86 } // namespace Aws
WorkSpaces_EXPORTS.h
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
Aws::WorkSpaces::Model::WorkspaceRequest
Definition: WorkspaceRequest.h:36
WorkSpacesRequest.h
Aws::WorkSpaces::Model::CreateWorkspacesRequest::GetWorkspaces
const Aws::Vector< WorkspaceRequest > & GetWorkspaces() const
Definition: CreateWorkspacesRequest.h:41
Aws::WorkSpaces::Model::CreateWorkspacesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::CreateWorkspacesRequest::WithWorkspaces
CreateWorkspacesRequest & WithWorkspaces(const Aws::Vector< WorkspaceRequest > &value)
Definition: CreateWorkspacesRequest.h:61
WorkspaceRequest.h
Aws::WorkSpaces::Model::CreateWorkspacesRequest::WithWorkspaces
CreateWorkspacesRequest & WithWorkspaces(Aws::Vector< WorkspaceRequest > &&value)
Definition: CreateWorkspacesRequest.h:66
AWSVector.h
Aws::WorkSpaces::Model::CreateWorkspacesRequest::AddWorkspaces
CreateWorkspacesRequest & AddWorkspaces(WorkspaceRequest &&value)
Definition: CreateWorkspacesRequest.h:76
Aws::WorkSpaces::Model::CreateWorkspacesRequest
Definition: CreateWorkspacesRequest.h:23
Aws::WorkSpaces::Model::CreateWorkspacesRequest::SetWorkspaces
void SetWorkspaces(Aws::Vector< WorkspaceRequest > &&value)
Definition: CreateWorkspacesRequest.h:56
Aws::WorkSpaces::Model::CreateWorkspacesRequest::AddWorkspaces
CreateWorkspacesRequest & AddWorkspaces(const WorkspaceRequest &value)
Definition: CreateWorkspacesRequest.h:71
Aws::WorkSpaces::Model::CreateWorkspacesRequest::CreateWorkspacesRequest
CreateWorkspacesRequest()
Aws::WorkSpaces::Model::CreateWorkspacesRequest::SetWorkspaces
void SetWorkspaces(const Aws::Vector< WorkspaceRequest > &value)
Definition: CreateWorkspacesRequest.h:51
Aws::WorkSpaces::Model::CreateWorkspacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWorkspacesRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::CreateWorkspacesRequest::WorkspacesHasBeenSet
bool WorkspacesHasBeenSet() const
Definition: CreateWorkspacesRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::CreateWorkspacesRequest::SerializePayload
Aws::String SerializePayload() const override