AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SocketAddress.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_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 GlobalAccelerator
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GLOBALACCELERATOR_API SocketAddress() = default;
35 AWS_GLOBALACCELERATOR_API SocketAddress(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API SocketAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
45 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
46 template<typename IpAddressT = Aws::String>
47 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
48 template<typename IpAddressT = Aws::String>
49 SocketAddress& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
51
53
56 inline int GetPort() const { return m_port; }
57 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
58 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
59 inline SocketAddress& WithPort(int value) { SetPort(value); return *this;}
61 private:
62
63 Aws::String m_ipAddress;
64 bool m_ipAddressHasBeenSet = false;
65
66 int m_port{0};
67 bool m_portHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace GlobalAccelerator
72} // 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