AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Link.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/Bandwidth.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/networkmanager/model/LinkState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace NetworkManager
27{
28namespace Model
29{
30
36 class Link
37 {
38 public:
39 AWS_NETWORKMANAGER_API Link();
40 AWS_NETWORKMANAGER_API Link(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Link& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetLinkId() const{ return m_linkId; }
50 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
51 inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
52 inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
53 inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
54 inline Link& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
55 inline Link& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
56 inline Link& WithLinkId(const char* value) { SetLinkId(value); return *this;}
58
60
63 inline const Aws::String& GetLinkArn() const{ return m_linkArn; }
64 inline bool LinkArnHasBeenSet() const { return m_linkArnHasBeenSet; }
65 inline void SetLinkArn(const Aws::String& value) { m_linkArnHasBeenSet = true; m_linkArn = value; }
66 inline void SetLinkArn(Aws::String&& value) { m_linkArnHasBeenSet = true; m_linkArn = std::move(value); }
67 inline void SetLinkArn(const char* value) { m_linkArnHasBeenSet = true; m_linkArn.assign(value); }
68 inline Link& WithLinkArn(const Aws::String& value) { SetLinkArn(value); return *this;}
69 inline Link& WithLinkArn(Aws::String&& value) { SetLinkArn(std::move(value)); return *this;}
70 inline Link& WithLinkArn(const char* value) { SetLinkArn(value); return *this;}
72
74
77 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
78 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
79 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
80 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
81 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
82 inline Link& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
83 inline Link& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
84 inline Link& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
86
88
91 inline const Aws::String& GetSiteId() const{ return m_siteId; }
92 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
93 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
94 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
95 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
96 inline Link& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
97 inline Link& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
98 inline Link& WithSiteId(const char* value) { SetSiteId(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline Link& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline Link& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline Link& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline const Aws::String& GetType() const{ return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
122 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
123 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
124 inline Link& WithType(const Aws::String& value) { SetType(value); return *this;}
125 inline Link& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
126 inline Link& WithType(const char* value) { SetType(value); return *this;}
128
130
133 inline const Bandwidth& GetBandwidth() const{ return m_bandwidth; }
134 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
135 inline void SetBandwidth(const Bandwidth& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
136 inline void SetBandwidth(Bandwidth&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); }
137 inline Link& WithBandwidth(const Bandwidth& value) { SetBandwidth(value); return *this;}
138 inline Link& WithBandwidth(Bandwidth&& value) { SetBandwidth(std::move(value)); return *this;}
140
142
145 inline const Aws::String& GetProvider() const{ return m_provider; }
146 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
147 inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; }
148 inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
149 inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); }
150 inline Link& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
151 inline Link& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
152 inline Link& WithProvider(const char* value) { SetProvider(value); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
160 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
161 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
162 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
163 inline Link& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
164 inline Link& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
166
168
171 inline const LinkState& GetState() const{ return m_state; }
172 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
173 inline void SetState(const LinkState& value) { m_stateHasBeenSet = true; m_state = value; }
174 inline void SetState(LinkState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
175 inline Link& WithState(const LinkState& value) { SetState(value); return *this;}
176 inline Link& WithState(LinkState&& value) { SetState(std::move(value)); return *this;}
178
180
183 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 inline Link& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
188 inline Link& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
189 inline Link& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
190 inline Link& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
192 private:
193
194 Aws::String m_linkId;
195 bool m_linkIdHasBeenSet = false;
196
197 Aws::String m_linkArn;
198 bool m_linkArnHasBeenSet = false;
199
200 Aws::String m_globalNetworkId;
201 bool m_globalNetworkIdHasBeenSet = false;
202
203 Aws::String m_siteId;
204 bool m_siteIdHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 Aws::String m_type;
210 bool m_typeHasBeenSet = false;
211
212 Bandwidth m_bandwidth;
213 bool m_bandwidthHasBeenSet = false;
214
215 Aws::String m_provider;
216 bool m_providerHasBeenSet = false;
217
218 Aws::Utils::DateTime m_createdAt;
219 bool m_createdAtHasBeenSet = false;
220
221 LinkState m_state;
222 bool m_stateHasBeenSet = false;
223
224 Aws::Vector<Tag> m_tags;
225 bool m_tagsHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace NetworkManager
230} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue