AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExpectedRoute.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/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
30 public:
31 AWS_FMS_API ExpectedRoute() = default;
35
37
40 inline const Aws::String& GetIpV4Cidr() const { return m_ipV4Cidr; }
41 inline bool IpV4CidrHasBeenSet() const { return m_ipV4CidrHasBeenSet; }
42 template <typename IpV4CidrT = Aws::String>
43 void SetIpV4Cidr(IpV4CidrT&& value) {
44 m_ipV4CidrHasBeenSet = true;
45 m_ipV4Cidr = std::forward<IpV4CidrT>(value);
46 }
47 template <typename IpV4CidrT = Aws::String>
48 ExpectedRoute& WithIpV4Cidr(IpV4CidrT&& value) {
49 SetIpV4Cidr(std::forward<IpV4CidrT>(value));
50 return *this;
51 }
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) {
62 m_prefixListIdHasBeenSet = true;
63 m_prefixListId = std::forward<PrefixListIdT>(value);
64 }
65 template <typename PrefixListIdT = Aws::String>
66 ExpectedRoute& WithPrefixListId(PrefixListIdT&& value) {
67 SetPrefixListId(std::forward<PrefixListIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetIpV6Cidr() const { return m_ipV6Cidr; }
77 inline bool IpV6CidrHasBeenSet() const { return m_ipV6CidrHasBeenSet; }
78 template <typename IpV6CidrT = Aws::String>
79 void SetIpV6Cidr(IpV6CidrT&& value) {
80 m_ipV6CidrHasBeenSet = true;
81 m_ipV6Cidr = std::forward<IpV6CidrT>(value);
82 }
83 template <typename IpV6CidrT = Aws::String>
84 ExpectedRoute& WithIpV6Cidr(IpV6CidrT&& value) {
85 SetIpV6Cidr(std::forward<IpV6CidrT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetContributingSubnets() const { return m_contributingSubnets; }
95 inline bool ContributingSubnetsHasBeenSet() const { return m_contributingSubnetsHasBeenSet; }
96 template <typename ContributingSubnetsT = Aws::Vector<Aws::String>>
97 void SetContributingSubnets(ContributingSubnetsT&& value) {
98 m_contributingSubnetsHasBeenSet = true;
99 m_contributingSubnets = std::forward<ContributingSubnetsT>(value);
100 }
101 template <typename ContributingSubnetsT = Aws::Vector<Aws::String>>
102 ExpectedRoute& WithContributingSubnets(ContributingSubnetsT&& value) {
103 SetContributingSubnets(std::forward<ContributingSubnetsT>(value));
104 return *this;
105 }
106 template <typename ContributingSubnetsT = Aws::String>
107 ExpectedRoute& AddContributingSubnets(ContributingSubnetsT&& value) {
108 m_contributingSubnetsHasBeenSet = true;
109 m_contributingSubnets.emplace_back(std::forward<ContributingSubnetsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Aws::String>& GetAllowedTargets() const { return m_allowedTargets; }
119 inline bool AllowedTargetsHasBeenSet() const { return m_allowedTargetsHasBeenSet; }
120 template <typename AllowedTargetsT = Aws::Vector<Aws::String>>
121 void SetAllowedTargets(AllowedTargetsT&& value) {
122 m_allowedTargetsHasBeenSet = true;
123 m_allowedTargets = std::forward<AllowedTargetsT>(value);
124 }
125 template <typename AllowedTargetsT = Aws::Vector<Aws::String>>
126 ExpectedRoute& WithAllowedTargets(AllowedTargetsT&& value) {
127 SetAllowedTargets(std::forward<AllowedTargetsT>(value));
128 return *this;
129 }
130 template <typename AllowedTargetsT = Aws::String>
131 ExpectedRoute& AddAllowedTargets(AllowedTargetsT&& value) {
132 m_allowedTargetsHasBeenSet = true;
133 m_allowedTargets.emplace_back(std::forward<AllowedTargetsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
143 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
144 template <typename RouteTableIdT = Aws::String>
145 void SetRouteTableId(RouteTableIdT&& value) {
146 m_routeTableIdHasBeenSet = true;
147 m_routeTableId = std::forward<RouteTableIdT>(value);
148 }
149 template <typename RouteTableIdT = Aws::String>
150 ExpectedRoute& WithRouteTableId(RouteTableIdT&& value) {
151 SetRouteTableId(std::forward<RouteTableIdT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_ipV4Cidr;
157
158 Aws::String m_prefixListId;
159
160 Aws::String m_ipV6Cidr;
161
162 Aws::Vector<Aws::String> m_contributingSubnets;
163
164 Aws::Vector<Aws::String> m_allowedTargets;
165
166 Aws::String m_routeTableId;
167 bool m_ipV4CidrHasBeenSet = false;
168 bool m_prefixListIdHasBeenSet = false;
169 bool m_ipV6CidrHasBeenSet = false;
170 bool m_contributingSubnetsHasBeenSet = false;
171 bool m_allowedTargetsHasBeenSet = false;
172 bool m_routeTableIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace FMS
177} // 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