AWS SDK for C++  1.9.123
AWS SDK for C++
StopWorkspacesRequest.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 "StopWorkspaces"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<StopRequest>& GetStopWorkspaceRequests() const{ return m_stopWorkspaceRequests; }
42 
46  inline bool StopWorkspaceRequestsHasBeenSet() const { return m_stopWorkspaceRequestsHasBeenSet; }
47 
51  inline void SetStopWorkspaceRequests(const Aws::Vector<StopRequest>& value) { m_stopWorkspaceRequestsHasBeenSet = true; m_stopWorkspaceRequests = value; }
52 
56  inline void SetStopWorkspaceRequests(Aws::Vector<StopRequest>&& value) { m_stopWorkspaceRequestsHasBeenSet = true; m_stopWorkspaceRequests = std::move(value); }
57 
61  inline StopWorkspacesRequest& WithStopWorkspaceRequests(const Aws::Vector<StopRequest>& value) { SetStopWorkspaceRequests(value); return *this;}
62 
66  inline StopWorkspacesRequest& WithStopWorkspaceRequests(Aws::Vector<StopRequest>&& value) { SetStopWorkspaceRequests(std::move(value)); return *this;}
67 
71  inline StopWorkspacesRequest& AddStopWorkspaceRequests(const StopRequest& value) { m_stopWorkspaceRequestsHasBeenSet = true; m_stopWorkspaceRequests.push_back(value); return *this; }
72 
76  inline StopWorkspacesRequest& AddStopWorkspaceRequests(StopRequest&& value) { m_stopWorkspaceRequestsHasBeenSet = true; m_stopWorkspaceRequests.push_back(std::move(value)); return *this; }
77 
78  private:
79 
80  Aws::Vector<StopRequest> m_stopWorkspaceRequests;
81  bool m_stopWorkspaceRequestsHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace WorkSpaces
86 } // namespace Aws
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::StopWorkspacesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::WorkSpaces::Model::StopRequest
Definition: StopRequest.h:33
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::StopWorkspacesRequest::SetStopWorkspaceRequests
void SetStopWorkspaceRequests(const Aws::Vector< StopRequest > &value)
Definition: StopWorkspacesRequest.h:51
Aws::WorkSpaces::Model::StopWorkspacesRequest
Definition: StopWorkspacesRequest.h:23
Aws::WorkSpaces::Model::StopWorkspacesRequest::SetStopWorkspaceRequests
void SetStopWorkspaceRequests(Aws::Vector< StopRequest > &&value)
Definition: StopWorkspacesRequest.h:56
Aws::WorkSpaces::Model::StopWorkspacesRequest::StopWorkspaceRequestsHasBeenSet
bool StopWorkspaceRequestsHasBeenSet() const
Definition: StopWorkspacesRequest.h:46
Aws::WorkSpaces::Model::StopWorkspacesRequest::WithStopWorkspaceRequests
StopWorkspacesRequest & WithStopWorkspaceRequests(Aws::Vector< StopRequest > &&value)
Definition: StopWorkspacesRequest.h:66
Aws::WorkSpaces::Model::StopWorkspacesRequest::StopWorkspacesRequest
StopWorkspacesRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::StopWorkspacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopWorkspacesRequest.h:31
AWSVector.h
Aws::WorkSpaces::Model::StopWorkspacesRequest::AddStopWorkspaceRequests
StopWorkspacesRequest & AddStopWorkspaceRequests(const StopRequest &value)
Definition: StopWorkspacesRequest.h:71
Aws::WorkSpaces::Model::StopWorkspacesRequest::WithStopWorkspaceRequests
StopWorkspacesRequest & WithStopWorkspaceRequests(const Aws::Vector< StopRequest > &value)
Definition: StopWorkspacesRequest.h:61
Aws
Definition: AccessManagementClient.h:15
StopRequest.h
Aws::WorkSpaces::Model::StopWorkspacesRequest::AddStopWorkspaceRequests
StopWorkspacesRequest & AddStopWorkspaceRequests(StopRequest &&value)
Definition: StopWorkspacesRequest.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::StopWorkspacesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkSpaces::Model::StopWorkspacesRequest::GetStopWorkspaceRequests
const Aws::Vector< StopRequest > & GetStopWorkspaceRequests() const
Definition: StopWorkspacesRequest.h:41