AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
51 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
52 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
53 inline NetworkRoute& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
54 inline NetworkRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
55 inline NetworkRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
57
59
62 inline const Aws::Vector<NetworkRouteDestination>& GetDestinations() const{ return m_destinations; }
63 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
64 inline void SetDestinations(const Aws::Vector<NetworkRouteDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
65 inline void SetDestinations(Aws::Vector<NetworkRouteDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
67 inline NetworkRoute& WithDestinations(Aws::Vector<NetworkRouteDestination>&& value) { SetDestinations(std::move(value)); return *this;}
68 inline NetworkRoute& AddDestinations(const NetworkRouteDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
69 inline NetworkRoute& AddDestinations(NetworkRouteDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
77 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
78 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
79 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
80 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
81 inline NetworkRoute& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
82 inline NetworkRoute& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
83 inline NetworkRoute& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
85
87
91 inline const RouteState& GetState() const{ return m_state; }
92 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 inline void SetState(const RouteState& value) { m_stateHasBeenSet = true; m_state = value; }
94 inline void SetState(RouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
95 inline NetworkRoute& WithState(const RouteState& value) { SetState(value); return *this;}
96 inline NetworkRoute& WithState(RouteState&& value) { SetState(std::move(value)); return *this;}
98
100
104 inline const RouteType& GetType() const{ return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(const RouteType& value) { m_typeHasBeenSet = true; m_type = value; }
107 inline void SetType(RouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
108 inline NetworkRoute& WithType(const RouteType& value) { SetType(value); return *this;}
109 inline NetworkRoute& WithType(RouteType&& value) { SetType(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_destinationCidrBlock;
114 bool m_destinationCidrBlockHasBeenSet = false;
115
117 bool m_destinationsHasBeenSet = false;
118
119 Aws::String m_prefixListId;
120 bool m_prefixListIdHasBeenSet = false;
121
122 RouteState m_state;
123 bool m_stateHasBeenSet = false;
124
125 RouteType m_type;
126 bool m_typeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace NetworkManager
131} // namespace Aws
AWS_NETWORKMANAGER_API NetworkRoute(Aws::Utils::Json::JsonView jsonValue)
NetworkRoute & WithType(RouteType &&value)
NetworkRoute & WithType(const RouteType &value)
const Aws::String & GetPrefixListId() const
NetworkRoute & WithPrefixListId(Aws::String &&value)
void SetPrefixListId(const char *value)
void SetType(const RouteType &value)
NetworkRoute & WithDestinationCidrBlock(const char *value)
NetworkRoute & WithPrefixListId(const Aws::String &value)
AWS_NETWORKMANAGER_API NetworkRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestinationCidrBlock() const
const Aws::Vector< NetworkRouteDestination > & GetDestinations() const
void SetState(const RouteState &value)
NetworkRoute & WithDestinations(Aws::Vector< NetworkRouteDestination > &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkRoute & AddDestinations(const NetworkRouteDestination &value)
void SetDestinations(const Aws::Vector< NetworkRouteDestination > &value)
void SetDestinationCidrBlock(const char *value)
void SetDestinationCidrBlock(Aws::String &&value)
NetworkRoute & WithState(RouteState &&value)
AWS_NETWORKMANAGER_API NetworkRoute()
const RouteState & GetState() const
void SetPrefixListId(const Aws::String &value)
void SetDestinations(Aws::Vector< NetworkRouteDestination > &&value)
void SetDestinationCidrBlock(const Aws::String &value)
void SetPrefixListId(Aws::String &&value)
NetworkRoute & AddDestinations(NetworkRouteDestination &&value)
NetworkRoute & WithState(const RouteState &value)
NetworkRoute & WithPrefixListId(const char *value)
NetworkRoute & WithDestinationCidrBlock(const Aws::String &value)
NetworkRoute & WithDestinations(const Aws::Vector< NetworkRouteDestination > &value)
NetworkRoute & WithDestinationCidrBlock(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue