AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Accelerator.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/globalaccelerator/model/IpAddressType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/globalaccelerator/model/AcceleratorStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/globalaccelerator/model/IpSet.h>
14#include <aws/globalaccelerator/model/AcceleratorEvent.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 GlobalAccelerator
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_GLOBALACCELERATOR_API Accelerator() = default;
44 AWS_GLOBALACCELERATOR_API Accelerator(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GLOBALACCELERATOR_API Accelerator& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
54 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
55 template<typename AcceleratorArnT = Aws::String>
56 void SetAcceleratorArn(AcceleratorArnT&& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = std::forward<AcceleratorArnT>(value); }
57 template<typename AcceleratorArnT = Aws::String>
58 Accelerator& WithAcceleratorArn(AcceleratorArnT&& value) { SetAcceleratorArn(std::forward<AcceleratorArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 Accelerator& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
79 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
80 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
81 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
82 inline Accelerator& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
84
86
91 inline bool GetEnabled() const { return m_enabled; }
92 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
93 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
94 inline Accelerator& WithEnabled(bool value) { SetEnabled(value); return *this;}
96
98
102 inline const Aws::Vector<IpSet>& GetIpSets() const { return m_ipSets; }
103 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
104 template<typename IpSetsT = Aws::Vector<IpSet>>
105 void SetIpSets(IpSetsT&& value) { m_ipSetsHasBeenSet = true; m_ipSets = std::forward<IpSetsT>(value); }
106 template<typename IpSetsT = Aws::Vector<IpSet>>
107 Accelerator& WithIpSets(IpSetsT&& value) { SetIpSets(std::forward<IpSetsT>(value)); return *this;}
108 template<typename IpSetsT = IpSet>
109 Accelerator& AddIpSets(IpSetsT&& value) { m_ipSetsHasBeenSet = true; m_ipSets.emplace_back(std::forward<IpSetsT>(value)); return *this; }
111
113
127 inline const Aws::String& GetDnsName() const { return m_dnsName; }
128 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
129 template<typename DnsNameT = Aws::String>
130 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
131 template<typename DnsNameT = Aws::String>
132 Accelerator& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
134
136
139 inline AcceleratorStatus GetStatus() const { return m_status; }
140 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141 inline void SetStatus(AcceleratorStatus value) { m_statusHasBeenSet = true; m_status = value; }
142 inline Accelerator& WithStatus(AcceleratorStatus value) { SetStatus(value); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
150 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
151 template<typename CreatedTimeT = Aws::Utils::DateTime>
152 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
153 template<typename CreatedTimeT = Aws::Utils::DateTime>
154 Accelerator& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
162 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
163 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
164 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
165 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
166 Accelerator& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
168
170
184 inline const Aws::String& GetDualStackDnsName() const { return m_dualStackDnsName; }
185 inline bool DualStackDnsNameHasBeenSet() const { return m_dualStackDnsNameHasBeenSet; }
186 template<typename DualStackDnsNameT = Aws::String>
187 void SetDualStackDnsName(DualStackDnsNameT&& value) { m_dualStackDnsNameHasBeenSet = true; m_dualStackDnsName = std::forward<DualStackDnsNameT>(value); }
188 template<typename DualStackDnsNameT = Aws::String>
189 Accelerator& WithDualStackDnsName(DualStackDnsNameT&& value) { SetDualStackDnsName(std::forward<DualStackDnsNameT>(value)); return *this;}
191
193
197 inline const Aws::Vector<AcceleratorEvent>& GetEvents() const { return m_events; }
198 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
199 template<typename EventsT = Aws::Vector<AcceleratorEvent>>
200 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
201 template<typename EventsT = Aws::Vector<AcceleratorEvent>>
202 Accelerator& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
203 template<typename EventsT = AcceleratorEvent>
204 Accelerator& AddEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events.emplace_back(std::forward<EventsT>(value)); return *this; }
206 private:
207
208 Aws::String m_acceleratorArn;
209 bool m_acceleratorArnHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
215 bool m_ipAddressTypeHasBeenSet = false;
216
217 bool m_enabled{false};
218 bool m_enabledHasBeenSet = false;
219
220 Aws::Vector<IpSet> m_ipSets;
221 bool m_ipSetsHasBeenSet = false;
222
223 Aws::String m_dnsName;
224 bool m_dnsNameHasBeenSet = false;
225
227 bool m_statusHasBeenSet = false;
228
229 Aws::Utils::DateTime m_createdTime{};
230 bool m_createdTimeHasBeenSet = false;
231
232 Aws::Utils::DateTime m_lastModifiedTime{};
233 bool m_lastModifiedTimeHasBeenSet = false;
234
235 Aws::String m_dualStackDnsName;
236 bool m_dualStackDnsNameHasBeenSet = false;
237
239 bool m_eventsHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace GlobalAccelerator
244} // namespace Aws
const Aws::String & GetDualStackDnsName() const
Accelerator & WithName(NameT &&value)
Definition Accelerator.h:71
Accelerator & WithDualStackDnsName(DualStackDnsNameT &&value)
const Aws::String & GetAcceleratorArn() const
Definition Accelerator.h:53
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDualStackDnsName(DualStackDnsNameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Accelerator & WithEnabled(bool value)
Definition Accelerator.h:94
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:81
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:58
Accelerator & AddEvents(EventsT &&value)
const Aws::String & GetName() const
Definition Accelerator.h:66
void SetAcceleratorArn(AcceleratorArnT &&value)
Definition Accelerator.h:56
const Aws::Vector< AcceleratorEvent > & GetEvents() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Accelerator & WithIpAddressType(IpAddressType value)
Definition Accelerator.h:82
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