AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Edge.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ConnectionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
30class Edge {
31 public:
32 AWS_APPLICATIONSIGNALS_API Edge() = default;
33 AWS_APPLICATIONSIGNALS_API Edge(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Edge& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSourceNodeId() const { return m_sourceNodeId; }
42 inline bool SourceNodeIdHasBeenSet() const { return m_sourceNodeIdHasBeenSet; }
43 template <typename SourceNodeIdT = Aws::String>
44 void SetSourceNodeId(SourceNodeIdT&& value) {
45 m_sourceNodeIdHasBeenSet = true;
46 m_sourceNodeId = std::forward<SourceNodeIdT>(value);
47 }
48 template <typename SourceNodeIdT = Aws::String>
49 Edge& WithSourceNodeId(SourceNodeIdT&& value) {
50 SetSourceNodeId(std::forward<SourceNodeIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDestinationNodeId() const { return m_destinationNodeId; }
60 inline bool DestinationNodeIdHasBeenSet() const { return m_destinationNodeIdHasBeenSet; }
61 template <typename DestinationNodeIdT = Aws::String>
62 void SetDestinationNodeId(DestinationNodeIdT&& value) {
63 m_destinationNodeIdHasBeenSet = true;
64 m_destinationNodeId = std::forward<DestinationNodeIdT>(value);
65 }
66 template <typename DestinationNodeIdT = Aws::String>
67 Edge& WithDestinationNodeId(DestinationNodeIdT&& value) {
68 SetDestinationNodeId(std::forward<DestinationNodeIdT>(value));
69 return *this;
70 }
72
74
77 inline double GetDuration() const { return m_duration; }
78 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
79 inline void SetDuration(double value) {
80 m_durationHasBeenSet = true;
81 m_duration = value;
82 }
83 inline Edge& WithDuration(double value) {
84 SetDuration(value);
85 return *this;
86 }
88
90
94 inline ConnectionType GetConnectionType() const { return m_connectionType; }
95 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
96 inline void SetConnectionType(ConnectionType value) {
97 m_connectionTypeHasBeenSet = true;
98 m_connectionType = value;
99 }
101 SetConnectionType(value);
102 return *this;
103 }
105 private:
106 Aws::String m_sourceNodeId;
107
108 Aws::String m_destinationNodeId;
109
110 double m_duration{0.0};
111
112 ConnectionType m_connectionType{ConnectionType::NOT_SET};
113 bool m_sourceNodeIdHasBeenSet = false;
114 bool m_destinationNodeIdHasBeenSet = false;
115 bool m_durationHasBeenSet = false;
116 bool m_connectionTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ApplicationSignals
121} // namespace Aws
void SetConnectionType(ConnectionType value)
Definition Edge.h:96
const Aws::String & GetDestinationNodeId() const
Definition Edge.h:59
ConnectionType GetConnectionType() const
Definition Edge.h:94
void SetSourceNodeId(SourceNodeIdT &&value)
Definition Edge.h:44
Edge & WithSourceNodeId(SourceNodeIdT &&value)
Definition Edge.h:49
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API Edge()=default
const Aws::String & GetSourceNodeId() const
Definition Edge.h:41
void SetDuration(double value)
Definition Edge.h:79
AWS_APPLICATIONSIGNALS_API Edge(Aws::Utils::Json::JsonView jsonValue)
Edge & WithConnectionType(ConnectionType value)
Definition Edge.h:100
AWS_APPLICATIONSIGNALS_API Edge & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConnectionTypeHasBeenSet() const
Definition Edge.h:95
Edge & WithDuration(double value)
Definition Edge.h:83
bool DestinationNodeIdHasBeenSet() const
Definition Edge.h:60
void SetDestinationNodeId(DestinationNodeIdT &&value)
Definition Edge.h:62
Edge & WithDestinationNodeId(DestinationNodeIdT &&value)
Definition Edge.h:67
bool SourceNodeIdHasBeenSet() const
Definition Edge.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue