7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/AddressFamily.h>
12#include <aws/directconnect/model/AsPathSegment.h>
13#include <aws/directconnect/model/RouteDirection.h>
24namespace DirectConnect {
35 AWS_DIRECTCONNECT_API
Route() =
default;
46 template <
typename C
idrT = Aws::String>
48 m_cidrHasBeenSet =
true;
49 m_cidr = std::forward<CidrT>(value);
51 template <
typename C
idrT = Aws::String>
53 SetCidr(std::forward<CidrT>(value));
67 m_routeDirectionHasBeenSet =
true;
68 m_routeDirection = value;
84 m_addressFamilyHasBeenSet =
true;
85 m_addressFamily = value;
99 template <
typename AsPathT = Aws::Vector<AsPathSegment>>
101 m_asPathHasBeenSet =
true;
102 m_asPath = std::forward<AsPathT>(value);
104 template <
typename AsPathT = Aws::Vector<AsPathSegment>>
109 template <
typename AsPathT = AsPathSegment>
111 m_asPathHasBeenSet =
true;
112 m_asPath.emplace_back(std::forward<AsPathT>(value));
123 template <
typename CommunitiesT = Aws::Vector<Aws::String>>
125 m_communitiesHasBeenSet =
true;
126 m_communities = std::forward<CommunitiesT>(value);
128 template <
typename CommunitiesT = Aws::Vector<Aws::String>>
133 template <
typename CommunitiesT = Aws::String>
135 m_communitiesHasBeenSet =
true;
136 m_communities.emplace_back(std::forward<CommunitiesT>(value));
149 template <
typename AwsLogicalDeviceIdT = Aws::String>
151 m_awsLogicalDeviceIdHasBeenSet =
true;
152 m_awsLogicalDeviceId = std::forward<AwsLogicalDeviceIdT>(value);
154 template <
typename AwsLogicalDeviceIdT = Aws::String>
168 template <
typename RouteInstalledAtT = Aws::Utils::DateTime>
170 m_routeInstalledAtHasBeenSet =
true;
171 m_routeInstalledAt = std::forward<RouteInstalledAtT>(value);
173 template <
typename RouteInstalledAtT = Aws::Utils::DateTime>
193 bool m_cidrHasBeenSet =
false;
194 bool m_routeDirectionHasBeenSet =
false;
195 bool m_addressFamilyHasBeenSet =
false;
196 bool m_asPathHasBeenSet =
false;
197 bool m_communitiesHasBeenSet =
false;
198 bool m_awsLogicalDeviceIdHasBeenSet =
false;
199 bool m_routeInstalledAtHasBeenSet =
false;
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetRouteInstalledAt() const
AWS_DIRECTCONNECT_API Route(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
Route & AddCommunities(CommunitiesT &&value)
const Aws::Vector< AsPathSegment > & GetAsPath() const
Route & WithAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
Route & WithAddressFamily(AddressFamily value)
Route & WithCommunities(CommunitiesT &&value)
void SetCommunities(CommunitiesT &&value)
bool RouteDirectionHasBeenSet() const
void SetRouteInstalledAt(RouteInstalledAtT &&value)
const Aws::String & GetCidr() const
const Aws::Vector< Aws::String > & GetCommunities() const
Route & WithRouteDirection(RouteDirection value)
bool AddressFamilyHasBeenSet() const
bool CidrHasBeenSet() const
void SetAsPath(AsPathT &&value)
bool AsPathHasBeenSet() const
AWS_DIRECTCONNECT_API Route()=default
void SetRouteDirection(RouteDirection value)
Route & WithCidr(CidrT &&value)
const Aws::String & GetAwsLogicalDeviceId() const
void SetAwsLogicalDeviceId(AwsLogicalDeviceIdT &&value)
bool RouteInstalledAtHasBeenSet() const
AddressFamily GetAddressFamily() const
void SetCidr(CidrT &&value)
void SetAddressFamily(AddressFamily value)
Route & WithRouteInstalledAt(RouteInstalledAtT &&value)
bool CommunitiesHasBeenSet() const
RouteDirection GetRouteDirection() const
Route & AddAsPath(AsPathT &&value)
Route & WithAsPath(AsPathT &&value)
bool AwsLogicalDeviceIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue