AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConnectionDetails.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/groundstation/model/SocketAddress.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GroundStation {
20namespace Model {
21
29 public:
30 AWS_GROUNDSTATION_API ConnectionDetails() = default;
31 AWS_GROUNDSTATION_API ConnectionDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GROUNDSTATION_API ConnectionDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const SocketAddress& GetSocketAddress() const { return m_socketAddress; }
40 inline bool SocketAddressHasBeenSet() const { return m_socketAddressHasBeenSet; }
41 template <typename SocketAddressT = SocketAddress>
42 void SetSocketAddress(SocketAddressT&& value) {
43 m_socketAddressHasBeenSet = true;
44 m_socketAddress = std::forward<SocketAddressT>(value);
45 }
46 template <typename SocketAddressT = SocketAddress>
47 ConnectionDetails& WithSocketAddress(SocketAddressT&& value) {
48 SetSocketAddress(std::forward<SocketAddressT>(value));
49 return *this;
50 }
52
54
57 inline int GetMtu() const { return m_mtu; }
58 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
59 inline void SetMtu(int value) {
60 m_mtuHasBeenSet = true;
61 m_mtu = value;
62 }
63 inline ConnectionDetails& WithMtu(int value) {
64 SetMtu(value);
65 return *this;
66 }
68 private:
69 SocketAddress m_socketAddress;
70
71 int m_mtu{0};
72 bool m_socketAddressHasBeenSet = false;
73 bool m_mtuHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GroundStation
78} // namespace Aws
AWS_GROUNDSTATION_API ConnectionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API ConnectionDetails(Aws::Utils::Json::JsonView jsonValue)
ConnectionDetails & WithSocketAddress(SocketAddressT &&value)
const SocketAddress & GetSocketAddress() const
AWS_GROUNDSTATION_API ConnectionDetails()=default
void SetSocketAddress(SocketAddressT &&value)
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue