/** * 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 GroundStation { namespace Model { /** *

Egress address of AgentEndpoint with an optional mtu.

See * Also:

AWS * API Reference

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

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

*/ inline int GetMtu() const{ return m_mtu; } /** *

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

*/ inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; } /** *

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

*/ inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; } /** *

Maximum transmission unit (MTU) size in bytes of a dataflow endpoint.

*/ inline ConnectionDetails& WithMtu(int value) { SetMtu(value); return *this;} /** *

A socket address.

*/ inline const SocketAddress& GetSocketAddress() const{ return m_socketAddress; } /** *

A socket address.

*/ inline bool SocketAddressHasBeenSet() const { return m_socketAddressHasBeenSet; } /** *

A socket address.

*/ inline void SetSocketAddress(const SocketAddress& value) { m_socketAddressHasBeenSet = true; m_socketAddress = value; } /** *

A socket address.

*/ inline void SetSocketAddress(SocketAddress&& value) { m_socketAddressHasBeenSet = true; m_socketAddress = std::move(value); } /** *

A socket address.

*/ inline ConnectionDetails& WithSocketAddress(const SocketAddress& value) { SetSocketAddress(value); return *this;} /** *

A socket address.

*/ inline ConnectionDetails& WithSocketAddress(SocketAddress&& value) { SetSocketAddress(std::move(value)); return *this;} private: int m_mtu; bool m_mtuHasBeenSet = false; SocketAddress m_socketAddress; bool m_socketAddressHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws