AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SocketAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/groundstation/GroundStation_EXPORTS.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
28 public:
29 AWS_GROUNDSTATION_API SocketAddress() = default;
30 AWS_GROUNDSTATION_API SocketAddress(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GROUNDSTATION_API SocketAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 SocketAddress& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline int GetPort() const { return m_port; }
57 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
58 inline void SetPort(int value) {
59 m_portHasBeenSet = true;
60 m_port = value;
61 }
62 inline SocketAddress& WithPort(int value) {
63 SetPort(value);
64 return *this;
65 }
67 private:
68 Aws::String m_name;
69
70 int m_port{0};
71 bool m_nameHasBeenSet = false;
72 bool m_portHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace GroundStation
77} // namespace Aws
AWS_GROUNDSTATION_API SocketAddress(Aws::Utils::Json::JsonView jsonValue)
SocketAddress & WithPort(int value)
AWS_GROUNDSTATION_API SocketAddress()=default
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
SocketAddress & WithName(NameT &&value)
const Aws::String & GetName() const
AWS_GROUNDSTATION_API SocketAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue