AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
NetworkRoute.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/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/NetworkRouteDestination.h>
11#include <aws/networkmanager/model/RouteState.h>
12#include <aws/networkmanager/model/RouteType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager {
24namespace Model {
25
32 public:
33 AWS_NETWORKMANAGER_API NetworkRoute() = default;
34 AWS_NETWORKMANAGER_API NetworkRoute(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API NetworkRoute& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
43 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
44 template <typename DestinationCidrBlockT = Aws::String>
45 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
46 m_destinationCidrBlockHasBeenSet = true;
47 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
48 }
49 template <typename DestinationCidrBlockT = Aws::String>
50 NetworkRoute& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
51 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
52 return *this;
53 }
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) {
64 m_destinationsHasBeenSet = true;
65 m_destinations = std::forward<DestinationsT>(value);
66 }
67 template <typename DestinationsT = Aws::Vector<NetworkRouteDestination>>
68 NetworkRoute& WithDestinations(DestinationsT&& value) {
69 SetDestinations(std::forward<DestinationsT>(value));
70 return *this;
71 }
72 template <typename DestinationsT = NetworkRouteDestination>
73 NetworkRoute& AddDestinations(DestinationsT&& value) {
74 m_destinationsHasBeenSet = true;
75 m_destinations.emplace_back(std::forward<DestinationsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
85 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
86 template <typename PrefixListIdT = Aws::String>
87 void SetPrefixListId(PrefixListIdT&& value) {
88 m_prefixListIdHasBeenSet = true;
89 m_prefixListId = std::forward<PrefixListIdT>(value);
90 }
91 template <typename PrefixListIdT = Aws::String>
92 NetworkRoute& WithPrefixListId(PrefixListIdT&& value) {
93 SetPrefixListId(std::forward<PrefixListIdT>(value));
94 return *this;
95 }
97
99
103 inline RouteState GetState() const { return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(RouteState value) {
106 m_stateHasBeenSet = true;
107 m_state = value;
108 }
110 SetState(value);
111 return *this;
112 }
114
116
122 inline RouteType GetType() const { return m_type; }
123 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 inline void SetType(RouteType value) {
125 m_typeHasBeenSet = true;
126 m_type = value;
127 }
129 SetType(value);
130 return *this;
131 }
133 private:
134 Aws::String m_destinationCidrBlock;
135
137
138 Aws::String m_prefixListId;
139
141
143 bool m_destinationCidrBlockHasBeenSet = false;
144 bool m_destinationsHasBeenSet = false;
145 bool m_prefixListIdHasBeenSet = false;
146 bool m_stateHasBeenSet = false;
147 bool m_typeHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace NetworkManager
152} // 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