AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GetDevicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace NetworkManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKMANAGER_API GetDevicesRequest() = default;
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 "GetDevices"; }
32
33 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
42 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
43 template <typename GlobalNetworkIdT = Aws::String>
44 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
45 m_globalNetworkIdHasBeenSet = true;
46 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
47 }
48 template <typename GlobalNetworkIdT = Aws::String>
49 GetDevicesRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
50 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetDeviceIds() const { return m_deviceIds; }
60 inline bool DeviceIdsHasBeenSet() const { return m_deviceIdsHasBeenSet; }
61 template <typename DeviceIdsT = Aws::Vector<Aws::String>>
62 void SetDeviceIds(DeviceIdsT&& value) {
63 m_deviceIdsHasBeenSet = true;
64 m_deviceIds = std::forward<DeviceIdsT>(value);
65 }
66 template <typename DeviceIdsT = Aws::Vector<Aws::String>>
67 GetDevicesRequest& WithDeviceIds(DeviceIdsT&& value) {
68 SetDeviceIds(std::forward<DeviceIdsT>(value));
69 return *this;
70 }
71 template <typename DeviceIdsT = Aws::String>
72 GetDevicesRequest& AddDeviceIds(DeviceIdsT&& value) {
73 m_deviceIdsHasBeenSet = true;
74 m_deviceIds.emplace_back(std::forward<DeviceIdsT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetSiteId() const { return m_siteId; }
84 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
85 template <typename SiteIdT = Aws::String>
86 void SetSiteId(SiteIdT&& value) {
87 m_siteIdHasBeenSet = true;
88 m_siteId = std::forward<SiteIdT>(value);
89 }
90 template <typename SiteIdT = Aws::String>
91 GetDevicesRequest& WithSiteId(SiteIdT&& value) {
92 SetSiteId(std::forward<SiteIdT>(value));
93 return *this;
94 }
96
98
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) {
104 m_maxResultsHasBeenSet = true;
105 m_maxResults = value;
106 }
108 SetMaxResults(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
125 GetDevicesRequest& WithNextToken(NextTokenT&& value) {
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_globalNetworkId;
132
133 Aws::Vector<Aws::String> m_deviceIds;
134
135 Aws::String m_siteId;
136
137 int m_maxResults{0};
138
139 Aws::String m_nextToken;
140 bool m_globalNetworkIdHasBeenSet = false;
141 bool m_deviceIdsHasBeenSet = false;
142 bool m_siteIdHasBeenSet = false;
143 bool m_maxResultsHasBeenSet = false;
144 bool m_nextTokenHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace NetworkManager
149} // namespace Aws
AWS_NETWORKMANAGER_API GetDevicesRequest()=default
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
virtual const char * GetServiceRequestName() const override
GetDevicesRequest & AddDeviceIds(DeviceIdsT &&value)
GetDevicesRequest & WithMaxResults(int value)
GetDevicesRequest & WithNextToken(NextTokenT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
GetDevicesRequest & WithDeviceIds(DeviceIdsT &&value)
GetDevicesRequest & WithSiteId(SiteIdT &&value)
const Aws::Vector< Aws::String > & GetDeviceIds() const
GetDevicesRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector