AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DataflowEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/groundstation/GroundStation_EXPORTS.h>
9#include <aws/groundstation/model/EndpointStatus.h>
10#include <aws/groundstation/model/SocketAddress.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GroundStation {
22namespace Model {
23
30 public:
31 AWS_GROUNDSTATION_API DataflowEndpoint() = default;
32 AWS_GROUNDSTATION_API DataflowEndpoint(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API DataflowEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DataflowEndpoint& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const SocketAddress& GetAddress() const { return m_address; }
59 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
60 template <typename AddressT = SocketAddress>
61 void SetAddress(AddressT&& value) {
62 m_addressHasBeenSet = true;
63 m_address = std::forward<AddressT>(value);
64 }
65 template <typename AddressT = SocketAddress>
66 DataflowEndpoint& WithAddress(AddressT&& value) {
67 SetAddress(std::forward<AddressT>(value));
68 return *this;
69 }
71
73
76 inline EndpointStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(EndpointStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline int GetMtu() const { return m_mtu; }
93 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
94 inline void SetMtu(int value) {
95 m_mtuHasBeenSet = true;
96 m_mtu = value;
97 }
98 inline DataflowEndpoint& WithMtu(int value) {
99 SetMtu(value);
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
106 SocketAddress m_address;
107
109
110 int m_mtu{0};
111 bool m_nameHasBeenSet = false;
112 bool m_addressHasBeenSet = false;
113 bool m_statusHasBeenSet = false;
114 bool m_mtuHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace GroundStation
119} // namespace Aws
DataflowEndpoint & WithStatus(EndpointStatus value)
DataflowEndpoint & WithName(NameT &&value)
const SocketAddress & GetAddress() const
AWS_GROUNDSTATION_API DataflowEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API DataflowEndpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API DataflowEndpoint()=default
DataflowEndpoint & WithAddress(AddressT &&value)
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue