AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectPeerAssociation.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/ConnectPeerAssociationState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKMANAGER_API ConnectPeerAssociation() = default;
37 AWS_NETWORKMANAGER_API ConnectPeerAssociation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetConnectPeerId() const { return m_connectPeerId; }
47 inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; }
48 template<typename ConnectPeerIdT = Aws::String>
49 void SetConnectPeerId(ConnectPeerIdT&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::forward<ConnectPeerIdT>(value); }
50 template<typename ConnectPeerIdT = Aws::String>
51 ConnectPeerAssociation& WithConnectPeerId(ConnectPeerIdT&& value) { SetConnectPeerId(std::forward<ConnectPeerIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
59 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
60 template<typename GlobalNetworkIdT = Aws::String>
61 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
62 template<typename GlobalNetworkIdT = Aws::String>
63 ConnectPeerAssociation& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
71 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
72 template<typename DeviceIdT = Aws::String>
73 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
74 template<typename DeviceIdT = Aws::String>
75 ConnectPeerAssociation& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetLinkId() const { return m_linkId; }
83 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
84 template<typename LinkIdT = Aws::String>
85 void SetLinkId(LinkIdT&& value) { m_linkIdHasBeenSet = true; m_linkId = std::forward<LinkIdT>(value); }
86 template<typename LinkIdT = Aws::String>
87 ConnectPeerAssociation& WithLinkId(LinkIdT&& value) { SetLinkId(std::forward<LinkIdT>(value)); return *this;}
89
91
94 inline ConnectPeerAssociationState GetState() const { return m_state; }
95 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
96 inline void SetState(ConnectPeerAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
99 private:
100
101 Aws::String m_connectPeerId;
102 bool m_connectPeerIdHasBeenSet = false;
103
104 Aws::String m_globalNetworkId;
105 bool m_globalNetworkIdHasBeenSet = false;
106
107 Aws::String m_deviceId;
108 bool m_deviceIdHasBeenSet = false;
109
110 Aws::String m_linkId;
111 bool m_linkIdHasBeenSet = false;
112
114 bool m_stateHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace NetworkManager
119} // namespace Aws
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(ConnectPeerAssociationState value)
AWS_NETWORKMANAGER_API ConnectPeerAssociation()=default
ConnectPeerAssociation & WithLinkId(LinkIdT &&value)
AWS_NETWORKMANAGER_API ConnectPeerAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerAssociation & WithConnectPeerId(ConnectPeerIdT &&value)
AWS_NETWORKMANAGER_API ConnectPeerAssociation(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerAssociation & WithState(ConnectPeerAssociationState value)
ConnectPeerAssociation & WithGlobalNetworkId(GlobalNetworkIdT &&value)
ConnectPeerAssociation & WithDeviceId(DeviceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue