AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResolverEndpointRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53resolver/model/ResolverEndpointDirection.h>
12#include <aws/route53resolver/model/ResolverEndpointType.h>
13#include <aws/route53resolver/model/IpAddressRequest.h>
14#include <aws/route53resolver/model/Tag.h>
15#include <aws/route53resolver/model/Protocol.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Route53Resolver
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_ROUTE53RESOLVER_API CreateResolverEndpointRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateResolverEndpoint"; }
37
38 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
39
40 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
50 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
51 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
52 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
53 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
54 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
56 inline CreateResolverEndpointRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
57 inline CreateResolverEndpointRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
59
61
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline CreateResolverEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline CreateResolverEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline CreateResolverEndpointRequest& WithName(const char* value) { SetName(value); return *this;}
74
76
91 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
92 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
93 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
94 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
97 inline CreateResolverEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
98 inline CreateResolverEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
99 inline CreateResolverEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
101
103
109 inline const ResolverEndpointDirection& GetDirection() const{ return m_direction; }
110 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
111 inline void SetDirection(const ResolverEndpointDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
112 inline void SetDirection(ResolverEndpointDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
114 inline CreateResolverEndpointRequest& WithDirection(ResolverEndpointDirection&& value) { SetDirection(std::move(value)); return *this;}
116
118
124 inline const Aws::Vector<IpAddressRequest>& GetIpAddresses() const{ return m_ipAddresses; }
125 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
126 inline void SetIpAddresses(const Aws::Vector<IpAddressRequest>& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = value; }
127 inline void SetIpAddresses(Aws::Vector<IpAddressRequest>&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = std::move(value); }
130 inline CreateResolverEndpointRequest& AddIpAddresses(const IpAddressRequest& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(value); return *this; }
131 inline CreateResolverEndpointRequest& AddIpAddresses(IpAddressRequest&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(std::move(value)); return *this; }
133
135
139 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
140 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
141 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
142 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
143 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
144 inline CreateResolverEndpointRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
145 inline CreateResolverEndpointRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
146 inline CreateResolverEndpointRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
148
150
154 inline const Aws::String& GetPreferredInstanceType() const{ return m_preferredInstanceType; }
155 inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; }
156 inline void SetPreferredInstanceType(const Aws::String& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = value; }
157 inline void SetPreferredInstanceType(Aws::String&& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = std::move(value); }
158 inline void SetPreferredInstanceType(const char* value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType.assign(value); }
161 inline CreateResolverEndpointRequest& WithPreferredInstanceType(const char* value) { SetPreferredInstanceType(value); return *this;}
163
165
169 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
172 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
173 inline CreateResolverEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
174 inline CreateResolverEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
175 inline CreateResolverEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
176 inline CreateResolverEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
178
180
185 inline const ResolverEndpointType& GetResolverEndpointType() const{ return m_resolverEndpointType; }
186 inline bool ResolverEndpointTypeHasBeenSet() const { return m_resolverEndpointTypeHasBeenSet; }
187 inline void SetResolverEndpointType(const ResolverEndpointType& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = value; }
188 inline void SetResolverEndpointType(ResolverEndpointType&& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = std::move(value); }
192
194
205 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
206 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
207 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
208 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
210 inline CreateResolverEndpointRequest& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
211 inline CreateResolverEndpointRequest& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
212 inline CreateResolverEndpointRequest& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
214 private:
215
216 Aws::String m_creatorRequestId;
217 bool m_creatorRequestIdHasBeenSet = false;
218
219 Aws::String m_name;
220 bool m_nameHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_securityGroupIds;
223 bool m_securityGroupIdsHasBeenSet = false;
224
225 ResolverEndpointDirection m_direction;
226 bool m_directionHasBeenSet = false;
227
228 Aws::Vector<IpAddressRequest> m_ipAddresses;
229 bool m_ipAddressesHasBeenSet = false;
230
231 Aws::String m_outpostArn;
232 bool m_outpostArnHasBeenSet = false;
233
234 Aws::String m_preferredInstanceType;
235 bool m_preferredInstanceTypeHasBeenSet = false;
236
237 Aws::Vector<Tag> m_tags;
238 bool m_tagsHasBeenSet = false;
239
240 ResolverEndpointType m_resolverEndpointType;
241 bool m_resolverEndpointTypeHasBeenSet = false;
242
243 Aws::Vector<Protocol> m_protocols;
244 bool m_protocolsHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace Route53Resolver
249} // namespace Aws
CreateResolverEndpointRequest & WithResolverEndpointType(const ResolverEndpointType &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateResolverEndpointRequest & AddProtocols(const Protocol &value)
CreateResolverEndpointRequest & AddIpAddresses(const IpAddressRequest &value)
CreateResolverEndpointRequest & AddTags(const Tag &value)
CreateResolverEndpointRequest & WithPreferredInstanceType(Aws::String &&value)
CreateResolverEndpointRequest & WithIpAddresses(const Aws::Vector< IpAddressRequest > &value)
const Aws::Vector< IpAddressRequest > & GetIpAddresses() const
CreateResolverEndpointRequest & WithOutpostArn(Aws::String &&value)
CreateResolverEndpointRequest & AddSecurityGroupIds(Aws::String &&value)
CreateResolverEndpointRequest & WithIpAddresses(Aws::Vector< IpAddressRequest > &&value)
CreateResolverEndpointRequest & WithResolverEndpointType(ResolverEndpointType &&value)
CreateResolverEndpointRequest & AddSecurityGroupIds(const Aws::String &value)
CreateResolverEndpointRequest & WithProtocols(const Aws::Vector< Protocol > &value)
CreateResolverEndpointRequest & WithPreferredInstanceType(const char *value)
CreateResolverEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
CreateResolverEndpointRequest & WithName(Aws::String &&value)
CreateResolverEndpointRequest & WithCreatorRequestId(const Aws::String &value)
CreateResolverEndpointRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateResolverEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
void SetIpAddresses(const Aws::Vector< IpAddressRequest > &value)
CreateResolverEndpointRequest & AddSecurityGroupIds(const char *value)
CreateResolverEndpointRequest & WithPreferredInstanceType(const Aws::String &value)
CreateResolverEndpointRequest & WithOutpostArn(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
CreateResolverEndpointRequest & WithProtocols(Aws::Vector< Protocol > &&value)
CreateResolverEndpointRequest & AddIpAddresses(IpAddressRequest &&value)
CreateResolverEndpointRequest & WithDirection(const ResolverEndpointDirection &value)
CreateResolverEndpointRequest & WithName(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResolverEndpointRequest & WithName(const char *value)
CreateResolverEndpointRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateResolverEndpointRequest & WithOutpostArn(const char *value)
CreateResolverEndpointRequest & WithCreatorRequestId(Aws::String &&value)
CreateResolverEndpointRequest & WithDirection(ResolverEndpointDirection &&value)
CreateResolverEndpointRequest & AddProtocols(Protocol &&value)
CreateResolverEndpointRequest & WithCreatorRequestId(const char *value)
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