AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
NetworkImpairment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
9#include <aws/internetmonitor/model/Network.h>
10#include <aws/internetmonitor/model/TriangulationEventType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace InternetMonitor {
22namespace Model {
23
31 public:
32 AWS_INTERNETMONITOR_API NetworkImpairment() = default;
33 AWS_INTERNETMONITOR_API NetworkImpairment(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INTERNETMONITOR_API NetworkImpairment& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Network>& GetNetworks() const { return m_networks; }
42 inline bool NetworksHasBeenSet() const { return m_networksHasBeenSet; }
43 template <typename NetworksT = Aws::Vector<Network>>
44 void SetNetworks(NetworksT&& value) {
45 m_networksHasBeenSet = true;
46 m_networks = std::forward<NetworksT>(value);
47 }
48 template <typename NetworksT = Aws::Vector<Network>>
49 NetworkImpairment& WithNetworks(NetworksT&& value) {
50 SetNetworks(std::forward<NetworksT>(value));
51 return *this;
52 }
53 template <typename NetworksT = Network>
54 NetworkImpairment& AddNetworks(NetworksT&& value) {
55 m_networksHasBeenSet = true;
56 m_networks.emplace_back(std::forward<NetworksT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Network>& GetAsPath() const { return m_asPath; }
67 inline bool AsPathHasBeenSet() const { return m_asPathHasBeenSet; }
68 template <typename AsPathT = Aws::Vector<Network>>
69 void SetAsPath(AsPathT&& value) {
70 m_asPathHasBeenSet = true;
71 m_asPath = std::forward<AsPathT>(value);
72 }
73 template <typename AsPathT = Aws::Vector<Network>>
74 NetworkImpairment& WithAsPath(AsPathT&& value) {
75 SetAsPath(std::forward<AsPathT>(value));
76 return *this;
77 }
78 template <typename AsPathT = Network>
79 NetworkImpairment& AddAsPath(AsPathT&& value) {
80 m_asPathHasBeenSet = true;
81 m_asPath.emplace_back(std::forward<AsPathT>(value));
82 return *this;
83 }
85
87
90 inline TriangulationEventType GetNetworkEventType() const { return m_networkEventType; }
91 inline bool NetworkEventTypeHasBeenSet() const { return m_networkEventTypeHasBeenSet; }
93 m_networkEventTypeHasBeenSet = true;
94 m_networkEventType = value;
95 }
98 return *this;
99 }
101 private:
102 Aws::Vector<Network> m_networks;
103
104 Aws::Vector<Network> m_asPath;
105
107 bool m_networksHasBeenSet = false;
108 bool m_asPathHasBeenSet = false;
109 bool m_networkEventTypeHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace InternetMonitor
114} // namespace Aws
NetworkImpairment & WithNetworks(NetworksT &&value)
void SetNetworkEventType(TriangulationEventType value)
const Aws::Vector< Network > & GetAsPath() const
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkImpairment & AddNetworks(NetworksT &&value)
TriangulationEventType GetNetworkEventType() const
NetworkImpairment & WithNetworkEventType(TriangulationEventType value)
const Aws::Vector< Network > & GetNetworks() const
NetworkImpairment & AddAsPath(AsPathT &&value)
AWS_INTERNETMONITOR_API NetworkImpairment(Aws::Utils::Json::JsonView jsonValue)
AWS_INTERNETMONITOR_API NetworkImpairment & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkImpairment & WithAsPath(AsPathT &&value)
AWS_INTERNETMONITOR_API NetworkImpairment()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue