AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExpectedRoute.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FMS_API ExpectedRoute() = default;
40
41
43
46 inline const Aws::String& GetIpV4Cidr() const { return m_ipV4Cidr; }
47 inline bool IpV4CidrHasBeenSet() const { return m_ipV4CidrHasBeenSet; }
48 template<typename IpV4CidrT = Aws::String>
49 void SetIpV4Cidr(IpV4CidrT&& value) { m_ipV4CidrHasBeenSet = true; m_ipV4Cidr = std::forward<IpV4CidrT>(value); }
50 template<typename IpV4CidrT = Aws::String>
51 ExpectedRoute& WithIpV4Cidr(IpV4CidrT&& value) { SetIpV4Cidr(std::forward<IpV4CidrT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
59 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
60 template<typename PrefixListIdT = Aws::String>
61 void SetPrefixListId(PrefixListIdT&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::forward<PrefixListIdT>(value); }
62 template<typename PrefixListIdT = Aws::String>
63 ExpectedRoute& WithPrefixListId(PrefixListIdT&& value) { SetPrefixListId(std::forward<PrefixListIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIpV6Cidr() const { return m_ipV6Cidr; }
71 inline bool IpV6CidrHasBeenSet() const { return m_ipV6CidrHasBeenSet; }
72 template<typename IpV6CidrT = Aws::String>
73 void SetIpV6Cidr(IpV6CidrT&& value) { m_ipV6CidrHasBeenSet = true; m_ipV6Cidr = std::forward<IpV6CidrT>(value); }
74 template<typename IpV6CidrT = Aws::String>
75 ExpectedRoute& WithIpV6Cidr(IpV6CidrT&& value) { SetIpV6Cidr(std::forward<IpV6CidrT>(value)); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetContributingSubnets() const { return m_contributingSubnets; }
83 inline bool ContributingSubnetsHasBeenSet() const { return m_contributingSubnetsHasBeenSet; }
84 template<typename ContributingSubnetsT = Aws::Vector<Aws::String>>
85 void SetContributingSubnets(ContributingSubnetsT&& value) { m_contributingSubnetsHasBeenSet = true; m_contributingSubnets = std::forward<ContributingSubnetsT>(value); }
86 template<typename ContributingSubnetsT = Aws::Vector<Aws::String>>
87 ExpectedRoute& WithContributingSubnets(ContributingSubnetsT&& value) { SetContributingSubnets(std::forward<ContributingSubnetsT>(value)); return *this;}
88 template<typename ContributingSubnetsT = Aws::String>
89 ExpectedRoute& AddContributingSubnets(ContributingSubnetsT&& value) { m_contributingSubnetsHasBeenSet = true; m_contributingSubnets.emplace_back(std::forward<ContributingSubnetsT>(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetAllowedTargets() const { return m_allowedTargets; }
97 inline bool AllowedTargetsHasBeenSet() const { return m_allowedTargetsHasBeenSet; }
98 template<typename AllowedTargetsT = Aws::Vector<Aws::String>>
99 void SetAllowedTargets(AllowedTargetsT&& value) { m_allowedTargetsHasBeenSet = true; m_allowedTargets = std::forward<AllowedTargetsT>(value); }
100 template<typename AllowedTargetsT = Aws::Vector<Aws::String>>
101 ExpectedRoute& WithAllowedTargets(AllowedTargetsT&& value) { SetAllowedTargets(std::forward<AllowedTargetsT>(value)); return *this;}
102 template<typename AllowedTargetsT = Aws::String>
103 ExpectedRoute& AddAllowedTargets(AllowedTargetsT&& value) { m_allowedTargetsHasBeenSet = true; m_allowedTargets.emplace_back(std::forward<AllowedTargetsT>(value)); return *this; }
105
107
110 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
111 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
112 template<typename RouteTableIdT = Aws::String>
113 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
114 template<typename RouteTableIdT = Aws::String>
115 ExpectedRoute& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
117 private:
118
119 Aws::String m_ipV4Cidr;
120 bool m_ipV4CidrHasBeenSet = false;
121
122 Aws::String m_prefixListId;
123 bool m_prefixListIdHasBeenSet = false;
124
125 Aws::String m_ipV6Cidr;
126 bool m_ipV6CidrHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_contributingSubnets;
129 bool m_contributingSubnetsHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_allowedTargets;
132 bool m_allowedTargetsHasBeenSet = false;
133
134 Aws::String m_routeTableId;
135 bool m_routeTableIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace FMS
140} // namespace Aws
void SetAllowedTargets(AllowedTargetsT &&value)
ExpectedRoute & WithRouteTableId(RouteTableIdT &&value)
ExpectedRoute & WithAllowedTargets(AllowedTargetsT &&value)
AWS_FMS_API ExpectedRoute()=default
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API ExpectedRoute(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIpV6Cidr() const
ExpectedRoute & AddAllowedTargets(AllowedTargetsT &&value)
ExpectedRoute & AddContributingSubnets(ContributingSubnetsT &&value)
AWS_FMS_API ExpectedRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRouteTableId(RouteTableIdT &&value)
void SetContributingSubnets(ContributingSubnetsT &&value)
const Aws::Vector< Aws::String > & GetContributingSubnets() const
ExpectedRoute & WithPrefixListId(PrefixListIdT &&value)
void SetIpV6Cidr(IpV6CidrT &&value)
const Aws::String & GetPrefixListId() const
void SetIpV4Cidr(IpV4CidrT &&value)
const Aws::Vector< Aws::String > & GetAllowedTargets() const
bool ContributingSubnetsHasBeenSet() const
ExpectedRoute & WithIpV6Cidr(IpV6CidrT &&value)
const Aws::String & GetIpV4Cidr() const
ExpectedRoute & WithIpV4Cidr(IpV4CidrT &&value)
const Aws::String & GetRouteTableId() const
void SetPrefixListId(PrefixListIdT &&value)
ExpectedRoute & WithContributingSubnets(ContributingSubnetsT &&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