AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkRoute.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_NETWORKMANAGER_API NetworkRoute() = default;
39 AWS_NETWORKMANAGER_API NetworkRoute(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API NetworkRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
49 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
50 template<typename DestinationCidrBlockT = Aws::String>
51 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
52 template<typename DestinationCidrBlockT = Aws::String>
53 NetworkRoute& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
55
57
60 inline const Aws::Vector<NetworkRouteDestination>& GetDestinations() const { return m_destinations; }
61 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
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>>
65 NetworkRoute& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
66 template<typename DestinationsT = NetworkRouteDestination>
67 NetworkRoute& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
75 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
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>
79 NetworkRoute& WithPrefixListId(PrefixListIdT&& value) { SetPrefixListId(std::forward<PrefixListIdT>(value)); return *this;}
81
83
87 inline RouteState GetState() const { return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(RouteState value) { m_stateHasBeenSet = true; m_state = value; }
90 inline NetworkRoute& WithState(RouteState value) { SetState(value); return *this;}
92
94
98 inline RouteType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(RouteType value) { m_typeHasBeenSet = true; m_type = value; }
101 inline NetworkRoute& WithType(RouteType value) { SetType(value); return *this;}
103 private:
104
105 Aws::String m_destinationCidrBlock;
106 bool m_destinationCidrBlockHasBeenSet = false;
107
109 bool m_destinationsHasBeenSet = false;
110
111 Aws::String m_prefixListId;
112 bool m_prefixListIdHasBeenSet = false;
113
115 bool m_stateHasBeenSet = false;
116
118 bool m_typeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace NetworkManager
123} // namespace Aws
AWS_NETWORKMANAGER_API NetworkRoute(Aws::Utils::Json::JsonView jsonValue)
NetworkRoute & AddDestinations(DestinationsT &&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)
const Aws::String & GetDestinationCidrBlock() const
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
const Aws::Vector< NetworkRouteDestination > & GetDestinations() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkRoute & WithType(RouteType value)
NetworkRoute & WithDestinations(DestinationsT &&value)
NetworkRoute & WithState(RouteState value)
AWS_NETWORKMANAGER_API NetworkRoute()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue