7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/model/RouteState.h>
11#include <aws/networkmanager/model/RouteType.h>
12#include <aws/networkmanager/model/NetworkRouteDestination.h>
25namespace NetworkManager
50 template<
typename DestinationC
idrBlockT = Aws::String>
51 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet =
true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
52 template<
typename DestinationC
idrBlockT = Aws::String>
62 template<
typename DestinationsT = Aws::Vector<NetworkRouteDestination>>
63 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet =
true; m_destinations = std::forward<DestinationsT>(value); }
64 template<
typename DestinationsT = Aws::Vector<NetworkRouteDestination>>
66 template<
typename DestinationsT = NetworkRouteDestination>
67 NetworkRoute&
AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet =
true; m_destinations.emplace_back(std::forward<DestinationsT>(value));
return *
this; }
76 template<
typename PrefixListIdT = Aws::String>
77 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet =
true; m_prefixListId = std::forward<PrefixListIdT>(value); }
78 template<
typename PrefixListIdT = Aws::String>
106 bool m_destinationCidrBlockHasBeenSet =
false;
109 bool m_destinationsHasBeenSet =
false;
112 bool m_prefixListIdHasBeenSet =
false;
115 bool m_stateHasBeenSet =
false;
118 bool m_typeHasBeenSet =
false;
AWS_NETWORKMANAGER_API NetworkRoute(Aws::Utils::Json::JsonView jsonValue)
NetworkRoute & AddDestinations(DestinationsT &&value)
void SetState(RouteState value)
const Aws::String & GetPrefixListId() const
void SetPrefixListId(PrefixListIdT &&value)
NetworkRoute & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetDestinations(DestinationsT &&value)
NetworkRoute & WithPrefixListId(PrefixListIdT &&value)
AWS_NETWORKMANAGER_API NetworkRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteState GetState() const
const Aws::String & GetDestinationCidrBlock() const
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
const Aws::Vector< NetworkRouteDestination > & GetDestinations() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DestinationsHasBeenSet() const
void SetType(RouteType value)
NetworkRoute & WithType(RouteType value)
NetworkRoute & WithDestinations(DestinationsT &&value)
bool TypeHasBeenSet() const
bool DestinationCidrBlockHasBeenSet() const
bool StateHasBeenSet() const
NetworkRoute & WithState(RouteState value)
bool PrefixListIdHasBeenSet() const
AWS_NETWORKMANAGER_API NetworkRoute()=default
RouteType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue