AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CoreNetworkIdT = Aws::String>
53 void SetCoreNetworkId(CoreNetworkIdT&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
54 template<typename CoreNetworkIdT = Aws::String>
55 ConnectPeer& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetConnectAttachmentId() const { return m_connectAttachmentId; }
63 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
64 template<typename ConnectAttachmentIdT = Aws::String>
65 void SetConnectAttachmentId(ConnectAttachmentIdT&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::forward<ConnectAttachmentIdT>(value); }
66 template<typename ConnectAttachmentIdT = Aws::String>
67 ConnectPeer& WithConnectAttachmentId(ConnectAttachmentIdT&& value) { SetConnectAttachmentId(std::forward<ConnectAttachmentIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetConnectPeerId() const { return m_connectPeerId; }
75 inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; }
76 template<typename ConnectPeerIdT = Aws::String>
77 void SetConnectPeerId(ConnectPeerIdT&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::forward<ConnectPeerIdT>(value); }
78 template<typename ConnectPeerIdT = Aws::String>
79 ConnectPeer& WithConnectPeerId(ConnectPeerIdT&& value) { SetConnectPeerId(std::forward<ConnectPeerIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
87 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
88 template<typename EdgeLocationT = Aws::String>
89 void SetEdgeLocation(EdgeLocationT&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::forward<EdgeLocationT>(value); }
90 template<typename EdgeLocationT = Aws::String>
91 ConnectPeer& WithEdgeLocation(EdgeLocationT&& value) { SetEdgeLocation(std::forward<EdgeLocationT>(value)); return *this;}
93
95
98 inline ConnectPeerState GetState() const { return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 inline void SetState(ConnectPeerState value) { m_stateHasBeenSet = true; m_state = value; }
101 inline ConnectPeer& WithState(ConnectPeerState value) { SetState(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
109 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
110 template<typename CreatedAtT = Aws::Utils::DateTime>
111 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
112 template<typename CreatedAtT = Aws::Utils::DateTime>
113 ConnectPeer& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
115
117
120 inline const ConnectPeerConfiguration& GetConfiguration() const { return m_configuration; }
121 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
122 template<typename ConfigurationT = ConnectPeerConfiguration>
123 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
124 template<typename ConfigurationT = ConnectPeerConfiguration>
125 ConnectPeer& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Vector<Tag>>
137 ConnectPeer& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsT = Tag>
139 ConnectPeer& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
141
143
147 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
148 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
149 template<typename SubnetArnT = Aws::String>
150 void SetSubnetArn(SubnetArnT&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::forward<SubnetArnT>(value); }
151 template<typename SubnetArnT = Aws::String>
152 ConnectPeer& WithSubnetArn(SubnetArnT&& value) { SetSubnetArn(std::forward<SubnetArnT>(value)); return *this;}
154
156
159 inline const Aws::Vector<ConnectPeerError>& GetLastModificationErrors() const { return m_lastModificationErrors; }
160 inline bool LastModificationErrorsHasBeenSet() const { return m_lastModificationErrorsHasBeenSet; }
161 template<typename LastModificationErrorsT = Aws::Vector<ConnectPeerError>>
162 void SetLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors = std::forward<LastModificationErrorsT>(value); }
163 template<typename LastModificationErrorsT = Aws::Vector<ConnectPeerError>>
164 ConnectPeer& WithLastModificationErrors(LastModificationErrorsT&& value) { SetLastModificationErrors(std::forward<LastModificationErrorsT>(value)); return *this;}
165 template<typename LastModificationErrorsT = ConnectPeerError>
166 ConnectPeer& AddLastModificationErrors(LastModificationErrorsT&& value) { m_lastModificationErrorsHasBeenSet = true; m_lastModificationErrors.emplace_back(std::forward<LastModificationErrorsT>(value)); return *this; }
168 private:
169
170 Aws::String m_coreNetworkId;
171 bool m_coreNetworkIdHasBeenSet = false;
172
173 Aws::String m_connectAttachmentId;
174 bool m_connectAttachmentIdHasBeenSet = false;
175
176 Aws::String m_connectPeerId;
177 bool m_connectPeerIdHasBeenSet = false;
178
179 Aws::String m_edgeLocation;
180 bool m_edgeLocationHasBeenSet = false;
181
183 bool m_stateHasBeenSet = false;
184
185 Aws::Utils::DateTime m_createdAt{};
186 bool m_createdAtHasBeenSet = false;
187
188 ConnectPeerConfiguration m_configuration;
189 bool m_configurationHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193
194 Aws::String m_subnetArn;
195 bool m_subnetArnHasBeenSet = false;
196
197 Aws::Vector<ConnectPeerError> m_lastModificationErrors;
198 bool m_lastModificationErrorsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace NetworkManager
203} // namespace Aws
ConnectPeer & WithTags(TagsT &&value)
void SetCreatedAt(CreatedAtT &&value)
const ConnectPeerConfiguration & GetConfiguration() const
const Aws::String & GetCoreNetworkId() const
Definition ConnectPeer.h:50
void SetConnectAttachmentId(ConnectAttachmentIdT &&value)
Definition ConnectPeer.h:65
ConnectPeer & AddTags(TagsT &&value)
ConnectPeer & WithState(ConnectPeerState value)
ConnectPeer & WithSubnetArn(SubnetArnT &&value)
const Aws::String & GetEdgeLocation() const
Definition ConnectPeer.h:86
void SetEdgeLocation(EdgeLocationT &&value)
Definition ConnectPeer.h:89
const Aws::String & GetConnectPeerId() const
Definition ConnectPeer.h:74
ConnectPeer & WithConnectAttachmentId(ConnectAttachmentIdT &&value)
Definition ConnectPeer.h:67
ConnectPeer & WithEdgeLocation(EdgeLocationT &&value)
Definition ConnectPeer.h:91
const Aws::Utils::DateTime & GetCreatedAt() const
void SetConfiguration(ConfigurationT &&value)
void SetCoreNetworkId(CoreNetworkIdT &&value)
Definition ConnectPeer.h:53
void SetState(ConnectPeerState value)
AWS_NETWORKMANAGER_API ConnectPeer()=default
const Aws::Vector< Tag > & GetTags() const
void SetSubnetArn(SubnetArnT &&value)
const Aws::Vector< ConnectPeerError > & GetLastModificationErrors() const
ConnectPeer & WithConfiguration(ConfigurationT &&value)
ConnectPeer & AddLastModificationErrors(LastModificationErrorsT &&value)
AWS_NETWORKMANAGER_API ConnectPeer(Aws::Utils::Json::JsonView jsonValue)
ConnectPeer & WithConnectPeerId(ConnectPeerIdT &&value)
Definition ConnectPeer.h:79
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ConnectPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectPeerId(ConnectPeerIdT &&value)
Definition ConnectPeer.h:77
const Aws::String & GetConnectAttachmentId() const
Definition ConnectPeer.h:62
ConnectPeer & WithCreatedAt(CreatedAtT &&value)
ConnectPeerState GetState() const
Definition ConnectPeer.h:98
ConnectPeer & WithCoreNetworkId(CoreNetworkIdT &&value)
Definition ConnectPeer.h:55
void SetLastModificationErrors(LastModificationErrorsT &&value)
ConnectPeer & WithLastModificationErrors(LastModificationErrorsT &&value)
const Aws::String & GetSubnetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue