AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CustomRoutingAccelerator.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/CustomRoutingAcceleratorStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/globalaccelerator/model/IpSet.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 GlobalAccelerator
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator() = default;
40 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLOBALACCELERATOR_API CustomRoutingAccelerator& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
50 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
51 template<typename AcceleratorArnT = Aws::String>
52 void SetAcceleratorArn(AcceleratorArnT&& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = std::forward<AcceleratorArnT>(value); }
53 template<typename AcceleratorArnT = Aws::String>
54 CustomRoutingAccelerator& WithAcceleratorArn(AcceleratorArnT&& value) { SetAcceleratorArn(std::forward<AcceleratorArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CustomRoutingAccelerator& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
75 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
76 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
77 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
80
82
87 inline bool GetEnabled() const { return m_enabled; }
88 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
89 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
90 inline CustomRoutingAccelerator& WithEnabled(bool value) { SetEnabled(value); return *this;}
92
94
98 inline const Aws::Vector<IpSet>& GetIpSets() const { return m_ipSets; }
99 inline bool IpSetsHasBeenSet() const { return m_ipSetsHasBeenSet; }
100 template<typename IpSetsT = Aws::Vector<IpSet>>
101 void SetIpSets(IpSetsT&& value) { m_ipSetsHasBeenSet = true; m_ipSets = std::forward<IpSetsT>(value); }
102 template<typename IpSetsT = Aws::Vector<IpSet>>
103 CustomRoutingAccelerator& WithIpSets(IpSetsT&& value) { SetIpSets(std::forward<IpSetsT>(value)); return *this;}
104 template<typename IpSetsT = IpSet>
105 CustomRoutingAccelerator& AddIpSets(IpSetsT&& value) { m_ipSetsHasBeenSet = true; m_ipSets.emplace_back(std::forward<IpSetsT>(value)); return *this; }
107
109
123 inline const Aws::String& GetDnsName() const { return m_dnsName; }
124 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
125 template<typename DnsNameT = Aws::String>
126 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
127 template<typename DnsNameT = Aws::String>
128 CustomRoutingAccelerator& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
130
132
135 inline CustomRoutingAcceleratorStatus GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(CustomRoutingAcceleratorStatus value) { m_statusHasBeenSet = true; m_status = value; }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
146 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
147 template<typename CreatedTimeT = Aws::Utils::DateTime>
148 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
149 template<typename CreatedTimeT = Aws::Utils::DateTime>
150 CustomRoutingAccelerator& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
158 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
159 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
160 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
161 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
162 CustomRoutingAccelerator& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
164 private:
165
166 Aws::String m_acceleratorArn;
167 bool m_acceleratorArnHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
173 bool m_ipAddressTypeHasBeenSet = false;
174
175 bool m_enabled{false};
176 bool m_enabledHasBeenSet = false;
177
178 Aws::Vector<IpSet> m_ipSets;
179 bool m_ipSetsHasBeenSet = false;
180
181 Aws::String m_dnsName;
182 bool m_dnsNameHasBeenSet = false;
183
185 bool m_statusHasBeenSet = false;
186
187 Aws::Utils::DateTime m_createdTime{};
188 bool m_createdTimeHasBeenSet = false;
189
190 Aws::Utils::DateTime m_lastModifiedTime{};
191 bool m_lastModifiedTimeHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace GlobalAccelerator
196} // 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