AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNetworks(const Aws::Vector<Network>& value) { m_networksHasBeenSet = true; m_networks = value; }
50 inline void SetNetworks(Aws::Vector<Network>&& value) { m_networksHasBeenSet = true; m_networks = std::move(value); }
51 inline NetworkImpairment& WithNetworks(const Aws::Vector<Network>& value) { SetNetworks(value); return *this;}
52 inline NetworkImpairment& WithNetworks(Aws::Vector<Network>&& value) { SetNetworks(std::move(value)); return *this;}
53 inline NetworkImpairment& AddNetworks(const Network& value) { m_networksHasBeenSet = true; m_networks.push_back(value); return *this; }
54 inline NetworkImpairment& AddNetworks(Network&& value) { m_networksHasBeenSet = true; m_networks.push_back(std::move(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 inline void SetAsPath(const Aws::Vector<Network>& value) { m_asPathHasBeenSet = true; m_asPath = value; }
65 inline void SetAsPath(Aws::Vector<Network>&& value) { m_asPathHasBeenSet = true; m_asPath = std::move(value); }
66 inline NetworkImpairment& WithAsPath(const Aws::Vector<Network>& value) { SetAsPath(value); return *this;}
67 inline NetworkImpairment& WithAsPath(Aws::Vector<Network>&& value) { SetAsPath(std::move(value)); return *this;}
68 inline NetworkImpairment& AddAsPath(const Network& value) { m_asPathHasBeenSet = true; m_asPath.push_back(value); return *this; }
69 inline NetworkImpairment& AddAsPath(Network&& value) { m_asPathHasBeenSet = true; m_asPath.push_back(std::move(value)); return *this; }
71
73
76 inline const TriangulationEventType& GetNetworkEventType() const{ return m_networkEventType; }
77 inline bool NetworkEventTypeHasBeenSet() const { return m_networkEventTypeHasBeenSet; }
78 inline void SetNetworkEventType(const TriangulationEventType& value) { m_networkEventTypeHasBeenSet = true; m_networkEventType = value; }
79 inline void SetNetworkEventType(TriangulationEventType&& value) { m_networkEventTypeHasBeenSet = true; m_networkEventType = std::move(value); }
81 inline NetworkImpairment& WithNetworkEventType(TriangulationEventType&& value) { SetNetworkEventType(std::move(value)); return *this;}
83 private:
84
85 Aws::Vector<Network> m_networks;
86 bool m_networksHasBeenSet = false;
87
88 Aws::Vector<Network> m_asPath;
89 bool m_asPathHasBeenSet = false;
90
91 TriangulationEventType m_networkEventType;
92 bool m_networkEventTypeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace InternetMonitor
97} // namespace Aws
NetworkImpairment & WithNetworkEventType(const TriangulationEventType &value)
void SetNetworks(const Aws::Vector< Network > &value)
void SetNetworkEventType(const TriangulationEventType &value)
NetworkImpairment & WithAsPath(const Aws::Vector< Network > &value)
NetworkImpairment & AddAsPath(const Network &value)
const Aws::Vector< Network > & GetAsPath() const
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkImpairment & WithNetworkEventType(TriangulationEventType &&value)
NetworkImpairment & AddNetworks(Network &&value)
const Aws::Vector< Network > & GetNetworks() const
void SetAsPath(Aws::Vector< Network > &&value)
NetworkImpairment & WithNetworks(const Aws::Vector< Network > &value)
void SetNetworks(Aws::Vector< Network > &&value)
NetworkImpairment & WithAsPath(Aws::Vector< Network > &&value)
AWS_INTERNETMONITOR_API NetworkImpairment(Aws::Utils::Json::JsonView jsonValue)
AWS_INTERNETMONITOR_API NetworkImpairment & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkImpairment & AddAsPath(Network &&value)
void SetAsPath(const Aws::Vector< Network > &value)
NetworkImpairment & AddNetworks(const Network &value)
const TriangulationEventType & GetNetworkEventType() const
void SetNetworkEventType(TriangulationEventType &&value)
NetworkImpairment & WithNetworks(Aws::Vector< Network > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue