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/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() = default;
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 template<typename HostAddressT = Aws::String>
47 void SetHostAddress(HostAddressT&& value) { m_hostAddressHasBeenSet = true; m_hostAddress = std::forward<HostAddressT>(value); }
48 template<typename HostAddressT = Aws::String>
49 ConnectivityInfo& WithHostAddress(HostAddressT&& value) { SetHostAddress(std::forward<HostAddressT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
60 template<typename IdT = Aws::String>
61 ConnectivityInfo& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetMetadata() const { return m_metadata; }
69 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
70 template<typename MetadataT = Aws::String>
71 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
72 template<typename MetadataT = Aws::String>
73 ConnectivityInfo& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
75
77
80 inline int GetPortNumber() const { return m_portNumber; }
81 inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
82 inline void SetPortNumber(int value) { m_portNumberHasBeenSet = true; m_portNumber = value; }
83 inline ConnectivityInfo& WithPortNumber(int value) { SetPortNumber(value); return *this;}
85 private:
86
87 Aws::String m_hostAddress;
88 bool m_hostAddressHasBeenSet = false;
89
90 Aws::String m_id;
91 bool m_idHasBeenSet = false;
92
93 Aws::String m_metadata;
94 bool m_metadataHasBeenSet = false;
95
96 int m_portNumber{0};
97 bool m_portNumberHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Greengrass
102} // 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