AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SocketAddress.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GroundStation
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GROUNDSTATION_API SocketAddress();
35 AWS_GROUNDSTATION_API SocketAddress(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GROUNDSTATION_API SocketAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline SocketAddress& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline SocketAddress& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline SocketAddress& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline int GetPort() const{ return m_port; }
59 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
60 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
61 inline SocketAddress& WithPort(int value) { SetPort(value); return *this;}
63 private:
64
65 Aws::String m_name;
66 bool m_nameHasBeenSet = false;
67
68 int m_port;
69 bool m_portHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace GroundStation
74} // namespace Aws
void SetName(const Aws::String &value)
AWS_GROUNDSTATION_API SocketAddress(Aws::Utils::Json::JsonView jsonValue)
SocketAddress & WithPort(int value)
SocketAddress & WithName(const Aws::String &value)
AWS_GROUNDSTATION_API SocketAddress()
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
SocketAddress & WithName(const char *value)
SocketAddress & WithName(Aws::String &&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