AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetConnectionsRequest.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 GetConnectionsRequest() = 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 "GetConnections"; }
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 GetConnectionsRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetConnectionIds() const { return m_connectionIds; }
59 inline bool ConnectionIdsHasBeenSet() const { return m_connectionIdsHasBeenSet; }
60 template<typename ConnectionIdsT = Aws::Vector<Aws::String>>
61 void SetConnectionIds(ConnectionIdsT&& value) { m_connectionIdsHasBeenSet = true; m_connectionIds = std::forward<ConnectionIdsT>(value); }
62 template<typename ConnectionIdsT = Aws::Vector<Aws::String>>
63 GetConnectionsRequest& WithConnectionIds(ConnectionIdsT&& value) { SetConnectionIds(std::forward<ConnectionIdsT>(value)); return *this;}
64 template<typename ConnectionIdsT = Aws::String>
65 GetConnectionsRequest& AddConnectionIds(ConnectionIdsT&& value) { m_connectionIdsHasBeenSet = true; m_connectionIds.emplace_back(std::forward<ConnectionIdsT>(value)); return *this; }
67
69
72 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
73 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
74 template<typename DeviceIdT = Aws::String>
75 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
76 template<typename DeviceIdT = Aws::String>
77 GetConnectionsRequest& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(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 GetConnectionsRequest& 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 GetConnectionsRequest& 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_connectionIds;
107 bool m_connectionIdsHasBeenSet = false;
108
109 Aws::String m_deviceId;
110 bool m_deviceIdHasBeenSet = 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
GetConnectionsRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
GetConnectionsRequest & WithConnectionIds(ConnectionIdsT &&value)
GetConnectionsRequest & WithNextToken(NextTokenT &&value)
GetConnectionsRequest & WithDeviceId(DeviceIdT &&value)
AWS_NETWORKMANAGER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetConnectionsRequest & AddConnectionIds(ConnectionIdsT &&value)
const Aws::Vector< Aws::String > & GetConnectionIds() const
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
AWS_NETWORKMANAGER_API GetConnectionsRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector