AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectPeer.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/ConnectPeerState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/networkmanager/model/ConnectPeerConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <aws/networkmanager/model/ConnectPeerError.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace NetworkManager
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_NETWORKMANAGER_API ConnectPeer();
41 AWS_NETWORKMANAGER_API ConnectPeer(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API ConnectPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
51 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
52 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
53 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
54 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
55 inline ConnectPeer& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
56 inline ConnectPeer& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
57 inline ConnectPeer& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
59
61
64 inline const Aws::String& GetConnectAttachmentId() const{ return m_connectAttachmentId; }
65 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
66 inline void SetConnectAttachmentId(const Aws::String& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = value; }
67 inline void SetConnectAttachmentId(Aws::String&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::move(value); }
68 inline void SetConnectAttachmentId(const char* value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId.assign(value); }
69 inline ConnectPeer& WithConnectAttachmentId(const Aws::String& value) { SetConnectAttachmentId(value); return *this;}
70 inline ConnectPeer& WithConnectAttachmentId(Aws::String&& value) { SetConnectAttachmentId(std::move(value)); return *this;}
71 inline ConnectPeer& WithConnectAttachmentId(const char* value) { SetConnectAttachmentId(value); return *this;}
73
75
78 inline const Aws::String& GetConnectPeerId() const{ return m_connectPeerId; }
79 inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; }
80 inline void SetConnectPeerId(const Aws::String& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = value; }
81 inline void SetConnectPeerId(Aws::String&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::move(value); }
82 inline void SetConnectPeerId(const char* value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId.assign(value); }
83 inline ConnectPeer& WithConnectPeerId(const Aws::String& value) { SetConnectPeerId(value); return *this;}
84 inline ConnectPeer& WithConnectPeerId(Aws::String&& value) { SetConnectPeerId(std::move(value)); return *this;}
85 inline ConnectPeer& WithConnectPeerId(const char* value) { SetConnectPeerId(value); return *this;}
87
89
92 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
93 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
94 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
95 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
96 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
97 inline ConnectPeer& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
98 inline ConnectPeer& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
99 inline ConnectPeer& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
101
103
106 inline const ConnectPeerState& GetState() const{ return m_state; }
107 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
108 inline void SetState(const ConnectPeerState& value) { m_stateHasBeenSet = true; m_state = value; }
109 inline void SetState(ConnectPeerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
110 inline ConnectPeer& WithState(const ConnectPeerState& value) { SetState(value); return *this;}
111 inline ConnectPeer& WithState(ConnectPeerState&& value) { SetState(std::move(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
119 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
120 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
121 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
122 inline ConnectPeer& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
123 inline ConnectPeer& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
125
127
130 inline const ConnectPeerConfiguration& GetConfiguration() const{ return m_configuration; }
131 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
132 inline void SetConfiguration(const ConnectPeerConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
133 inline void SetConfiguration(ConnectPeerConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
134 inline ConnectPeer& WithConfiguration(const ConnectPeerConfiguration& value) { SetConfiguration(value); return *this;}
135 inline ConnectPeer& WithConfiguration(ConnectPeerConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
137
139
142 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
145 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline ConnectPeer& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
147 inline ConnectPeer& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
148 inline ConnectPeer& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
149 inline ConnectPeer& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
151
153
157 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
158 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
159 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
160 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
161 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
162 inline ConnectPeer& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
163 inline ConnectPeer& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
164 inline ConnectPeer& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
166
168
171 inline const Aws::Vector<ConnectPeerError>& GetLastModificationErrors() const{ return m_lastModificationErrors; }
172 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
173 inline void SetLastModificationErrors(const Aws::Vector<ConnectPeerError>& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = value; }
174 inline void SetLastModificationErrors(Aws::Vector<ConnectPeerError>&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = std::move(value); }
177 inline ConnectPeer& AddLastModificationErrors(const ConnectPeerError& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.push_back(value); return *this; }
178 inline ConnectPeer& AddLastModificationErrors(ConnectPeerError&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.push_back(std::move(value)); return *this; }
180 private:
181
182 Aws::String m_coreNetworkId;
183 bool m_coreNetworkIdHasBeenSet = false;
184
185 Aws::String m_connectAttachmentId;
186 bool m_connectAttachmentIdHasBeenSet = false;
187
188 Aws::String m_connectPeerId;
189 bool m_connectPeerIdHasBeenSet = false;
190
191 Aws::String m_edgeLocation;
192 bool m_edgeLocationHasBeenSet = false;
193
194 ConnectPeerState m_state;
195 bool m_stateHasBeenSet = false;
196
197 Aws::Utils::DateTime m_createdAt;
198 bool m_createdAtHasBeenSet = false;
199
200 ConnectPeerConfiguration m_configuration;
201 bool m_configurationHasBeenSet = false;
202
203 Aws::Vector<Tag> m_tags;
204 bool m_tagsHasBeenSet = false;
205
206 Aws::String m_subnetArn;
207 bool m_subnetArnHasBeenSet = false;
208
209 Aws::Vector<ConnectPeerError> m_lastModificationErrors;
210 bool m_lastModificationErrorsHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace NetworkManager
215} // namespace Aws
AWS_NETWORKMANAGER_API ConnectPeer()
const ConnectPeerConfiguration & GetConfiguration() const
const Aws::String & GetCoreNetworkId() const
Definition ConnectPeer.h:50
ConnectPeer & WithCoreNetworkId(Aws::String &&value)
Definition ConnectPeer.h:56
void SetCoreNetworkId(const char *value)
Definition ConnectPeer.h:54
ConnectPeer & WithEdgeLocation(const char *value)
Definition ConnectPeer.h:99
void SetConnectPeerId(Aws::String &&value)
Definition ConnectPeer.h:81
void SetConnectPeerId(const Aws::String &value)
Definition ConnectPeer.h:80
void SetEdgeLocation(Aws::String &&value)
Definition ConnectPeer.h:95
ConnectPeer & AddLastModificationErrors(ConnectPeerError &&value)
void SetConnectPeerId(const char *value)
Definition ConnectPeer.h:82
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetConfiguration(const ConnectPeerConfiguration &value)
ConnectPeer & WithConnectPeerId(const char *value)
Definition ConnectPeer.h:85
ConnectPeer & WithConfiguration(ConnectPeerConfiguration &&value)
ConnectPeer & WithSubnetArn(const Aws::String &value)
ConnectPeer & WithTags(const Aws::Vector< Tag > &value)
void SetState(const ConnectPeerState &value)
const Aws::String & GetEdgeLocation() const
Definition ConnectPeer.h:92
ConnectPeer & WithConnectAttachmentId(const char *value)
Definition ConnectPeer.h:71
ConnectPeer & WithState(const ConnectPeerState &value)
const Aws::String & GetConnectPeerId() const
Definition ConnectPeer.h:78
void SetConnectAttachmentId(const Aws::String &value)
Definition ConnectPeer.h:66
ConnectPeer & WithConnectAttachmentId(const Aws::String &value)
Definition ConnectPeer.h:69
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCoreNetworkId(Aws::String &&value)
Definition ConnectPeer.h:53
void SetSubnetArn(const Aws::String &value)
ConnectPeer & WithConnectPeerId(const Aws::String &value)
Definition ConnectPeer.h:83
ConnectPeer & WithCoreNetworkId(const Aws::String &value)
Definition ConnectPeer.h:55
void SetConnectAttachmentId(const char *value)
Definition ConnectPeer.h:68
void SetState(ConnectPeerState &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< ConnectPeerError > & GetLastModificationErrors() const
ConnectPeer & WithConfiguration(const ConnectPeerConfiguration &value)
ConnectPeer & WithEdgeLocation(const Aws::String &value)
Definition ConnectPeer.h:97
ConnectPeer & WithLastModificationErrors(Aws::Vector< ConnectPeerError > &&value)
ConnectPeer & WithCoreNetworkId(const char *value)
Definition ConnectPeer.h:57
AWS_NETWORKMANAGER_API ConnectPeer(Aws::Utils::Json::JsonView jsonValue)
void SetLastModificationErrors(const Aws::Vector< ConnectPeerError > &value)
ConnectPeer & WithTags(Aws::Vector< Tag > &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeer & WithState(ConnectPeerState &&value)
AWS_NETWORKMANAGER_API ConnectPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Vector< Tag > &value)
ConnectPeer & WithConnectAttachmentId(Aws::String &&value)
Definition ConnectPeer.h:70
ConnectPeer & WithEdgeLocation(Aws::String &&value)
Definition ConnectPeer.h:98
ConnectPeer & AddTags(const Tag &value)
void SetLastModificationErrors(Aws::Vector< ConnectPeerError > &&value)
ConnectPeer & AddLastModificationErrors(const ConnectPeerError &value)
const Aws::String & GetConnectAttachmentId() const
Definition ConnectPeer.h:64
void SetTags(Aws::Vector< Tag > &&value)
ConnectPeer & WithCreatedAt(const Aws::Utils::DateTime &value)
ConnectPeer & WithConnectPeerId(Aws::String &&value)
Definition ConnectPeer.h:84
ConnectPeer & WithLastModificationErrors(const Aws::Vector< ConnectPeerError > &value)
const ConnectPeerState & GetState() const
ConnectPeer & WithCreatedAt(Aws::Utils::DateTime &&value)
ConnectPeer & WithSubnetArn(Aws::String &&value)
void SetConfiguration(ConnectPeerConfiguration &&value)
void SetSubnetArn(const char *value)
void SetConnectAttachmentId(Aws::String &&value)
Definition ConnectPeer.h:67
void SetSubnetArn(Aws::String &&value)
void SetEdgeLocation(const char *value)
Definition ConnectPeer.h:96
void SetEdgeLocation(const Aws::String &value)
Definition ConnectPeer.h:94
const Aws::String & GetSubnetArn() const
ConnectPeer & WithSubnetArn(const char *value)
void SetCoreNetworkId(const Aws::String &value)
Definition ConnectPeer.h:52
ConnectPeer & AddTags(Tag &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue