AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetNetworkRoutesRequest.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/networkmanager/model/RouteTableIdentifier.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/networkmanager/model/RouteState.h>
14#include <aws/networkmanager/model/RouteType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace NetworkManager
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_NETWORKMANAGER_API GetNetworkRoutesRequest();
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 "GetNetworkRoutes"; }
36
37 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
45 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
46 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
47 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
48 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
49 inline GetNetworkRoutesRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
50 inline GetNetworkRoutesRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
51 inline GetNetworkRoutesRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
53
55
58 inline const RouteTableIdentifier& GetRouteTableIdentifier() const{ return m_routeTableIdentifier; }
59 inline bool RouteTableIdentifierHasBeenSet() const { return m_routeTableIdentifierHasBeenSet; }
60 inline void SetRouteTableIdentifier(const RouteTableIdentifier& value) { m_routeTableIdentifierHasBeenSet = true; m_routeTableIdentifier = value; }
61 inline void SetRouteTableIdentifier(RouteTableIdentifier&& value) { m_routeTableIdentifierHasBeenSet = true; m_routeTableIdentifier = std::move(value); }
65
67
70 inline const Aws::Vector<Aws::String>& GetExactCidrMatches() const{ return m_exactCidrMatches; }
71 inline bool ExactCidrMatchesHasBeenSet() const { return m_exactCidrMatchesHasBeenSet; }
72 inline void SetExactCidrMatches(const Aws::Vector<Aws::String>& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches = value; }
73 inline void SetExactCidrMatches(Aws::Vector<Aws::String>&& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches = std::move(value); }
76 inline GetNetworkRoutesRequest& AddExactCidrMatches(const Aws::String& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches.push_back(value); return *this; }
77 inline GetNetworkRoutesRequest& AddExactCidrMatches(Aws::String&& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches.push_back(std::move(value)); return *this; }
78 inline GetNetworkRoutesRequest& AddExactCidrMatches(const char* value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches.push_back(value); return *this; }
80
82
85 inline const Aws::Vector<Aws::String>& GetLongestPrefixMatches() const{ return m_longestPrefixMatches; }
86 inline bool LongestPrefixMatchesHasBeenSet() const { return m_longestPrefixMatchesHasBeenSet; }
87 inline void SetLongestPrefixMatches(const Aws::Vector<Aws::String>& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches = value; }
88 inline void SetLongestPrefixMatches(Aws::Vector<Aws::String>&& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches = std::move(value); }
91 inline GetNetworkRoutesRequest& AddLongestPrefixMatches(const Aws::String& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches.push_back(value); return *this; }
92 inline GetNetworkRoutesRequest& AddLongestPrefixMatches(Aws::String&& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches.push_back(std::move(value)); return *this; }
93 inline GetNetworkRoutesRequest& AddLongestPrefixMatches(const char* value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches.push_back(value); return *this; }
95
97
100 inline const Aws::Vector<Aws::String>& GetSubnetOfMatches() const{ return m_subnetOfMatches; }
101 inline bool SubnetOfMatchesHasBeenSet() const { return m_subnetOfMatchesHasBeenSet; }
102 inline void SetSubnetOfMatches(const Aws::Vector<Aws::String>& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches = value; }
103 inline void SetSubnetOfMatches(Aws::Vector<Aws::String>&& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches = std::move(value); }
106 inline GetNetworkRoutesRequest& AddSubnetOfMatches(const Aws::String& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches.push_back(value); return *this; }
107 inline GetNetworkRoutesRequest& AddSubnetOfMatches(Aws::String&& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches.push_back(std::move(value)); return *this; }
108 inline GetNetworkRoutesRequest& AddSubnetOfMatches(const char* value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches.push_back(value); return *this; }
110
112
116 inline const Aws::Vector<Aws::String>& GetSupernetOfMatches() const{ return m_supernetOfMatches; }
117 inline bool SupernetOfMatchesHasBeenSet() const { return m_supernetOfMatchesHasBeenSet; }
118 inline void SetSupernetOfMatches(const Aws::Vector<Aws::String>& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches = value; }
119 inline void SetSupernetOfMatches(Aws::Vector<Aws::String>&& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches = std::move(value); }
122 inline GetNetworkRoutesRequest& AddSupernetOfMatches(const Aws::String& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches.push_back(value); return *this; }
123 inline GetNetworkRoutesRequest& AddSupernetOfMatches(Aws::String&& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches.push_back(std::move(value)); return *this; }
124 inline GetNetworkRoutesRequest& AddSupernetOfMatches(const char* value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches.push_back(value); return *this; }
126
128
131 inline const Aws::Vector<Aws::String>& GetPrefixListIds() const{ return m_prefixListIds; }
132 inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; }
133 inline void SetPrefixListIds(const Aws::Vector<Aws::String>& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
134 inline void SetPrefixListIds(Aws::Vector<Aws::String>&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = std::move(value); }
136 inline GetNetworkRoutesRequest& WithPrefixListIds(Aws::Vector<Aws::String>&& value) { SetPrefixListIds(std::move(value)); return *this;}
137 inline GetNetworkRoutesRequest& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
138 inline GetNetworkRoutesRequest& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(std::move(value)); return *this; }
139 inline GetNetworkRoutesRequest& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
141
143
146 inline const Aws::Vector<RouteState>& GetStates() const{ return m_states; }
147 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
148 inline void SetStates(const Aws::Vector<RouteState>& value) { m_statesHasBeenSet = true; m_states = value; }
149 inline void SetStates(Aws::Vector<RouteState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
150 inline GetNetworkRoutesRequest& WithStates(const Aws::Vector<RouteState>& value) { SetStates(value); return *this;}
151 inline GetNetworkRoutesRequest& WithStates(Aws::Vector<RouteState>&& value) { SetStates(std::move(value)); return *this;}
152 inline GetNetworkRoutesRequest& AddStates(const RouteState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
153 inline GetNetworkRoutesRequest& AddStates(RouteState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
155
157
160 inline const Aws::Vector<RouteType>& GetTypes() const{ return m_types; }
161 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
162 inline void SetTypes(const Aws::Vector<RouteType>& value) { m_typesHasBeenSet = true; m_types = value; }
163 inline void SetTypes(Aws::Vector<RouteType>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
164 inline GetNetworkRoutesRequest& WithTypes(const Aws::Vector<RouteType>& value) { SetTypes(value); return *this;}
165 inline GetNetworkRoutesRequest& WithTypes(Aws::Vector<RouteType>&& value) { SetTypes(std::move(value)); return *this;}
166 inline GetNetworkRoutesRequest& AddTypes(const RouteType& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
167 inline GetNetworkRoutesRequest& AddTypes(RouteType&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
169
171
175 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetDestinationFilters() const{ return m_destinationFilters; }
176 inline bool DestinationFiltersHasBeenSet() const { return m_destinationFiltersHasBeenSet; }
177 inline void SetDestinationFilters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters = value; }
178 inline void SetDestinationFilters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters = std::move(value); }
181 inline GetNetworkRoutesRequest& AddDestinationFilters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(key, value); return *this; }
182 inline GetNetworkRoutesRequest& AddDestinationFilters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(std::move(key), value); return *this; }
183 inline GetNetworkRoutesRequest& AddDestinationFilters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(key, std::move(value)); return *this; }
184 inline GetNetworkRoutesRequest& AddDestinationFilters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(std::move(key), std::move(value)); return *this; }
185 inline GetNetworkRoutesRequest& AddDestinationFilters(const char* key, Aws::Vector<Aws::String>&& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(key, std::move(value)); return *this; }
186 inline GetNetworkRoutesRequest& AddDestinationFilters(const char* key, const Aws::Vector<Aws::String>& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(key, value); return *this; }
188 private:
189
190 Aws::String m_globalNetworkId;
191 bool m_globalNetworkIdHasBeenSet = false;
192
193 RouteTableIdentifier m_routeTableIdentifier;
194 bool m_routeTableIdentifierHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_exactCidrMatches;
197 bool m_exactCidrMatchesHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_longestPrefixMatches;
200 bool m_longestPrefixMatchesHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_subnetOfMatches;
203 bool m_subnetOfMatchesHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_supernetOfMatches;
206 bool m_supernetOfMatchesHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_prefixListIds;
209 bool m_prefixListIdsHasBeenSet = false;
210
212 bool m_statesHasBeenSet = false;
213
215 bool m_typesHasBeenSet = false;
216
218 bool m_destinationFiltersHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace NetworkManager
223} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetOfMatches() const
GetNetworkRoutesRequest & AddDestinationFilters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & WithGlobalNetworkId(Aws::String &&value)
GetNetworkRoutesRequest & AddSubnetOfMatches(const char *value)
void SetExactCidrMatches(const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & AddLongestPrefixMatches(const char *value)
GetNetworkRoutesRequest & WithLongestPrefixMatches(const Aws::Vector< Aws::String > &value)
void SetStates(const Aws::Vector< RouteState > &value)
GetNetworkRoutesRequest & WithExactCidrMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & AddSupernetOfMatches(const Aws::String &value)
GetNetworkRoutesRequest & AddLongestPrefixMatches(const Aws::String &value)
void SetSubnetOfMatches(const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & AddStates(RouteState &&value)
GetNetworkRoutesRequest & AddDestinationFilters(const char *key, Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & WithRouteTableIdentifier(RouteTableIdentifier &&value)
void SetSubnetOfMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & WithExactCidrMatches(const Aws::Vector< Aws::String > &value)
void SetLongestPrefixMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & AddPrefixListIds(Aws::String &&value)
void SetPrefixListIds(const Aws::Vector< Aws::String > &value)
void SetDestinationFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
GetNetworkRoutesRequest & WithTypes(Aws::Vector< RouteType > &&value)
GetNetworkRoutesRequest & AddPrefixListIds(const char *value)
GetNetworkRoutesRequest & AddTypes(RouteType &&value)
GetNetworkRoutesRequest & WithSupernetOfMatches(const Aws::Vector< Aws::String > &value)
void SetSupernetOfMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & AddDestinationFilters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & WithSubnetOfMatches(const Aws::Vector< Aws::String > &value)
const Aws::Vector< RouteState > & GetStates() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetDestinationFilters() const
const Aws::Vector< Aws::String > & GetSupernetOfMatches() const
void SetPrefixListIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetLongestPrefixMatches() const
GetNetworkRoutesRequest & WithLongestPrefixMatches(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
GetNetworkRoutesRequest & AddPrefixListIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetExactCidrMatches() const
GetNetworkRoutesRequest & AddSubnetOfMatches(Aws::String &&value)
GetNetworkRoutesRequest & WithSupernetOfMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & AddDestinationFilters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & AddSubnetOfMatches(const Aws::String &value)
const RouteTableIdentifier & GetRouteTableIdentifier() const
void SetTypes(const Aws::Vector< RouteType > &value)
GetNetworkRoutesRequest & WithStates(Aws::Vector< RouteState > &&value)
void SetSupernetOfMatches(const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & AddDestinationFilters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
const Aws::Vector< RouteType > & GetTypes() const
void SetRouteTableIdentifier(const RouteTableIdentifier &value)
GetNetworkRoutesRequest & AddSupernetOfMatches(const char *value)
GetNetworkRoutesRequest & WithStates(const Aws::Vector< RouteState > &value)
GetNetworkRoutesRequest & WithGlobalNetworkId(const char *value)
GetNetworkRoutesRequest & WithDestinationFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetNetworkRoutesRequest & WithRouteTableIdentifier(const RouteTableIdentifier &value)
GetNetworkRoutesRequest & WithTypes(const Aws::Vector< RouteType > &value)
GetNetworkRoutesRequest & WithGlobalNetworkId(const Aws::String &value)
GetNetworkRoutesRequest & AddExactCidrMatches(const char *value)
void SetExactCidrMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & WithSubnetOfMatches(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & WithPrefixListIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPrefixListIds() const
void SetLongestPrefixMatches(const Aws::Vector< Aws::String > &value)
GetNetworkRoutesRequest & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
GetNetworkRoutesRequest & AddLongestPrefixMatches(Aws::String &&value)
GetNetworkRoutesRequest & WithDestinationFilters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
GetNetworkRoutesRequest & AddExactCidrMatches(const Aws::String &value)
GetNetworkRoutesRequest & AddExactCidrMatches(Aws::String &&value)
GetNetworkRoutesRequest & AddDestinationFilters(const char *key, const Aws::Vector< Aws::String > &value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
void SetDestinationFilters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetNetworkRoutesRequest & AddTypes(const RouteType &value)
GetNetworkRoutesRequest & AddStates(const RouteState &value)
GetNetworkRoutesRequest & AddSupernetOfMatches(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector