AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
NeighborConnectionDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationDiscoveryService {
20namespace Model {
21
28 public:
29 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail() = default;
30 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetSourceServerId() const { return m_sourceServerId; }
39 inline bool SourceServerIdHasBeenSet() const { return m_sourceServerIdHasBeenSet; }
40 template <typename SourceServerIdT = Aws::String>
41 void SetSourceServerId(SourceServerIdT&& value) {
42 m_sourceServerIdHasBeenSet = true;
43 m_sourceServerId = std::forward<SourceServerIdT>(value);
44 }
45 template <typename SourceServerIdT = Aws::String>
46 NeighborConnectionDetail& WithSourceServerId(SourceServerIdT&& value) {
47 SetSourceServerId(std::forward<SourceServerIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDestinationServerId() const { return m_destinationServerId; }
57 inline bool DestinationServerIdHasBeenSet() const { return m_destinationServerIdHasBeenSet; }
58 template <typename DestinationServerIdT = Aws::String>
59 void SetDestinationServerId(DestinationServerIdT&& value) {
60 m_destinationServerIdHasBeenSet = true;
61 m_destinationServerId = std::forward<DestinationServerIdT>(value);
62 }
63 template <typename DestinationServerIdT = Aws::String>
64 NeighborConnectionDetail& WithDestinationServerId(DestinationServerIdT&& value) {
65 SetDestinationServerId(std::forward<DestinationServerIdT>(value));
66 return *this;
67 }
69
71
74 inline int GetDestinationPort() const { return m_destinationPort; }
75 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
76 inline void SetDestinationPort(int value) {
77 m_destinationPortHasBeenSet = true;
78 m_destinationPort = value;
79 }
81 SetDestinationPort(value);
82 return *this;
83 }
85
87
90 inline const Aws::String& GetTransportProtocol() const { return m_transportProtocol; }
91 inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
92 template <typename TransportProtocolT = Aws::String>
93 void SetTransportProtocol(TransportProtocolT&& value) {
94 m_transportProtocolHasBeenSet = true;
95 m_transportProtocol = std::forward<TransportProtocolT>(value);
96 }
97 template <typename TransportProtocolT = Aws::String>
98 NeighborConnectionDetail& WithTransportProtocol(TransportProtocolT&& value) {
99 SetTransportProtocol(std::forward<TransportProtocolT>(value));
100 return *this;
101 }
103
105
108 inline long long GetConnectionsCount() const { return m_connectionsCount; }
109 inline bool ConnectionsCountHasBeenSet() const { return m_connectionsCountHasBeenSet; }
110 inline void SetConnectionsCount(long long value) {
111 m_connectionsCountHasBeenSet = true;
112 m_connectionsCount = value;
113 }
115 SetConnectionsCount(value);
116 return *this;
117 }
119 private:
120 Aws::String m_sourceServerId;
121
122 Aws::String m_destinationServerId;
123
124 int m_destinationPort{0};
125
126 Aws::String m_transportProtocol;
127
128 long long m_connectionsCount{0};
129 bool m_sourceServerIdHasBeenSet = false;
130 bool m_destinationServerIdHasBeenSet = false;
131 bool m_destinationPortHasBeenSet = false;
132 bool m_transportProtocolHasBeenSet = false;
133 bool m_connectionsCountHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace ApplicationDiscoveryService
138} // namespace Aws
NeighborConnectionDetail & WithTransportProtocol(TransportProtocolT &&value)
NeighborConnectionDetail & WithDestinationServerId(DestinationServerIdT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail()=default
NeighborConnectionDetail & WithSourceServerId(SourceServerIdT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue