AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceServerId(const Aws::String& value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId = value; }
47 inline void SetSourceServerId(Aws::String&& value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId = std::move(value); }
48 inline void SetSourceServerId(const char* value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId.assign(value); }
49 inline NeighborConnectionDetail& WithSourceServerId(const Aws::String& value) { SetSourceServerId(value); return *this;}
50 inline NeighborConnectionDetail& WithSourceServerId(Aws::String&& value) { SetSourceServerId(std::move(value)); return *this;}
51 inline NeighborConnectionDetail& WithSourceServerId(const char* value) { SetSourceServerId(value); return *this;}
53
55
58 inline const Aws::String& GetDestinationServerId() const{ return m_destinationServerId; }
59 inline bool DestinationServerIdHasBeenSet() const { return m_destinationServerIdHasBeenSet; }
60 inline void SetDestinationServerId(const Aws::String& value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId = value; }
61 inline void SetDestinationServerId(Aws::String&& value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId = std::move(value); }
62 inline void SetDestinationServerId(const char* value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId.assign(value); }
64 inline NeighborConnectionDetail& WithDestinationServerId(Aws::String&& value) { SetDestinationServerId(std::move(value)); return *this;}
65 inline NeighborConnectionDetail& WithDestinationServerId(const char* value) { SetDestinationServerId(value); return *this;}
67
69
72 inline int GetDestinationPort() const{ return m_destinationPort; }
73 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
74 inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; }
75 inline NeighborConnectionDetail& WithDestinationPort(int value) { SetDestinationPort(value); return *this;}
77
79
82 inline const Aws::String& GetTransportProtocol() const{ return m_transportProtocol; }
83 inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
84 inline void SetTransportProtocol(const Aws::String& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = value; }
85 inline void SetTransportProtocol(Aws::String&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::move(value); }
86 inline void SetTransportProtocol(const char* value) { m_transportProtocolHasBeenSet = true; m_transportProtocol.assign(value); }
88 inline NeighborConnectionDetail& WithTransportProtocol(Aws::String&& value) { SetTransportProtocol(std::move(value)); return *this;}
89 inline NeighborConnectionDetail& WithTransportProtocol(const char* value) { SetTransportProtocol(value); return *this;}
91
93
96 inline long long GetConnectionsCount() const{ return m_connectionsCount; }
97 inline bool ConnectionsCountHasBeenSet() const { return m_connectionsCountHasBeenSet; }
98 inline void SetConnectionsCount(long long value) { m_connectionsCountHasBeenSet = true; m_connectionsCount = value; }
99 inline NeighborConnectionDetail& WithConnectionsCount(long long value) { SetConnectionsCount(value); return *this;}
101 private:
102
103 Aws::String m_sourceServerId;
104 bool m_sourceServerIdHasBeenSet = false;
105
106 Aws::String m_destinationServerId;
107 bool m_destinationServerIdHasBeenSet = false;
108
109 int m_destinationPort;
110 bool m_destinationPortHasBeenSet = false;
111
112 Aws::String m_transportProtocol;
113 bool m_transportProtocolHasBeenSet = false;
114
115 long long m_connectionsCount;
116 bool m_connectionsCountHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ApplicationDiscoveryService
121} // namespace Aws
NeighborConnectionDetail & WithDestinationServerId(const char *value)
NeighborConnectionDetail & WithDestinationServerId(const Aws::String &value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
NeighborConnectionDetail & WithDestinationServerId(Aws::String &&value)
NeighborConnectionDetail & WithTransportProtocol(const Aws::String &value)
AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
NeighborConnectionDetail & WithTransportProtocol(Aws::String &&value)
NeighborConnectionDetail & WithSourceServerId(Aws::String &&value)
NeighborConnectionDetail & WithSourceServerId(const Aws::String &value)
NeighborConnectionDetail & WithTransportProtocol(const char *value)
AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail()
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