/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApplicationDiscoveryService { namespace Model { /** *

Details about neighboring servers.

See Also:

AWS * API Reference

*/ class NeighborConnectionDetail { public: AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail(); AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONDISCOVERYSERVICE_API NeighborConnectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the server that opened the network connection.

*/ inline const Aws::String& GetSourceServerId() const{ return m_sourceServerId; } /** *

The ID of the server that opened the network connection.

*/ inline bool SourceServerIdHasBeenSet() const { return m_sourceServerIdHasBeenSet; } /** *

The ID of the server that opened the network connection.

*/ inline void SetSourceServerId(const Aws::String& value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId = value; } /** *

The ID of the server that opened the network connection.

*/ inline void SetSourceServerId(Aws::String&& value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId = std::move(value); } /** *

The ID of the server that opened the network connection.

*/ inline void SetSourceServerId(const char* value) { m_sourceServerIdHasBeenSet = true; m_sourceServerId.assign(value); } /** *

The ID of the server that opened the network connection.

*/ inline NeighborConnectionDetail& WithSourceServerId(const Aws::String& value) { SetSourceServerId(value); return *this;} /** *

The ID of the server that opened the network connection.

*/ inline NeighborConnectionDetail& WithSourceServerId(Aws::String&& value) { SetSourceServerId(std::move(value)); return *this;} /** *

The ID of the server that opened the network connection.

*/ inline NeighborConnectionDetail& WithSourceServerId(const char* value) { SetSourceServerId(value); return *this;} /** *

The ID of the server that accepted the network connection.

*/ inline const Aws::String& GetDestinationServerId() const{ return m_destinationServerId; } /** *

The ID of the server that accepted the network connection.

*/ inline bool DestinationServerIdHasBeenSet() const { return m_destinationServerIdHasBeenSet; } /** *

The ID of the server that accepted the network connection.

*/ inline void SetDestinationServerId(const Aws::String& value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId = value; } /** *

The ID of the server that accepted the network connection.

*/ inline void SetDestinationServerId(Aws::String&& value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId = std::move(value); } /** *

The ID of the server that accepted the network connection.

*/ inline void SetDestinationServerId(const char* value) { m_destinationServerIdHasBeenSet = true; m_destinationServerId.assign(value); } /** *

The ID of the server that accepted the network connection.

*/ inline NeighborConnectionDetail& WithDestinationServerId(const Aws::String& value) { SetDestinationServerId(value); return *this;} /** *

The ID of the server that accepted the network connection.

*/ inline NeighborConnectionDetail& WithDestinationServerId(Aws::String&& value) { SetDestinationServerId(std::move(value)); return *this;} /** *

The ID of the server that accepted the network connection.

*/ inline NeighborConnectionDetail& WithDestinationServerId(const char* value) { SetDestinationServerId(value); return *this;} /** *

The destination network port for the connection.

*/ inline int GetDestinationPort() const{ return m_destinationPort; } /** *

The destination network port for the connection.

*/ inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; } /** *

The destination network port for the connection.

*/ inline void SetDestinationPort(int value) { m_destinationPortHasBeenSet = true; m_destinationPort = value; } /** *

The destination network port for the connection.

*/ inline NeighborConnectionDetail& WithDestinationPort(int value) { SetDestinationPort(value); return *this;} /** *

The network protocol used for the connection.

*/ inline const Aws::String& GetTransportProtocol() const{ return m_transportProtocol; } /** *

The network protocol used for the connection.

*/ inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; } /** *

The network protocol used for the connection.

*/ inline void SetTransportProtocol(const Aws::String& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = value; } /** *

The network protocol used for the connection.

*/ inline void SetTransportProtocol(Aws::String&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::move(value); } /** *

The network protocol used for the connection.

*/ inline void SetTransportProtocol(const char* value) { m_transportProtocolHasBeenSet = true; m_transportProtocol.assign(value); } /** *

The network protocol used for the connection.

*/ inline NeighborConnectionDetail& WithTransportProtocol(const Aws::String& value) { SetTransportProtocol(value); return *this;} /** *

The network protocol used for the connection.

*/ inline NeighborConnectionDetail& WithTransportProtocol(Aws::String&& value) { SetTransportProtocol(std::move(value)); return *this;} /** *

The network protocol used for the connection.

*/ inline NeighborConnectionDetail& WithTransportProtocol(const char* value) { SetTransportProtocol(value); return *this;} /** *

The number of open network connections with the neighboring server.

*/ inline long long GetConnectionsCount() const{ return m_connectionsCount; } /** *

The number of open network connections with the neighboring server.

*/ inline bool ConnectionsCountHasBeenSet() const { return m_connectionsCountHasBeenSet; } /** *

The number of open network connections with the neighboring server.

*/ inline void SetConnectionsCount(long long value) { m_connectionsCountHasBeenSet = true; m_connectionsCount = value; } /** *

The number of open network connections with the neighboring server.

*/ inline NeighborConnectionDetail& WithConnectionsCount(long long value) { SetConnectionsCount(value); return *this;} private: Aws::String m_sourceServerId; bool m_sourceServerIdHasBeenSet = false; Aws::String m_destinationServerId; bool m_destinationServerIdHasBeenSet = false; int m_destinationPort; bool m_destinationPortHasBeenSet = false; Aws::String m_transportProtocol; bool m_transportProtocolHasBeenSet = false; long long m_connectionsCount; bool m_connectionsCountHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws