AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
77 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
78 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
79 inline void SetIpAddressType(IpAddressType value) {
80 m_ipAddressTypeHasBeenSet = true;
81 m_ipAddressType = value;
82 }
84 SetIpAddressType(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template <typename NameT = Aws::String>
96 void SetName(NameT&& value) {
97 m_nameHasBeenSet = true;
98 m_name = std::forward<NameT>(value);
99 }
100 template <typename NameT = Aws::String>
102 SetName(std::forward<NameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
112 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
113 template <typename DnsViewIdT = Aws::String>
114 void SetDnsViewId(DnsViewIdT&& value) {
115 m_dnsViewIdHasBeenSet = true;
116 m_dnsViewId = std::forward<DnsViewIdT>(value);
117 }
118 template <typename DnsViewIdT = Aws::String>
120 SetDnsViewId(std::forward<DnsViewIdT>(value));
121 return *this;
122 }
124
126
130 inline DnsProtocol GetProtocol() const { return m_protocol; }
131 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
132 inline void SetProtocol(DnsProtocol value) {
133 m_protocolHasBeenSet = true;
134 m_protocol = value;
135 }
137 SetProtocol(value);
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 CreateAccessSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_cidr;
167
169
170 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
171
172 Aws::String m_name;
173
174 Aws::String m_dnsViewId;
175
177
179 bool m_cidrHasBeenSet = false;
180 bool m_clientTokenHasBeenSet = true;
181 bool m_ipAddressTypeHasBeenSet = false;
182 bool m_nameHasBeenSet = false;
183 bool m_dnsViewIdHasBeenSet = false;
184 bool m_protocolHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace Route53GlobalResolver
190} // 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
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