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/greengrass/Greengrass_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 Greengrass
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GREENGRASS_API ConnectivityInfo();
35 AWS_GREENGRASS_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetHostAddress() const{ return m_hostAddress; }
45 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
46 inline void SetHostAddress(const Aws::String& value) { m_hostAddressHasBeenSet = true; m_hostAddress = value; }
47 inline void SetHostAddress(Aws::String&& value) { m_hostAddressHasBeenSet = true; m_hostAddress = std::move(value); }
48 inline void SetHostAddress(const char* value) { m_hostAddressHasBeenSet = true; m_hostAddress.assign(value); }
49 inline ConnectivityInfo& WithHostAddress(const Aws::String& value) { SetHostAddress(value); return *this;}
50 inline ConnectivityInfo& WithHostAddress(Aws::String&& value) { SetHostAddress(std::move(value)); return *this;}
51 inline ConnectivityInfo& WithHostAddress(const char* value) { SetHostAddress(value); return *this;}
53
55
58 inline const Aws::String& GetId() const{ return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 inline ConnectivityInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
64 inline ConnectivityInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65 inline ConnectivityInfo& WithId(const char* value) { SetId(value); return *this;}
67
69
72 inline const Aws::String& GetMetadata() const{ return m_metadata; }
73 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
74 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
75 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
76 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
77 inline ConnectivityInfo& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
78 inline ConnectivityInfo& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
79 inline ConnectivityInfo& WithMetadata(const char* value) { SetMetadata(value); return *this;}
81
83
86 inline int GetPortNumber() const{ return m_portNumber; }
87 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
88 inline void SetPortNumber(int value) { m_portNumberHasBeenSet = true; m_portNumber = value; }
89 inline ConnectivityInfo& WithPortNumber(int value) { SetPortNumber(value); return *this;}
91 private:
92
93 Aws::String m_hostAddress;
94 bool m_hostAddressHasBeenSet = false;
95
96 Aws::String m_id;
97 bool m_idHasBeenSet = false;
98
99 Aws::String m_metadata;
100 bool m_metadataHasBeenSet = false;
101
102 int m_portNumber;
103 bool m_portNumberHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Greengrass
108} // namespace Aws
ConnectivityInfo & WithHostAddress(const Aws::String &value)
ConnectivityInfo & WithMetadata(const Aws::String &value)
AWS_GREENGRASS_API ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API ConnectivityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectivityInfo & WithMetadata(Aws::String &&value)
ConnectivityInfo & WithId(const char *value)
const Aws::String & GetHostAddress() const
const Aws::String & GetMetadata() const
ConnectivityInfo & WithId(Aws::String &&value)
void SetMetadata(const Aws::String &value)
ConnectivityInfo & WithHostAddress(Aws::String &&value)
void SetId(const Aws::String &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectivityInfo & WithMetadata(const char *value)
void SetHostAddress(const Aws::String &value)
ConnectivityInfo & WithPortNumber(int value)
ConnectivityInfo & WithId(const Aws::String &value)
ConnectivityInfo & WithHostAddress(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue