AWS SDK for C++  1.8.71
AWS SDK for C++
GetLinkAssociationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace NetworkManager
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetLinkAssociations"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
45 
49  inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
50 
54  inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
55 
59  inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
60 
64  inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
65 
69  inline GetLinkAssociationsRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
70 
74  inline GetLinkAssociationsRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
75 
79  inline GetLinkAssociationsRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
80 
81 
85  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
86 
90  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
91 
95  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
96 
100  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
101 
105  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
106 
110  inline GetLinkAssociationsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
111 
115  inline GetLinkAssociationsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
116 
120  inline GetLinkAssociationsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
121 
122 
126  inline const Aws::String& GetLinkId() const{ return m_linkId; }
127 
131  inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
132 
136  inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
137 
141  inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
142 
146  inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
147 
151  inline GetLinkAssociationsRequest& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
152 
156  inline GetLinkAssociationsRequest& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
157 
161  inline GetLinkAssociationsRequest& WithLinkId(const char* value) { SetLinkId(value); return *this;}
162 
163 
167  inline int GetMaxResults() const{ return m_maxResults; }
168 
172  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
173 
177  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
178 
182  inline GetLinkAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
183 
184 
188  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
189 
193  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
194 
198  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
199 
203  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
204 
208  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
209 
213  inline GetLinkAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
214 
218  inline GetLinkAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
219 
223  inline GetLinkAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
224 
225  private:
226 
227  Aws::String m_globalNetworkId;
228  bool m_globalNetworkIdHasBeenSet;
229 
230  Aws::String m_deviceId;
231  bool m_deviceIdHasBeenSet;
232 
233  Aws::String m_linkId;
234  bool m_linkIdHasBeenSet;
235 
236  int m_maxResults;
237  bool m_maxResultsHasBeenSet;
238 
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace NetworkManager
245 } // namespace Aws
#define AWS_NETWORKMANAGER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97