AWS SDK for C++  1.9.123
AWS SDK for C++
RebootWorkspacesRequest.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 "RebootWorkspaces"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<RebootRequest>& GetRebootWorkspaceRequests() const{ return m_rebootWorkspaceRequests; }
42 
46  inline bool RebootWorkspaceRequestsHasBeenSet() const { return m_rebootWorkspaceRequestsHasBeenSet; }
47 
51  inline void SetRebootWorkspaceRequests(const Aws::Vector<RebootRequest>& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = value; }
52 
56  inline void SetRebootWorkspaceRequests(Aws::Vector<RebootRequest>&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = std::move(value); }
57 
61  inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(const Aws::Vector<RebootRequest>& value) { SetRebootWorkspaceRequests(value); return *this;}
62 
66  inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(Aws::Vector<RebootRequest>&& value) { SetRebootWorkspaceRequests(std::move(value)); return *this;}
67 
71  inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(const RebootRequest& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(value); return *this; }
72 
76  inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(RebootRequest&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(std::move(value)); return *this; }
77 
78  private:
79 
80  Aws::Vector<RebootRequest> m_rebootWorkspaceRequests;
81  bool m_rebootWorkspaceRequestsHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace WorkSpaces
86 } // namespace Aws
Aws::WorkSpaces::Model::RebootWorkspacesRequest::AddRebootWorkspaceRequests
RebootWorkspacesRequest & AddRebootWorkspaceRequests(RebootRequest &&value)
Definition: RebootWorkspacesRequest.h:76
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
WorkSpacesRequest.h
Aws::WorkSpaces::Model::RebootRequest
Definition: RebootRequest.h:33
Aws::WorkSpaces::Model::RebootWorkspacesRequest::AddRebootWorkspaceRequests
RebootWorkspacesRequest & AddRebootWorkspaceRequests(const RebootRequest &value)
Definition: RebootWorkspacesRequest.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::RebootWorkspacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RebootWorkspacesRequest.h:31
AWSVector.h
Aws::WorkSpaces::Model::RebootWorkspacesRequest::RebootWorkspaceRequestsHasBeenSet
bool RebootWorkspaceRequestsHasBeenSet() const
Definition: RebootWorkspacesRequest.h:46
Aws::WorkSpaces::Model::RebootWorkspacesRequest::GetRebootWorkspaceRequests
const Aws::Vector< RebootRequest > & GetRebootWorkspaceRequests() const
Definition: RebootWorkspacesRequest.h:41
RebootRequest.h
Aws::WorkSpaces::Model::RebootWorkspacesRequest
Definition: RebootWorkspacesRequest.h:23
Aws::WorkSpaces::Model::RebootWorkspacesRequest::WithRebootWorkspaceRequests
RebootWorkspacesRequest & WithRebootWorkspaceRequests(Aws::Vector< RebootRequest > &&value)
Definition: RebootWorkspacesRequest.h:66
Aws::WorkSpaces::Model::RebootWorkspacesRequest::RebootWorkspacesRequest
RebootWorkspacesRequest()
Aws::WorkSpaces::Model::RebootWorkspacesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::Model::RebootWorkspacesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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::RebootWorkspacesRequest::SetRebootWorkspaceRequests
void SetRebootWorkspaceRequests(Aws::Vector< RebootRequest > &&value)
Definition: RebootWorkspacesRequest.h:56
Aws::WorkSpaces::Model::RebootWorkspacesRequest::WithRebootWorkspaceRequests
RebootWorkspacesRequest & WithRebootWorkspaceRequests(const Aws::Vector< RebootRequest > &value)
Definition: RebootWorkspacesRequest.h:61
Aws::WorkSpaces::Model::RebootWorkspacesRequest::SetRebootWorkspaceRequests
void SetRebootWorkspaceRequests(const Aws::Vector< RebootRequest > &value)
Definition: RebootWorkspacesRequest.h:51