AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkImpairment.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/internetmonitor/model/TriangulationEventType.h>
10#include <aws/internetmonitor/model/Network.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace InternetMonitor
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INTERNETMONITOR_API NetworkImpairment() = default;
38 AWS_INTERNETMONITOR_API NetworkImpairment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INTERNETMONITOR_API NetworkImpairment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Network>& GetNetworks() const { return m_networks; }
48 inline bool NetworksHasBeenSet() const { return m_networksHasBeenSet; }
49 template<typename NetworksT = Aws::Vector<Network>>
50 void SetNetworks(NetworksT&& value) { m_networksHasBeenSet = true; m_networks = std::forward<NetworksT>(value); }
51 template<typename NetworksT = Aws::Vector<Network>>
52 NetworkImpairment& WithNetworks(NetworksT&& value) { SetNetworks(std::forward<NetworksT>(value)); return *this;}
53 template<typename NetworksT = Network>
54 NetworkImpairment& AddNetworks(NetworksT&& value) { m_networksHasBeenSet = true; m_networks.emplace_back(std::forward<NetworksT>(value)); return *this; }
56
58
62 inline const Aws::Vector<Network>& GetAsPath() const { return m_asPath; }
63 inline bool AsPathHasBeenSet() const { return m_asPathHasBeenSet; }
64 template<typename AsPathT = Aws::Vector<Network>>
65 void SetAsPath(AsPathT&& value) { m_asPathHasBeenSet = true; m_asPath = std::forward<AsPathT>(value); }
66 template<typename AsPathT = Aws::Vector<Network>>
67 NetworkImpairment& WithAsPath(AsPathT&& value) { SetAsPath(std::forward<AsPathT>(value)); return *this;}
68 template<typename AsPathT = Network>
69 NetworkImpairment& AddAsPath(AsPathT&& value) { m_asPathHasBeenSet = true; m_asPath.emplace_back(std::forward<AsPathT>(value)); return *this; }
71
73
76 inline TriangulationEventType GetNetworkEventType() const { return m_networkEventType; }
77 inline bool NetworkEventTypeHasBeenSet() const { return m_networkEventTypeHasBeenSet; }
78 inline void SetNetworkEventType(TriangulationEventType value) { m_networkEventTypeHasBeenSet = true; m_networkEventType = value; }
81 private:
82
83 Aws::Vector<Network> m_networks;
84 bool m_networksHasBeenSet = false;
85
86 Aws::Vector<Network> m_asPath;
87 bool m_asPathHasBeenSet = false;
88
90 bool m_networkEventTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace InternetMonitor
95} // 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