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/greengrass/Greengrass_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Greengrass {
20namespace Model {
21
28 public:
29 AWS_GREENGRASS_API ConnectivityInfo() = default;
30 AWS_GREENGRASS_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
39 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
40 template <typename HostAddressT = Aws::String>
41 void SetHostAddress(HostAddressT&& value) {
42 m_hostAddressHasBeenSet = true;
43 m_hostAddress = std::forward<HostAddressT>(value);
44 }
45 template <typename HostAddressT = Aws::String>
46 ConnectivityInfo& WithHostAddress(HostAddressT&& value) {
47 SetHostAddress(std::forward<HostAddressT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template <typename IdT = Aws::String>
59 void SetId(IdT&& value) {
60 m_idHasBeenSet = true;
61 m_id = std::forward<IdT>(value);
62 }
63 template <typename IdT = Aws::String>
64 ConnectivityInfo& WithId(IdT&& value) {
65 SetId(std::forward<IdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMetadata() const { return m_metadata; }
75 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
76 template <typename MetadataT = Aws::String>
77 void SetMetadata(MetadataT&& value) {
78 m_metadataHasBeenSet = true;
79 m_metadata = std::forward<MetadataT>(value);
80 }
81 template <typename MetadataT = Aws::String>
82 ConnectivityInfo& WithMetadata(MetadataT&& value) {
83 SetMetadata(std::forward<MetadataT>(value));
84 return *this;
85 }
87
89
92 inline int GetPortNumber() const { return m_portNumber; }
93 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
94 inline void SetPortNumber(int value) {
95 m_portNumberHasBeenSet = true;
96 m_portNumber = value;
97 }
98 inline ConnectivityInfo& WithPortNumber(int value) {
99 SetPortNumber(value);
100 return *this;
101 }
103 private:
104 Aws::String m_hostAddress;
105
106 Aws::String m_id;
107
108 Aws::String m_metadata;
109
110 int m_portNumber{0};
111 bool m_hostAddressHasBeenSet = false;
112 bool m_idHasBeenSet = false;
113 bool m_metadataHasBeenSet = false;
114 bool m_portNumberHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Greengrass
119} // namespace Aws
AWS_GREENGRASS_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API ConnectivityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHostAddress(HostAddressT &&value)
AWS_GREENGRASS_API ConnectivityInfo()=default
const Aws::String & GetHostAddress() const
const Aws::String & GetMetadata() const
ConnectivityInfo & WithHostAddress(HostAddressT &&value)
ConnectivityInfo & WithId(IdT &&value)
ConnectivityInfo & WithMetadata(MetadataT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectivityInfo & WithPortNumber(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue