AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
CreateAccessSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53globalresolver/Route53GlobalResolverRequest.h>
11#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
12#include <aws/route53globalresolver/model/DnsProtocol.h>
13#include <aws/route53globalresolver/model/IpAddressType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Route53GlobalResolver {
19namespace Model {
20
24 public:
25 AWS_ROUTE53GLOBALRESOLVER_API CreateAccessSourceRequest() = 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 "CreateAccessSource"; }
32
33 AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetCidr() const { return m_cidr; }
41 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
42 template <typename CidrT = Aws::String>
43 void SetCidr(CidrT&& value) {
44 m_cidrHasBeenSet = true;
45 m_cidr = std::forward<CidrT>(value);
46 }
47 template <typename CidrT = Aws::String>
49 SetCidr(std::forward<CidrT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetClientToken() const { return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 template <typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) {
62 m_clientTokenHasBeenSet = true;
63 m_clientToken = std::forward<ClientTokenT>(value);
64 }
65 template <typename ClientTokenT = Aws::String>
67 SetClientToken(std::forward<ClientTokenT>(value));
68 return *this;
69 }
71
73
78 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
79 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
80 inline void SetIpAddressType(IpAddressType value) {
81 m_ipAddressTypeHasBeenSet = true;
82 m_ipAddressType = value;
83 }
85 SetIpAddressType(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetCoreNetworkEndpointId() const { return m_coreNetworkEndpointId; }
113 inline bool CoreNetworkEndpointIdHasBeenSet() const { return m_coreNetworkEndpointIdHasBeenSet; }
114 template <typename CoreNetworkEndpointIdT = Aws::String>
115 void SetCoreNetworkEndpointId(CoreNetworkEndpointIdT&& value) {
116 m_coreNetworkEndpointIdHasBeenSet = true;
117 m_coreNetworkEndpointId = std::forward<CoreNetworkEndpointIdT>(value);
118 }
119 template <typename CoreNetworkEndpointIdT = Aws::String>
120 CreateAccessSourceRequest& WithCoreNetworkEndpointId(CoreNetworkEndpointIdT&& value) {
121 SetCoreNetworkEndpointId(std::forward<CoreNetworkEndpointIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetSegment() const { return m_segment; }
131 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
132 template <typename SegmentT = Aws::String>
133 void SetSegment(SegmentT&& value) {
134 m_segmentHasBeenSet = true;
135 m_segment = std::forward<SegmentT>(value);
136 }
137 template <typename SegmentT = Aws::String>
139 SetSegment(std::forward<SegmentT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
149 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
150 template <typename DnsViewIdT = Aws::String>
151 void SetDnsViewId(DnsViewIdT&& value) {
152 m_dnsViewIdHasBeenSet = true;
153 m_dnsViewId = std::forward<DnsViewIdT>(value);
154 }
155 template <typename DnsViewIdT = Aws::String>
157 SetDnsViewId(std::forward<DnsViewIdT>(value));
158 return *this;
159 }
161
163
167 inline DnsProtocol GetProtocol() const { return m_protocol; }
168 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
169 inline void SetProtocol(DnsProtocol value) {
170 m_protocolHasBeenSet = true;
171 m_protocol = value;
172 }
174 SetProtocol(value);
175 return *this;
176 }
178
180
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 void SetTags(TagsT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags = std::forward<TagsT>(value);
189 }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 SetTags(std::forward<TagsT>(value));
193 return *this;
194 }
195 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
196 CreateAccessSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_cidr;
204
206
207 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
208
209 Aws::String m_name;
210
211 Aws::String m_coreNetworkEndpointId;
212
213 Aws::String m_segment;
214
215 Aws::String m_dnsViewId;
216
218
220 bool m_cidrHasBeenSet = false;
221 bool m_clientTokenHasBeenSet = true;
222 bool m_ipAddressTypeHasBeenSet = false;
223 bool m_nameHasBeenSet = false;
224 bool m_coreNetworkEndpointIdHasBeenSet = false;
225 bool m_segmentHasBeenSet = false;
226 bool m_dnsViewIdHasBeenSet = false;
227 bool m_protocolHasBeenSet = false;
228 bool m_tagsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace Route53GlobalResolver
233} // namespace Aws
CreateAccessSourceRequest & WithClientToken(ClientTokenT &&value)
CreateAccessSourceRequest & WithProtocol(DnsProtocol value)
CreateAccessSourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAccessSourceRequest & WithDnsViewId(DnsViewIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessSourceRequest & WithIpAddressType(IpAddressType value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override
AWS_ROUTE53GLOBALRESOLVER_API CreateAccessSourceRequest()=default
CreateAccessSourceRequest & WithCoreNetworkEndpointId(CoreNetworkEndpointIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String