AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateAcceleratorRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
11#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
12#include <aws/globalaccelerator/model/IpAddressType.h>
13#include <aws/globalaccelerator/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GlobalAccelerator {
19namespace Model {
20
24 public:
25 AWS_GLOBALACCELERATOR_API CreateAcceleratorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAccelerator"; }
32
33 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
34
35 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
63 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
64 inline void SetIpAddressType(IpAddressType value) {
65 m_ipAddressTypeHasBeenSet = true;
66 m_ipAddressType = value;
67 }
69 SetIpAddressType(value);
70 return *this;
71 }
73
75
98 inline const Aws::Vector<Aws::String>& GetIpAddresses() const { return m_ipAddresses; }
99 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
100 template <typename IpAddressesT = Aws::Vector<Aws::String>>
101 void SetIpAddresses(IpAddressesT&& value) {
102 m_ipAddressesHasBeenSet = true;
103 m_ipAddresses = std::forward<IpAddressesT>(value);
104 }
105 template <typename IpAddressesT = Aws::Vector<Aws::String>>
107 SetIpAddresses(std::forward<IpAddressesT>(value));
108 return *this;
109 }
110 template <typename IpAddressesT = Aws::String>
112 m_ipAddressesHasBeenSet = true;
113 m_ipAddresses.emplace_back(std::forward<IpAddressesT>(value));
114 return *this;
115 }
117
119
124 inline bool GetEnabled() const { return m_enabled; }
125 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
126 inline void SetEnabled(bool value) {
127 m_enabledHasBeenSet = true;
128 m_enabled = value;
129 }
131 SetEnabled(value);
132 return *this;
133 }
135
137
141 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
142 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
143 template <typename IdempotencyTokenT = Aws::String>
144 void SetIdempotencyToken(IdempotencyTokenT&& value) {
145 m_idempotencyTokenHasBeenSet = true;
146 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
147 }
148 template <typename IdempotencyTokenT = Aws::String>
149 CreateAcceleratorRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
150 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Vector<Tag>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsT = Tag>
175 m_tagsHasBeenSet = true;
176 m_tags.emplace_back(std::forward<TagsT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_name;
182
183 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
184
185 Aws::Vector<Aws::String> m_ipAddresses;
186
187 bool m_enabled{false};
188
190
191 Aws::Vector<Tag> m_tags;
192 bool m_nameHasBeenSet = false;
193 bool m_ipAddressTypeHasBeenSet = false;
194 bool m_ipAddressesHasBeenSet = false;
195 bool m_enabledHasBeenSet = false;
196 bool m_idempotencyTokenHasBeenSet = true;
197 bool m_tagsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace GlobalAccelerator
202} // namespace Aws
CreateAcceleratorRequest & AddIpAddresses(IpAddressesT &&value)
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetIpAddresses() const
CreateAcceleratorRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
CreateAcceleratorRequest & WithIpAddresses(IpAddressesT &&value)
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
CreateAcceleratorRequest & WithIpAddressType(IpAddressType value)
AWS_GLOBALACCELERATOR_API CreateAcceleratorRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector