AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Via.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/EdgeOverride.h>
10#include <aws/networkmanager/model/NetworkFunctionGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager {
22namespace Model {
23
31class Via {
32 public:
33 AWS_NETWORKMANAGER_API Via() = default;
34 AWS_NETWORKMANAGER_API Via(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API Via& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<NetworkFunctionGroup>& GetNetworkFunctionGroups() const { return m_networkFunctionGroups; }
44 inline bool NetworkFunctionGroupsHasBeenSet() const { return m_networkFunctionGroupsHasBeenSet; }
45 template <typename NetworkFunctionGroupsT = Aws::Vector<NetworkFunctionGroup>>
46 void SetNetworkFunctionGroups(NetworkFunctionGroupsT&& value) {
47 m_networkFunctionGroupsHasBeenSet = true;
48 m_networkFunctionGroups = std::forward<NetworkFunctionGroupsT>(value);
49 }
50 template <typename NetworkFunctionGroupsT = Aws::Vector<NetworkFunctionGroup>>
51 Via& WithNetworkFunctionGroups(NetworkFunctionGroupsT&& value) {
52 SetNetworkFunctionGroups(std::forward<NetworkFunctionGroupsT>(value));
53 return *this;
54 }
55 template <typename NetworkFunctionGroupsT = NetworkFunctionGroup>
56 Via& AddNetworkFunctionGroups(NetworkFunctionGroupsT&& value) {
57 m_networkFunctionGroupsHasBeenSet = true;
58 m_networkFunctionGroups.emplace_back(std::forward<NetworkFunctionGroupsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<EdgeOverride>& GetWithEdgeOverrides() const { return m_withEdgeOverrides; }
69 inline bool WithEdgeOverridesHasBeenSet() const { return m_withEdgeOverridesHasBeenSet; }
70 template <typename WithEdgeOverridesT = Aws::Vector<EdgeOverride>>
71 void SetWithEdgeOverrides(WithEdgeOverridesT&& value) {
72 m_withEdgeOverridesHasBeenSet = true;
73 m_withEdgeOverrides = std::forward<WithEdgeOverridesT>(value);
74 }
75 template <typename WithEdgeOverridesT = Aws::Vector<EdgeOverride>>
76 Via& WithWithEdgeOverrides(WithEdgeOverridesT&& value) {
77 SetWithEdgeOverrides(std::forward<WithEdgeOverridesT>(value));
78 return *this;
79 }
80 template <typename WithEdgeOverridesT = EdgeOverride>
81 Via& AddWithEdgeOverrides(WithEdgeOverridesT&& value) {
82 m_withEdgeOverridesHasBeenSet = true;
83 m_withEdgeOverrides.emplace_back(std::forward<WithEdgeOverridesT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<NetworkFunctionGroup> m_networkFunctionGroups;
89
90 Aws::Vector<EdgeOverride> m_withEdgeOverrides;
91 bool m_networkFunctionGroupsHasBeenSet = false;
92 bool m_withEdgeOverridesHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace NetworkManager
97} // namespace Aws
const Aws::Vector< NetworkFunctionGroup > & GetNetworkFunctionGroups() const
Definition Via.h:43
AWS_NETWORKMANAGER_API Via()=default
Via & AddNetworkFunctionGroups(NetworkFunctionGroupsT &&value)
Definition Via.h:56
Via & WithWithEdgeOverrides(WithEdgeOverridesT &&value)
Definition Via.h:76
Via & WithNetworkFunctionGroups(NetworkFunctionGroupsT &&value)
Definition Via.h:51
bool WithEdgeOverridesHasBeenSet() const
Definition Via.h:69
AWS_NETWORKMANAGER_API Via & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkFunctionGroups(NetworkFunctionGroupsT &&value)
Definition Via.h:46
bool NetworkFunctionGroupsHasBeenSet() const
Definition Via.h:44
Via & AddWithEdgeOverrides(WithEdgeOverridesT &&value)
Definition Via.h:81
void SetWithEdgeOverrides(WithEdgeOverridesT &&value)
Definition Via.h:71
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API Via(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EdgeOverride > & GetWithEdgeOverrides() const
Definition Via.h:68
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue