AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename GlobalNetworkIdT = Aws::String>
47 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
48 template<typename GlobalNetworkIdT = Aws::String>
49 GetNetworkRoutesRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
51
53
56 inline const RouteTableIdentifier& GetRouteTableIdentifier() const { return m_routeTableIdentifier; }
57 inline bool RouteTableIdentifierHasBeenSet() const { return m_routeTableIdentifierHasBeenSet; }
58 template<typename RouteTableIdentifierT = RouteTableIdentifier>
59 void SetRouteTableIdentifier(RouteTableIdentifierT&& value) { m_routeTableIdentifierHasBeenSet = true; m_routeTableIdentifier = std::forward<RouteTableIdentifierT>(value); }
60 template<typename RouteTableIdentifierT = RouteTableIdentifier>
61 GetNetworkRoutesRequest& WithRouteTableIdentifier(RouteTableIdentifierT&& value) { SetRouteTableIdentifier(std::forward<RouteTableIdentifierT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetExactCidrMatches() const { return m_exactCidrMatches; }
69 inline bool ExactCidrMatchesHasBeenSet() const { return m_exactCidrMatchesHasBeenSet; }
70 template<typename ExactCidrMatchesT = Aws::Vector<Aws::String>>
71 void SetExactCidrMatches(ExactCidrMatchesT&& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches = std::forward<ExactCidrMatchesT>(value); }
72 template<typename ExactCidrMatchesT = Aws::Vector<Aws::String>>
73 GetNetworkRoutesRequest& WithExactCidrMatches(ExactCidrMatchesT&& value) { SetExactCidrMatches(std::forward<ExactCidrMatchesT>(value)); return *this;}
74 template<typename ExactCidrMatchesT = Aws::String>
75 GetNetworkRoutesRequest& AddExactCidrMatches(ExactCidrMatchesT&& value) { m_exactCidrMatchesHasBeenSet = true; m_exactCidrMatches.emplace_back(std::forward<ExactCidrMatchesT>(value)); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetLongestPrefixMatches() const { return m_longestPrefixMatches; }
83 inline bool LongestPrefixMatchesHasBeenSet() const { return m_longestPrefixMatchesHasBeenSet; }
84 template<typename LongestPrefixMatchesT = Aws::Vector<Aws::String>>
85 void SetLongestPrefixMatches(LongestPrefixMatchesT&& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches = std::forward<LongestPrefixMatchesT>(value); }
86 template<typename LongestPrefixMatchesT = Aws::Vector<Aws::String>>
87 GetNetworkRoutesRequest& WithLongestPrefixMatches(LongestPrefixMatchesT&& value) { SetLongestPrefixMatches(std::forward<LongestPrefixMatchesT>(value)); return *this;}
88 template<typename LongestPrefixMatchesT = Aws::String>
89 GetNetworkRoutesRequest& AddLongestPrefixMatches(LongestPrefixMatchesT&& value) { m_longestPrefixMatchesHasBeenSet = true; m_longestPrefixMatches.emplace_back(std::forward<LongestPrefixMatchesT>(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetSubnetOfMatches() const { return m_subnetOfMatches; }
97 inline bool SubnetOfMatchesHasBeenSet() const { return m_subnetOfMatchesHasBeenSet; }
98 template<typename SubnetOfMatchesT = Aws::Vector<Aws::String>>
99 void SetSubnetOfMatches(SubnetOfMatchesT&& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches = std::forward<SubnetOfMatchesT>(value); }
100 template<typename SubnetOfMatchesT = Aws::Vector<Aws::String>>
101 GetNetworkRoutesRequest& WithSubnetOfMatches(SubnetOfMatchesT&& value) { SetSubnetOfMatches(std::forward<SubnetOfMatchesT>(value)); return *this;}
102 template<typename SubnetOfMatchesT = Aws::String>
103 GetNetworkRoutesRequest& AddSubnetOfMatches(SubnetOfMatchesT&& value) { m_subnetOfMatchesHasBeenSet = true; m_subnetOfMatches.emplace_back(std::forward<SubnetOfMatchesT>(value)); return *this; }
105
107
111 inline const Aws::Vector<Aws::String>& GetSupernetOfMatches() const { return m_supernetOfMatches; }
112 inline bool SupernetOfMatchesHasBeenSet() const { return m_supernetOfMatchesHasBeenSet; }
113 template<typename SupernetOfMatchesT = Aws::Vector<Aws::String>>
114 void SetSupernetOfMatches(SupernetOfMatchesT&& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches = std::forward<SupernetOfMatchesT>(value); }
115 template<typename SupernetOfMatchesT = Aws::Vector<Aws::String>>
116 GetNetworkRoutesRequest& WithSupernetOfMatches(SupernetOfMatchesT&& value) { SetSupernetOfMatches(std::forward<SupernetOfMatchesT>(value)); return *this;}
117 template<typename SupernetOfMatchesT = Aws::String>
118 GetNetworkRoutesRequest& AddSupernetOfMatches(SupernetOfMatchesT&& value) { m_supernetOfMatchesHasBeenSet = true; m_supernetOfMatches.emplace_back(std::forward<SupernetOfMatchesT>(value)); return *this; }
120
122
125 inline const Aws::Vector<Aws::String>& GetPrefixListIds() const { return m_prefixListIds; }
126 inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; }
127 template<typename PrefixListIdsT = Aws::Vector<Aws::String>>
128 void SetPrefixListIds(PrefixListIdsT&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = std::forward<PrefixListIdsT>(value); }
129 template<typename PrefixListIdsT = Aws::Vector<Aws::String>>
130 GetNetworkRoutesRequest& WithPrefixListIds(PrefixListIdsT&& value) { SetPrefixListIds(std::forward<PrefixListIdsT>(value)); return *this;}
131 template<typename PrefixListIdsT = Aws::String>
132 GetNetworkRoutesRequest& AddPrefixListIds(PrefixListIdsT&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.emplace_back(std::forward<PrefixListIdsT>(value)); return *this; }
134
136
139 inline const Aws::Vector<RouteState>& GetStates() const { return m_states; }
140 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
141 template<typename StatesT = Aws::Vector<RouteState>>
142 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
143 template<typename StatesT = Aws::Vector<RouteState>>
144 GetNetworkRoutesRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
145 inline GetNetworkRoutesRequest& AddStates(RouteState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
147
149
152 inline const Aws::Vector<RouteType>& GetTypes() const { return m_types; }
153 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
154 template<typename TypesT = Aws::Vector<RouteType>>
155 void SetTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types = std::forward<TypesT>(value); }
156 template<typename TypesT = Aws::Vector<RouteType>>
157 GetNetworkRoutesRequest& WithTypes(TypesT&& value) { SetTypes(std::forward<TypesT>(value)); return *this;}
158 inline GetNetworkRoutesRequest& AddTypes(RouteType value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
160
162
166 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetDestinationFilters() const { return m_destinationFilters; }
167 inline bool DestinationFiltersHasBeenSet() const { return m_destinationFiltersHasBeenSet; }
168 template<typename DestinationFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
169 void SetDestinationFilters(DestinationFiltersT&& value) { m_destinationFiltersHasBeenSet = true; m_destinationFilters = std::forward<DestinationFiltersT>(value); }
170 template<typename DestinationFiltersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
171 GetNetworkRoutesRequest& WithDestinationFilters(DestinationFiltersT&& value) { SetDestinationFilters(std::forward<DestinationFiltersT>(value)); return *this;}
172 template<typename DestinationFiltersKeyT = Aws::String, typename DestinationFiltersValueT = Aws::Vector<Aws::String>>
173 GetNetworkRoutesRequest& AddDestinationFilters(DestinationFiltersKeyT&& key, DestinationFiltersValueT&& value) {
174 m_destinationFiltersHasBeenSet = true; m_destinationFilters.emplace(std::forward<DestinationFiltersKeyT>(key), std::forward<DestinationFiltersValueT>(value)); return *this;
175 }
177 private:
178
179 Aws::String m_globalNetworkId;
180 bool m_globalNetworkIdHasBeenSet = false;
181
182 RouteTableIdentifier m_routeTableIdentifier;
183 bool m_routeTableIdentifierHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_exactCidrMatches;
186 bool m_exactCidrMatchesHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_longestPrefixMatches;
189 bool m_longestPrefixMatchesHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_subnetOfMatches;
192 bool m_subnetOfMatchesHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_supernetOfMatches;
195 bool m_supernetOfMatchesHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_prefixListIds;
198 bool m_prefixListIdsHasBeenSet = false;
199
201 bool m_statesHasBeenSet = false;
202
204 bool m_typesHasBeenSet = false;
205
207 bool m_destinationFiltersHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace NetworkManager
212} // namespace Aws
AWS_NETWORKMANAGER_API GetNetworkRoutesRequest()=default
const Aws::Vector< Aws::String > & GetSubnetOfMatches() const
GetNetworkRoutesRequest & WithTypes(TypesT &&value)
GetNetworkRoutesRequest & AddSubnetOfMatches(SubnetOfMatchesT &&value)
GetNetworkRoutesRequest & WithPrefixListIds(PrefixListIdsT &&value)
GetNetworkRoutesRequest & AddTypes(RouteType value)
GetNetworkRoutesRequest & WithStates(StatesT &&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
const Aws::Vector< Aws::String > & GetLongestPrefixMatches() const
virtual const char * GetServiceRequestName() const override
GetNetworkRoutesRequest & WithRouteTableIdentifier(RouteTableIdentifierT &&value)
const Aws::Vector< Aws::String > & GetExactCidrMatches() const
GetNetworkRoutesRequest & AddDestinationFilters(DestinationFiltersKeyT &&key, DestinationFiltersValueT &&value)
GetNetworkRoutesRequest & AddStates(RouteState value)
const RouteTableIdentifier & GetRouteTableIdentifier() const
GetNetworkRoutesRequest & WithLongestPrefixMatches(LongestPrefixMatchesT &&value)
const Aws::Vector< RouteType > & GetTypes() const
GetNetworkRoutesRequest & WithSupernetOfMatches(SupernetOfMatchesT &&value)
GetNetworkRoutesRequest & AddPrefixListIds(PrefixListIdsT &&value)
GetNetworkRoutesRequest & AddSupernetOfMatches(SupernetOfMatchesT &&value)
GetNetworkRoutesRequest & WithExactCidrMatches(ExactCidrMatchesT &&value)
GetNetworkRoutesRequest & AddLongestPrefixMatches(LongestPrefixMatchesT &&value)
const Aws::Vector< Aws::String > & GetPrefixListIds() const
GetNetworkRoutesRequest & WithDestinationFilters(DestinationFiltersT &&value)
void SetRouteTableIdentifier(RouteTableIdentifierT &&value)
GetNetworkRoutesRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
GetNetworkRoutesRequest & WithSubnetOfMatches(SubnetOfMatchesT &&value)
void SetLongestPrefixMatches(LongestPrefixMatchesT &&value)
GetNetworkRoutesRequest & AddExactCidrMatches(ExactCidrMatchesT &&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