AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectPeerId(const Aws::String& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = value; }
49 inline void SetConnectPeerId(Aws::String&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::move(value); }
50 inline void SetConnectPeerId(const char* value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId.assign(value); }
51 inline ConnectPeerAssociation& WithConnectPeerId(const Aws::String& value) { SetConnectPeerId(value); return *this;}
52 inline ConnectPeerAssociation& WithConnectPeerId(Aws::String&& value) { SetConnectPeerId(std::move(value)); return *this;}
53 inline ConnectPeerAssociation& WithConnectPeerId(const char* value) { SetConnectPeerId(value); return *this;}
55
57
60 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
61 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
62 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
63 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
64 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
65 inline ConnectPeerAssociation& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
66 inline ConnectPeerAssociation& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
67 inline ConnectPeerAssociation& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
69
71
74 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
75 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
76 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
77 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
78 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
79 inline ConnectPeerAssociation& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
80 inline ConnectPeerAssociation& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
81 inline ConnectPeerAssociation& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
83
85
88 inline const Aws::String& GetLinkId() const{ return m_linkId; }
89 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
90 inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
91 inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
92 inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
93 inline ConnectPeerAssociation& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
94 inline ConnectPeerAssociation& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
95 inline ConnectPeerAssociation& WithLinkId(const char* value) { SetLinkId(value); return *this;}
97
99
102 inline const ConnectPeerAssociationState& GetState() const{ return m_state; }
103 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 inline void SetState(const ConnectPeerAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
105 inline void SetState(ConnectPeerAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
106 inline ConnectPeerAssociation& WithState(const ConnectPeerAssociationState& value) { SetState(value); return *this;}
107 inline ConnectPeerAssociation& WithState(ConnectPeerAssociationState&& value) { SetState(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_connectPeerId;
112 bool m_connectPeerIdHasBeenSet = false;
113
114 Aws::String m_globalNetworkId;
115 bool m_globalNetworkIdHasBeenSet = false;
116
117 Aws::String m_deviceId;
118 bool m_deviceIdHasBeenSet = false;
119
120 Aws::String m_linkId;
121 bool m_linkIdHasBeenSet = false;
122
124 bool m_stateHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace NetworkManager
129} // namespace Aws
const ConnectPeerAssociationState & GetState() const
ConnectPeerAssociation & WithGlobalNetworkId(const char *value)
ConnectPeerAssociation & WithLinkId(const char *value)
ConnectPeerAssociation & WithDeviceId(const Aws::String &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const ConnectPeerAssociationState &value)
ConnectPeerAssociation & WithConnectPeerId(const Aws::String &value)
ConnectPeerAssociation & WithDeviceId(Aws::String &&value)
ConnectPeerAssociation & WithLinkId(const Aws::String &value)
ConnectPeerAssociation & WithGlobalNetworkId(const Aws::String &value)
ConnectPeerAssociation & WithDeviceId(const char *value)
AWS_NETWORKMANAGER_API ConnectPeerAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerAssociation & WithConnectPeerId(Aws::String &&value)
AWS_NETWORKMANAGER_API ConnectPeerAssociation(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerAssociation & WithConnectPeerId(const char *value)
ConnectPeerAssociation & WithState(ConnectPeerAssociationState &&value)
void SetState(ConnectPeerAssociationState &&value)
ConnectPeerAssociation & WithState(const ConnectPeerAssociationState &value)
ConnectPeerAssociation & WithLinkId(Aws::String &&value)
ConnectPeerAssociation & WithGlobalNetworkId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue