AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CustomRoutingAccelerator.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/CustomRoutingAcceleratorStatus.h>
12#include <aws/globalaccelerator/model/IpAddressType.h>
13#include <aws/globalaccelerator/model/IpSet.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GlobalAccelerator {
25namespace Model {
26
33 public:
34 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator() = default;
35 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
44 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
45 template <typename AcceleratorArnT = Aws::String>
46 void SetAcceleratorArn(AcceleratorArnT&& value) {
47 m_acceleratorArnHasBeenSet = true;
48 m_acceleratorArn = std::forward<AcceleratorArnT>(value);
49 }
50 template <typename AcceleratorArnT = Aws::String>
51 CustomRoutingAccelerator& WithAcceleratorArn(AcceleratorArnT&& value) {
52 SetAcceleratorArn(std::forward<AcceleratorArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
81 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
82 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
83 inline void SetIpAddressType(IpAddressType value) {
84 m_ipAddressTypeHasBeenSet = true;
85 m_ipAddressType = value;
86 }
88 SetIpAddressType(value);
89 return *this;
90 }
92
94
99 inline bool GetEnabled() const { return m_enabled; }
100 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
101 inline void SetEnabled(bool value) {
102 m_enabledHasBeenSet = true;
103 m_enabled = value;
104 }
106 SetEnabled(value);
107 return *this;
108 }
110
112
116 inline const Aws::Vector<IpSet>& GetIpSets() const { return m_ipSets; }
117 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
118 template <typename IpSetsT = Aws::Vector<IpSet>>
119 void SetIpSets(IpSetsT&& value) {
120 m_ipSetsHasBeenSet = true;
121 m_ipSets = std::forward<IpSetsT>(value);
122 }
123 template <typename IpSetsT = Aws::Vector<IpSet>>
125 SetIpSets(std::forward<IpSetsT>(value));
126 return *this;
127 }
128 template <typename IpSetsT = IpSet>
130 m_ipSetsHasBeenSet = true;
131 m_ipSets.emplace_back(std::forward<IpSetsT>(value));
132 return *this;
133 }
135
137
151 inline const Aws::String& GetDnsName() const { return m_dnsName; }
152 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
153 template <typename DnsNameT = Aws::String>
154 void SetDnsName(DnsNameT&& value) {
155 m_dnsNameHasBeenSet = true;
156 m_dnsName = std::forward<DnsNameT>(value);
157 }
158 template <typename DnsNameT = Aws::String>
160 SetDnsName(std::forward<DnsNameT>(value));
161 return *this;
162 }
164
166
169 inline CustomRoutingAcceleratorStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
186 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
187 template <typename CreatedTimeT = Aws::Utils::DateTime>
188 void SetCreatedTime(CreatedTimeT&& value) {
189 m_createdTimeHasBeenSet = true;
190 m_createdTime = std::forward<CreatedTimeT>(value);
191 }
192 template <typename CreatedTimeT = Aws::Utils::DateTime>
194 SetCreatedTime(std::forward<CreatedTimeT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
204 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
205 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
206 void SetLastModifiedTime(LastModifiedTimeT&& value) {
207 m_lastModifiedTimeHasBeenSet = true;
208 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
209 }
210 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
211 CustomRoutingAccelerator& WithLastModifiedTime(LastModifiedTimeT&& value) {
212 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_acceleratorArn;
218
219 Aws::String m_name;
220
221 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
222
223 bool m_enabled{false};
224
225 Aws::Vector<IpSet> m_ipSets;
226
227 Aws::String m_dnsName;
228
230
231 Aws::Utils::DateTime m_createdTime{};
232
233 Aws::Utils::DateTime m_lastModifiedTime{};
234 bool m_acceleratorArnHasBeenSet = false;
235 bool m_nameHasBeenSet = false;
236 bool m_ipAddressTypeHasBeenSet = false;
237 bool m_enabledHasBeenSet = false;
238 bool m_ipSetsHasBeenSet = false;
239 bool m_dnsNameHasBeenSet = false;
240 bool m_statusHasBeenSet = false;
241 bool m_createdTimeHasBeenSet = false;
242 bool m_lastModifiedTimeHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace GlobalAccelerator
247} // namespace Aws
CustomRoutingAccelerator & WithLastModifiedTime(LastModifiedTimeT &&value)
CustomRoutingAccelerator & WithIpAddressType(IpAddressType value)
CustomRoutingAccelerator & WithIpSets(IpSetsT &&value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator(Aws::Utils::Json::JsonView jsonValue)
CustomRoutingAccelerator & WithCreatedTime(CreatedTimeT &&value)
CustomRoutingAccelerator & AddIpSets(IpSetsT &&value)
CustomRoutingAccelerator & WithStatus(CustomRoutingAcceleratorStatus value)
CustomRoutingAccelerator & WithDnsName(DnsNameT &&value)
CustomRoutingAccelerator & WithAcceleratorArn(AcceleratorArnT &&value)
AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue