AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NeighborConnectionDetail.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationDiscoveryService
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail() = default;
35 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetSourceServerId() const { return m_sourceServerId; }
45 inline bool SourceServerIdHasBeenSet() const { return m_sourceServerIdHasBeenSet; }
46 template<typename SourceServerIdT = Aws::String>
47 void SetSourceServerId(SourceServerIdT&& value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId = std::forward<SourceServerIdT>(value); }
48 template<typename SourceServerIdT = Aws::String>
49 NeighborConnectionDetail& WithSourceServerId(SourceServerIdT&& value) { SetSourceServerId(std::forward<SourceServerIdT>(value)); return *this;}
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) { m_destinationServerIdHasBeenSet = true; m_destinationServerId = std::forward<DestinationServerIdT>(value); }
60 template<typename DestinationServerIdT = Aws::String>
61 NeighborConnectionDetail& WithDestinationServerId(DestinationServerIdT&& value) { SetDestinationServerId(std::forward<DestinationServerIdT>(value)); return *this;}
63
65
68 inline int GetDestinationPort() const { return m_destinationPort; }
69 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
70 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
71 inline NeighborConnectionDetail& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
73
75
78 inline const Aws::String& GetTransportProtocol() const { return m_transportProtocol; }
79 inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
80 template<typename TransportProtocolT = Aws::String>
81 void SetTransportProtocol(TransportProtocolT&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::forward<TransportProtocolT>(value); }
82 template<typename TransportProtocolT = Aws::String>
83 NeighborConnectionDetail& WithTransportProtocol(TransportProtocolT&& value) { SetTransportProtocol(std::forward<TransportProtocolT>(value)); return *this;}
85
87
90 inline long long GetConnectionsCount() const { return m_connectionsCount; }
91 inline bool ConnectionsCountHasBeenSet() const { return m_connectionsCountHasBeenSet; }
92 inline void SetConnectionsCount(long long value) { m_connectionsCountHasBeenSet = true; m_connectionsCount = value; }
93 inline NeighborConnectionDetail& WithConnectionsCount(long long value) { SetConnectionsCount(value); return *this;}
95 private:
96
97 Aws::String m_sourceServerId;
98 bool m_sourceServerIdHasBeenSet = false;
99
100 Aws::String m_destinationServerId;
101 bool m_destinationServerIdHasBeenSet = false;
102
103 int m_destinationPort{0};
104 bool m_destinationPortHasBeenSet = false;
105
106 Aws::String m_transportProtocol;
107 bool m_transportProtocolHasBeenSet = false;
108
109 long long m_connectionsCount{0};
110 bool m_connectionsCountHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ApplicationDiscoveryService
115} // 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