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