AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDevicesRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace NetworkManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_NETWORKMANAGER_API GetDevicesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetDevices"; }
36
37 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
38
39 AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
47 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
48 template<typename GlobalNetworkIdT = Aws::String>
49 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
50 template<typename GlobalNetworkIdT = Aws::String>
51 GetDevicesRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetDeviceIds() const { return m_deviceIds; }
59 inline bool DeviceIdsHasBeenSet() const { return m_deviceIdsHasBeenSet; }
60 template<typename DeviceIdsT = Aws::Vector<Aws::String>>
61 void SetDeviceIds(DeviceIdsT&& value) { m_deviceIdsHasBeenSet = true; m_deviceIds = std::forward<DeviceIdsT>(value); }
62 template<typename DeviceIdsT = Aws::Vector<Aws::String>>
63 GetDevicesRequest& WithDeviceIds(DeviceIdsT&& value) { SetDeviceIds(std::forward<DeviceIdsT>(value)); return *this;}
64 template<typename DeviceIdsT = Aws::String>
65 GetDevicesRequest& AddDeviceIds(DeviceIdsT&& value) { m_deviceIdsHasBeenSet = true; m_deviceIds.emplace_back(std::forward<DeviceIdsT>(value)); return *this; }
67
69
72 inline const Aws::String& GetSiteId() const { return m_siteId; }
73 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
74 template<typename SiteIdT = Aws::String>
75 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
76 template<typename SiteIdT = Aws::String>
77 GetDevicesRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
79
81
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline GetDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 GetDevicesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101 private:
102
103 Aws::String m_globalNetworkId;
104 bool m_globalNetworkIdHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_deviceIds;
107 bool m_deviceIdsHasBeenSet = false;
108
109 Aws::String m_siteId;
110 bool m_siteIdHasBeenSet = false;
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_nextToken;
116 bool m_nextTokenHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace NetworkManager
121} // 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