AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RebootWorkspacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/RebootRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkSpaces {
16namespace Model {
17
21 public:
22 AWS_WORKSPACES_API RebootWorkspacesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RebootWorkspaces"; }
29
30 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::Vector<RebootRequest>& GetRebootWorkspaceRequests() const { return m_rebootWorkspaceRequests; }
39 inline bool RebootWorkspaceRequestsHasBeenSet() const { return m_rebootWorkspaceRequestsHasBeenSet; }
40 template <typename RebootWorkspaceRequestsT = Aws::Vector<RebootRequest>>
41 void SetRebootWorkspaceRequests(RebootWorkspaceRequestsT&& value) {
42 m_rebootWorkspaceRequestsHasBeenSet = true;
43 m_rebootWorkspaceRequests = std::forward<RebootWorkspaceRequestsT>(value);
44 }
45 template <typename RebootWorkspaceRequestsT = Aws::Vector<RebootRequest>>
46 RebootWorkspacesRequest& WithRebootWorkspaceRequests(RebootWorkspaceRequestsT&& value) {
47 SetRebootWorkspaceRequests(std::forward<RebootWorkspaceRequestsT>(value));
48 return *this;
49 }
50 template <typename RebootWorkspaceRequestsT = RebootRequest>
51 RebootWorkspacesRequest& AddRebootWorkspaceRequests(RebootWorkspaceRequestsT&& value) {
52 m_rebootWorkspaceRequestsHasBeenSet = true;
53 m_rebootWorkspaceRequests.emplace_back(std::forward<RebootWorkspaceRequestsT>(value));
54 return *this;
55 }
57 private:
58 Aws::Vector<RebootRequest> m_rebootWorkspaceRequests;
59 bool m_rebootWorkspaceRequestsHasBeenSet = false;
60};
61
62} // namespace Model
63} // namespace WorkSpaces
64} // namespace Aws
void SetRebootWorkspaceRequests(RebootWorkspaceRequestsT &&value)
RebootWorkspacesRequest & AddRebootWorkspaceRequests(RebootWorkspaceRequestsT &&value)
virtual const char * GetServiceRequestName() const override
RebootWorkspacesRequest & WithRebootWorkspaceRequests(RebootWorkspaceRequestsT &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< RebootRequest > & GetRebootWorkspaceRequests() const
AWS_WORKSPACES_API RebootWorkspacesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector