AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LinkIdT = Aws::String>
52 void SetLinkId(LinkIdT&& value) { m_linkIdHasBeenSet = true; m_linkId = std::forward<LinkIdT>(value); }
53 template<typename LinkIdT = Aws::String>
54 Link& WithLinkId(LinkIdT&& value) { SetLinkId(std::forward<LinkIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetLinkArn() const { return m_linkArn; }
62 inline bool LinkArnHasBeenSet() const { return m_linkArnHasBeenSet; }
63 template<typename LinkArnT = Aws::String>
64 void SetLinkArn(LinkArnT&& value) { m_linkArnHasBeenSet = true; m_linkArn = std::forward<LinkArnT>(value); }
65 template<typename LinkArnT = Aws::String>
66 Link& WithLinkArn(LinkArnT&& value) { SetLinkArn(std::forward<LinkArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
74 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
75 template<typename GlobalNetworkIdT = Aws::String>
76 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
77 template<typename GlobalNetworkIdT = Aws::String>
78 Link& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetSiteId() const { return m_siteId; }
86 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
87 template<typename SiteIdT = Aws::String>
88 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
89 template<typename SiteIdT = Aws::String>
90 Link& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 Link& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline const Aws::String& GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 template<typename TypeT = Aws::String>
112 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
113 template<typename TypeT = Aws::String>
114 Link& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
116
118
121 inline const Bandwidth& GetBandwidth() const { return m_bandwidth; }
122 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
123 template<typename BandwidthT = Bandwidth>
124 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
125 template<typename BandwidthT = Bandwidth>
126 Link& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
128
130
133 inline const Aws::String& GetProvider() const { return m_provider; }
134 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
135 template<typename ProviderT = Aws::String>
136 void SetProvider(ProviderT&& value) { m_providerHasBeenSet = true; m_provider = std::forward<ProviderT>(value); }
137 template<typename ProviderT = Aws::String>
138 Link& WithProvider(ProviderT&& value) { SetProvider(std::forward<ProviderT>(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
147 template<typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
149 template<typename CreatedAtT = Aws::Utils::DateTime>
150 Link& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
152
154
157 inline LinkState GetState() const { return m_state; }
158 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
159 inline void SetState(LinkState value) { m_stateHasBeenSet = true; m_state = value; }
160 inline Link& WithState(LinkState value) { SetState(value); return *this;}
162
164
167 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template<typename TagsT = Aws::Vector<Tag>>
170 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
171 template<typename TagsT = Aws::Vector<Tag>>
172 Link& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
173 template<typename TagsT = Tag>
174 Link& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
176 private:
177
178 Aws::String m_linkId;
179 bool m_linkIdHasBeenSet = false;
180
181 Aws::String m_linkArn;
182 bool m_linkArnHasBeenSet = false;
183
184 Aws::String m_globalNetworkId;
185 bool m_globalNetworkIdHasBeenSet = false;
186
187 Aws::String m_siteId;
188 bool m_siteIdHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 Aws::String m_type;
194 bool m_typeHasBeenSet = false;
195
196 Bandwidth m_bandwidth;
197 bool m_bandwidthHasBeenSet = false;
198
199 Aws::String m_provider;
200 bool m_providerHasBeenSet = false;
201
202 Aws::Utils::DateTime m_createdAt{};
203 bool m_createdAtHasBeenSet = false;
204
206 bool m_stateHasBeenSet = false;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_tagsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace NetworkManager
214} // 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