AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConnectivityInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GreengrassV2 {
20namespace Model {
21
30 public:
31 AWS_GREENGRASSV2_API ConnectivityInfo() = default;
32 AWS_GREENGRASSV2_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GREENGRASSV2_API ConnectivityInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 ConnectivityInfo& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
60 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
61 template <typename HostAddressT = Aws::String>
62 void SetHostAddress(HostAddressT&& value) {
63 m_hostAddressHasBeenSet = true;
64 m_hostAddress = std::forward<HostAddressT>(value);
65 }
66 template <typename HostAddressT = Aws::String>
67 ConnectivityInfo& WithHostAddress(HostAddressT&& value) {
68 SetHostAddress(std::forward<HostAddressT>(value));
69 return *this;
70 }
72
74
79 inline int GetPortNumber() const { return m_portNumber; }
80 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
81 inline void SetPortNumber(int value) {
82 m_portNumberHasBeenSet = true;
83 m_portNumber = value;
84 }
85 inline ConnectivityInfo& WithPortNumber(int value) {
86 SetPortNumber(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetMetadata() const { return m_metadata; }
97 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
98 template <typename MetadataT = Aws::String>
99 void SetMetadata(MetadataT&& value) {
100 m_metadataHasBeenSet = true;
101 m_metadata = std::forward<MetadataT>(value);
102 }
103 template <typename MetadataT = Aws::String>
104 ConnectivityInfo& WithMetadata(MetadataT&& value) {
105 SetMetadata(std::forward<MetadataT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_id;
111
112 Aws::String m_hostAddress;
113
114 int m_portNumber{0};
115
116 Aws::String m_metadata;
117 bool m_idHasBeenSet = false;
118 bool m_hostAddressHasBeenSet = false;
119 bool m_portNumberHasBeenSet = false;
120 bool m_metadataHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace GreengrassV2
125} // namespace Aws
ConnectivityInfo & WithHostAddress(HostAddressT &&value)
AWS_GREENGRASSV2_API ConnectivityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHostAddress() const
AWS_GREENGRASSV2_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API ConnectivityInfo()=default
ConnectivityInfo & WithId(IdT &&value)
ConnectivityInfo & WithPortNumber(int value)
ConnectivityInfo & WithMetadata(MetadataT &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue