AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline ConnectivityInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline ConnectivityInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline ConnectivityInfo& WithId(const char* value) { SetId(value); return *this;}
55
57
61 inline const Aws::String& GetHostAddress() const{ return m_hostAddress; }
62 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
63 inline void SetHostAddress(const Aws::String& value) { m_hostAddressHasBeenSet = true; m_hostAddress = value; }
64 inline void SetHostAddress(Aws::String&& value) { m_hostAddressHasBeenSet = true; m_hostAddress = std::move(value); }
65 inline void SetHostAddress(const char* value) { m_hostAddressHasBeenSet = true; m_hostAddress.assign(value); }
66 inline ConnectivityInfo& WithHostAddress(const Aws::String& value) { SetHostAddress(value); return *this;}
67 inline ConnectivityInfo& WithHostAddress(Aws::String&& value) { SetHostAddress(std::move(value)); return *this;}
68 inline ConnectivityInfo& WithHostAddress(const char* value) { SetHostAddress(value); return *this;}
70
72
77 inline int GetPortNumber() const{ return m_portNumber; }
78 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
79 inline void SetPortNumber(int value) { m_portNumberHasBeenSet = true; m_portNumber = value; }
80 inline ConnectivityInfo& WithPortNumber(int value) { SetPortNumber(value); return *this;}
82
84
88 inline const Aws::String& GetMetadata() const{ return m_metadata; }
89 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
90 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
91 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
92 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
93 inline ConnectivityInfo& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
94 inline ConnectivityInfo& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
95 inline ConnectivityInfo& WithMetadata(const char* value) { SetMetadata(value); return *this;}
97 private:
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
102 Aws::String m_hostAddress;
103 bool m_hostAddressHasBeenSet = false;
104
105 int m_portNumber;
106 bool m_portNumberHasBeenSet = false;
107
108 Aws::String m_metadata;
109 bool m_metadataHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GreengrassV2
114} // namespace Aws
ConnectivityInfo & WithMetadata(Aws::String &&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)
void SetHostAddress(const Aws::String &value)
void SetMetadata(const Aws::String &value)
ConnectivityInfo & WithId(Aws::String &&value)
ConnectivityInfo & WithHostAddress(const char *value)
ConnectivityInfo & WithId(const char *value)
ConnectivityInfo & WithPortNumber(int value)
void SetId(const Aws::String &value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectivityInfo & WithHostAddress(Aws::String &&value)
ConnectivityInfo & WithId(const Aws::String &value)
ConnectivityInfo & WithMetadata(const Aws::String &value)
ConnectivityInfo & WithMetadata(const char *value)
ConnectivityInfo & WithHostAddress(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue