AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SocketAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlobalAccelerator {
20namespace Model {
21
28 public:
29 AWS_GLOBALACCELERATOR_API SocketAddress() = default;
30 AWS_GLOBALACCELERATOR_API SocketAddress(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GLOBALACCELERATOR_API SocketAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
39 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
40 template <typename IpAddressT = Aws::String>
41 void SetIpAddress(IpAddressT&& value) {
42 m_ipAddressHasBeenSet = true;
43 m_ipAddress = std::forward<IpAddressT>(value);
44 }
45 template <typename IpAddressT = Aws::String>
46 SocketAddress& WithIpAddress(IpAddressT&& value) {
47 SetIpAddress(std::forward<IpAddressT>(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_ipAddress;
69
70 int m_port{0};
71 bool m_ipAddressHasBeenSet = false;
72 bool m_portHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace GlobalAccelerator
77} // namespace Aws
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIpAddress() const
SocketAddress & WithIpAddress(IpAddressT &&value)
AWS_GLOBALACCELERATOR_API SocketAddress(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API SocketAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API SocketAddress()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue