AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
49 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
50 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
51 inline GetDevicesRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
52 inline GetDevicesRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
53 inline GetDevicesRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetDeviceIds() const{ return m_deviceIds; }
61 inline bool DeviceIdsHasBeenSet() const { return m_deviceIdsHasBeenSet; }
62 inline void SetDeviceIds(const Aws::Vector<Aws::String>& value) { m_deviceIdsHasBeenSet = true; m_deviceIds = value; }
63 inline void SetDeviceIds(Aws::Vector<Aws::String>&& value) { m_deviceIdsHasBeenSet = true; m_deviceIds = std::move(value); }
64 inline GetDevicesRequest& WithDeviceIds(const Aws::Vector<Aws::String>& value) { SetDeviceIds(value); return *this;}
65 inline GetDevicesRequest& WithDeviceIds(Aws::Vector<Aws::String>&& value) { SetDeviceIds(std::move(value)); return *this;}
66 inline GetDevicesRequest& AddDeviceIds(const Aws::String& value) { m_deviceIdsHasBeenSet = true; m_deviceIds.push_back(value); return *this; }
67 inline GetDevicesRequest& AddDeviceIds(Aws::String&& value) { m_deviceIdsHasBeenSet = true; m_deviceIds.push_back(std::move(value)); return *this; }
68 inline GetDevicesRequest& AddDeviceIds(const char* value) { m_deviceIdsHasBeenSet = true; m_deviceIds.push_back(value); return *this; }
70
72
75 inline const Aws::String& GetSiteId() const{ return m_siteId; }
76 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
77 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
78 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
79 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
80 inline GetDevicesRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
81 inline GetDevicesRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
82 inline GetDevicesRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;}
84
86
89 inline int GetMaxResults() const{ return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline GetDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94
96
99 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
103 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 inline GetDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 inline GetDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 inline GetDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108 private:
109
110 Aws::String m_globalNetworkId;
111 bool m_globalNetworkIdHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_deviceIds;
114 bool m_deviceIdsHasBeenSet = false;
115
116 Aws::String m_siteId;
117 bool m_siteIdHasBeenSet = false;
118
119 int m_maxResults;
120 bool m_maxResultsHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace NetworkManager
128} // namespace Aws
void SetDeviceIds(const Aws::Vector< Aws::String > &value)
void SetDeviceIds(Aws::Vector< Aws::String > &&value)
GetDevicesRequest & WithNextToken(const char *value)
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetDevicesRequest & WithSiteId(const char *value)
GetDevicesRequest & WithSiteId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetDevicesRequest & WithGlobalNetworkId(const Aws::String &value)
GetDevicesRequest & WithDeviceIds(const Aws::Vector< Aws::String > &value)
GetDevicesRequest & AddDeviceIds(const char *value)
GetDevicesRequest & WithMaxResults(int value)
GetDevicesRequest & WithGlobalNetworkId(Aws::String &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
GetDevicesRequest & AddDeviceIds(Aws::String &&value)
GetDevicesRequest & WithDeviceIds(Aws::Vector< Aws::String > &&value)
GetDevicesRequest & WithSiteId(Aws::String &&value)
void SetGlobalNetworkId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDeviceIds() const
GetDevicesRequest & WithNextToken(Aws::String &&value)
GetDevicesRequest & WithNextToken(const Aws::String &value)
GetDevicesRequest & AddDeviceIds(const Aws::String &value)
GetDevicesRequest & WithGlobalNetworkId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector