AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GetLinksRequest.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 GetLinksRequest() = 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 "GetLinks"; }
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 GetLinksRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
50 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetLinkIds() const { return m_linkIds; }
60 inline bool LinkIdsHasBeenSet() const { return m_linkIdsHasBeenSet; }
61 template <typename LinkIdsT = Aws::Vector<Aws::String>>
62 void SetLinkIds(LinkIdsT&& value) {
63 m_linkIdsHasBeenSet = true;
64 m_linkIds = std::forward<LinkIdsT>(value);
65 }
66 template <typename LinkIdsT = Aws::Vector<Aws::String>>
67 GetLinksRequest& WithLinkIds(LinkIdsT&& value) {
68 SetLinkIds(std::forward<LinkIdsT>(value));
69 return *this;
70 }
71 template <typename LinkIdsT = Aws::String>
72 GetLinksRequest& AddLinkIds(LinkIdsT&& value) {
73 m_linkIdsHasBeenSet = true;
74 m_linkIds.emplace_back(std::forward<LinkIdsT>(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 GetLinksRequest& WithSiteId(SiteIdT&& value) {
92 SetSiteId(std::forward<SiteIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 template <typename TypeT = Aws::String>
104 void SetType(TypeT&& value) {
105 m_typeHasBeenSet = true;
106 m_type = std::forward<TypeT>(value);
107 }
108 template <typename TypeT = Aws::String>
109 GetLinksRequest& WithType(TypeT&& value) {
110 SetType(std::forward<TypeT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetProvider() const { return m_provider; }
120 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
121 template <typename ProviderT = Aws::String>
122 void SetProvider(ProviderT&& value) {
123 m_providerHasBeenSet = true;
124 m_provider = std::forward<ProviderT>(value);
125 }
126 template <typename ProviderT = Aws::String>
127 GetLinksRequest& WithProvider(ProviderT&& value) {
128 SetProvider(std::forward<ProviderT>(value));
129 return *this;
130 }
132
134
137 inline int GetMaxResults() const { return m_maxResults; }
138 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
139 inline void SetMaxResults(int value) {
140 m_maxResultsHasBeenSet = true;
141 m_maxResults = value;
142 }
143 inline GetLinksRequest& WithMaxResults(int value) {
144 SetMaxResults(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetNextToken() const { return m_nextToken; }
154 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
155 template <typename NextTokenT = Aws::String>
156 void SetNextToken(NextTokenT&& value) {
157 m_nextTokenHasBeenSet = true;
158 m_nextToken = std::forward<NextTokenT>(value);
159 }
160 template <typename NextTokenT = Aws::String>
161 GetLinksRequest& WithNextToken(NextTokenT&& value) {
162 SetNextToken(std::forward<NextTokenT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_globalNetworkId;
168
169 Aws::Vector<Aws::String> m_linkIds;
170
171 Aws::String m_siteId;
172
173 Aws::String m_type;
174
175 Aws::String m_provider;
176
177 int m_maxResults{0};
178
179 Aws::String m_nextToken;
180 bool m_globalNetworkIdHasBeenSet = false;
181 bool m_linkIdsHasBeenSet = false;
182 bool m_siteIdHasBeenSet = false;
183 bool m_typeHasBeenSet = false;
184 bool m_providerHasBeenSet = false;
185 bool m_maxResultsHasBeenSet = false;
186 bool m_nextTokenHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace NetworkManager
191} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector