AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
Accelerator.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
11#include <aws/globalaccelerator/model/AcceleratorEvent.h>
12#include <aws/globalaccelerator/model/AcceleratorStatus.h>
13#include <aws/globalaccelerator/model/IpAddressType.h>
14#include <aws/globalaccelerator/model/IpSet.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GlobalAccelerator {
26namespace Model {
27
37 public:
38 AWS_GLOBALACCELERATOR_API Accelerator() = default;
39 AWS_GLOBALACCELERATOR_API Accelerator(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLOBALACCELERATOR_API Accelerator& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
48 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
49 template <typename AcceleratorArnT = Aws::String>
50 void SetAcceleratorArn(AcceleratorArnT&& value) {
51 m_acceleratorArnHasBeenSet = true;
52 m_acceleratorArn = std::forward<AcceleratorArnT>(value);
53 }
54 template <typename AcceleratorArnT = Aws::String>
55 Accelerator& WithAcceleratorArn(AcceleratorArnT&& value) {
56 SetAcceleratorArn(std::forward<AcceleratorArnT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 Accelerator& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
85 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
86 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
87 inline void SetIpAddressType(IpAddressType value) {
88 m_ipAddressTypeHasBeenSet = true;
89 m_ipAddressType = value;
90 }
92 SetIpAddressType(value);
93 return *this;
94 }
96
98
103 inline bool GetEnabled() const { return m_enabled; }
104 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
105 inline void SetEnabled(bool value) {
106 m_enabledHasBeenSet = true;
107 m_enabled = value;
108 }
109 inline Accelerator& WithEnabled(bool value) {
110 SetEnabled(value);
111 return *this;
112 }
114
116
120 inline const Aws::Vector<IpSet>& GetIpSets() const { return m_ipSets; }
121 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
122 template <typename IpSetsT = Aws::Vector<IpSet>>
123 void SetIpSets(IpSetsT&& value) {
124 m_ipSetsHasBeenSet = true;
125 m_ipSets = std::forward<IpSetsT>(value);
126 }
127 template <typename IpSetsT = Aws::Vector<IpSet>>
128 Accelerator& WithIpSets(IpSetsT&& value) {
129 SetIpSets(std::forward<IpSetsT>(value));
130 return *this;
131 }
132 template <typename IpSetsT = IpSet>
133 Accelerator& AddIpSets(IpSetsT&& value) {
134 m_ipSetsHasBeenSet = true;
135 m_ipSets.emplace_back(std::forward<IpSetsT>(value));
136 return *this;
137 }
139
141
156 inline const Aws::String& GetDnsName() const { return m_dnsName; }
157 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
158 template <typename DnsNameT = Aws::String>
159 void SetDnsName(DnsNameT&& value) {
160 m_dnsNameHasBeenSet = true;
161 m_dnsName = std::forward<DnsNameT>(value);
162 }
163 template <typename DnsNameT = Aws::String>
164 Accelerator& WithDnsName(DnsNameT&& value) {
165 SetDnsName(std::forward<DnsNameT>(value));
166 return *this;
167 }
169
171
174 inline AcceleratorStatus GetStatus() const { return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(AcceleratorStatus value) {
177 m_statusHasBeenSet = true;
178 m_status = value;
179 }
181 SetStatus(value);
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
191 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
192 template <typename CreatedTimeT = Aws::Utils::DateTime>
193 void SetCreatedTime(CreatedTimeT&& value) {
194 m_createdTimeHasBeenSet = true;
195 m_createdTime = std::forward<CreatedTimeT>(value);
196 }
197 template <typename CreatedTimeT = Aws::Utils::DateTime>
198 Accelerator& WithCreatedTime(CreatedTimeT&& value) {
199 SetCreatedTime(std::forward<CreatedTimeT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
209 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
210 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
211 void SetLastModifiedTime(LastModifiedTimeT&& value) {
212 m_lastModifiedTimeHasBeenSet = true;
213 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
214 }
215 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
216 Accelerator& WithLastModifiedTime(LastModifiedTimeT&& value) {
217 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
218 return *this;
219 }
221
223
237 inline const Aws::String& GetDualStackDnsName() const { return m_dualStackDnsName; }
238 inline bool DualStackDnsNameHasBeenSet() const { return m_dualStackDnsNameHasBeenSet; }
239 template <typename DualStackDnsNameT = Aws::String>
240 void SetDualStackDnsName(DualStackDnsNameT&& value) {
241 m_dualStackDnsNameHasBeenSet = true;
242 m_dualStackDnsName = std::forward<DualStackDnsNameT>(value);
243 }
244 template <typename DualStackDnsNameT = Aws::String>
245 Accelerator& WithDualStackDnsName(DualStackDnsNameT&& value) {
246 SetDualStackDnsName(std::forward<DualStackDnsNameT>(value));
247 return *this;
248 }
250
252
256 inline const Aws::Vector<AcceleratorEvent>& GetEvents() const { return m_events; }
257 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
258 template <typename EventsT = Aws::Vector<AcceleratorEvent>>
259 void SetEvents(EventsT&& value) {
260 m_eventsHasBeenSet = true;
261 m_events = std::forward<EventsT>(value);
262 }
263 template <typename EventsT = Aws::Vector<AcceleratorEvent>>
264 Accelerator& WithEvents(EventsT&& value) {
265 SetEvents(std::forward<EventsT>(value));
266 return *this;
267 }
268 template <typename EventsT = AcceleratorEvent>
269 Accelerator& AddEvents(EventsT&& value) {
270 m_eventsHasBeenSet = true;
271 m_events.emplace_back(std::forward<EventsT>(value));
272 return *this;
273 }
275 private:
276 Aws::String m_acceleratorArn;
277
278 Aws::String m_name;
279
280 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
281
282 bool m_enabled{false};
283
284 Aws::Vector<IpSet> m_ipSets;
285
286 Aws::String m_dnsName;
287
289
290 Aws::Utils::DateTime m_createdTime{};
291
292 Aws::Utils::DateTime m_lastModifiedTime{};
293
294 Aws::String m_dualStackDnsName;
295
297 bool m_acceleratorArnHasBeenSet = false;
298 bool m_nameHasBeenSet = false;
299 bool m_ipAddressTypeHasBeenSet = false;
300 bool m_enabledHasBeenSet = false;
301 bool m_ipSetsHasBeenSet = false;
302 bool m_dnsNameHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_createdTimeHasBeenSet = false;
305 bool m_lastModifiedTimeHasBeenSet = false;
306 bool m_dualStackDnsNameHasBeenSet = false;
307 bool m_eventsHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace GlobalAccelerator
312} // namespace Aws
const Aws::String & GetDualStackDnsName() const
Accelerator & WithName(NameT &&value)
Definition Accelerator.h:74
Accelerator & WithDualStackDnsName(DualStackDnsNameT &&value)
const Aws::String & GetAcceleratorArn() const
Definition Accelerator.h:47
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDualStackDnsName(DualStackDnsNameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Accelerator & WithEnabled(bool value)
const Aws::Vector< IpSet > & GetIpSets() const
Accelerator & WithIpSets(IpSetsT &&value)
AWS_GLOBALACCELERATOR_API Accelerator & operator=(Aws::Utils::Json::JsonView jsonValue)
Accelerator & AddIpSets(IpSetsT &&value)
void SetStatus(AcceleratorStatus value)
void SetIpAddressType(IpAddressType value)
Definition Accelerator.h:87
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetDnsName() const
Accelerator & WithCreatedTime(CreatedTimeT &&value)
Accelerator & WithEvents(EventsT &&value)
Accelerator & WithDnsName(DnsNameT &&value)
AWS_GLOBALACCELERATOR_API Accelerator()=default
AWS_GLOBALACCELERATOR_API Accelerator(Aws::Utils::Json::JsonView jsonValue)
Accelerator & WithStatus(AcceleratorStatus value)
Accelerator & WithAcceleratorArn(AcceleratorArnT &&value)
Definition Accelerator.h:55
Accelerator & AddEvents(EventsT &&value)
const Aws::String & GetName() const
Definition Accelerator.h:66
void SetAcceleratorArn(AcceleratorArnT &&value)
Definition Accelerator.h:50
const Aws::Vector< AcceleratorEvent > & GetEvents() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Accelerator & WithIpAddressType(IpAddressType value)
Definition Accelerator.h:91
void SetCreatedTime(CreatedTimeT &&value)
Accelerator & WithLastModifiedTime(LastModifiedTimeT &&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