AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RoutingPolicyAssociationDetail.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkManager {
21namespace Model {
22
29 public:
30 AWS_NETWORKMANAGER_API RoutingPolicyAssociationDetail() = default;
33 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetRoutingPolicyNames() const { return m_routingPolicyNames; }
40 inline bool RoutingPolicyNamesHasBeenSet() const { return m_routingPolicyNamesHasBeenSet; }
41 template <typename RoutingPolicyNamesT = Aws::Vector<Aws::String>>
42 void SetRoutingPolicyNames(RoutingPolicyNamesT&& value) {
43 m_routingPolicyNamesHasBeenSet = true;
44 m_routingPolicyNames = std::forward<RoutingPolicyNamesT>(value);
45 }
46 template <typename RoutingPolicyNamesT = Aws::Vector<Aws::String>>
48 SetRoutingPolicyNames(std::forward<RoutingPolicyNamesT>(value));
49 return *this;
50 }
51 template <typename RoutingPolicyNamesT = Aws::String>
53 m_routingPolicyNamesHasBeenSet = true;
54 m_routingPolicyNames.emplace_back(std::forward<RoutingPolicyNamesT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Aws::String>& GetSharedSegments() const { return m_sharedSegments; }
65 inline bool SharedSegmentsHasBeenSet() const { return m_sharedSegmentsHasBeenSet; }
66 template <typename SharedSegmentsT = Aws::Vector<Aws::String>>
67 void SetSharedSegments(SharedSegmentsT&& value) {
68 m_sharedSegmentsHasBeenSet = true;
69 m_sharedSegments = std::forward<SharedSegmentsT>(value);
70 }
71 template <typename SharedSegmentsT = Aws::Vector<Aws::String>>
73 SetSharedSegments(std::forward<SharedSegmentsT>(value));
74 return *this;
75 }
76 template <typename SharedSegmentsT = Aws::String>
78 m_sharedSegmentsHasBeenSet = true;
79 m_sharedSegments.emplace_back(std::forward<SharedSegmentsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_routingPolicyNames;
85
86 Aws::Vector<Aws::String> m_sharedSegments;
87 bool m_routingPolicyNamesHasBeenSet = false;
88 bool m_sharedSegmentsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace NetworkManager
93} // namespace Aws
RoutingPolicyAssociationDetail & AddRoutingPolicyNames(RoutingPolicyNamesT &&value)
RoutingPolicyAssociationDetail & WithSharedSegments(SharedSegmentsT &&value)
AWS_NETWORKMANAGER_API RoutingPolicyAssociationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API RoutingPolicyAssociationDetail(Aws::Utils::Json::JsonView jsonValue)
RoutingPolicyAssociationDetail & WithRoutingPolicyNames(RoutingPolicyNamesT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RoutingPolicyAssociationDetail & AddSharedSegments(SharedSegmentsT &&value)
AWS_NETWORKMANAGER_API RoutingPolicyAssociationDetail()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue