AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectivityInfo.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_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 GreengrassV2
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_GREENGRASSV2_API ConnectivityInfo() = default;
37 AWS_GREENGRASSV2_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASSV2_API ConnectivityInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 ConnectivityInfo& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_hostAddressHasBeenSet = true; m_hostAddress = std::forward<HostAddressT>(value); }
63 template<typename HostAddressT = Aws::String>
64 ConnectivityInfo& WithHostAddress(HostAddressT&& value) { SetHostAddress(std::forward<HostAddressT>(value)); return *this;}
66
68
73 inline int GetPortNumber() const { return m_portNumber; }
74 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
75 inline void SetPortNumber(int value) { m_portNumberHasBeenSet = true; m_portNumber = value; }
76 inline ConnectivityInfo& WithPortNumber(int value) { SetPortNumber(value); return *this;}
78
80
84 inline const Aws::String& GetMetadata() const { return m_metadata; }
85 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
86 template<typename MetadataT = Aws::String>
87 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
88 template<typename MetadataT = Aws::String>
89 ConnectivityInfo& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
91 private:
92
93 Aws::String m_id;
94 bool m_idHasBeenSet = false;
95
96 Aws::String m_hostAddress;
97 bool m_hostAddressHasBeenSet = false;
98
99 int m_portNumber{0};
100 bool m_portNumberHasBeenSet = false;
101
102 Aws::String m_metadata;
103 bool m_metadataHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace GreengrassV2
108} // 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