AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateResolverEndpointRequest.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/route53resolver/model/ResolverEndpointType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53resolver/model/UpdateIpAddress.h>
13#include <aws/route53resolver/model/Protocol.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Route53Resolver
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ROUTE53RESOLVER_API UpdateResolverEndpointRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateResolverEndpoint"; }
35
36 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; }
46 inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; }
47 inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; }
48 inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); }
49 inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); }
52 inline UpdateResolverEndpointRequest& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateResolverEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateResolverEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateResolverEndpointRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
75 inline const ResolverEndpointType& GetResolverEndpointType() const{ return m_resolverEndpointType; }
76 inline bool ResolverEndpointTypeHasBeenSet() const { return m_resolverEndpointTypeHasBeenSet; }
77 inline void SetResolverEndpointType(const ResolverEndpointType& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = value; }
78 inline void SetResolverEndpointType(ResolverEndpointType&& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = std::move(value); }
82
84
89 inline const Aws::Vector<UpdateIpAddress>& GetUpdateIpAddresses() const{ return m_updateIpAddresses; }
90 inline bool UpdateIpAddressesHasBeenSet() const { return m_updateIpAddressesHasBeenSet; }
91 inline void SetUpdateIpAddresses(const Aws::Vector<UpdateIpAddress>& value) { m_updateIpAddressesHasBeenSet = true; m_updateIpAddresses = value; }
92 inline void SetUpdateIpAddresses(Aws::Vector<UpdateIpAddress>&& value) { m_updateIpAddressesHasBeenSet = true; m_updateIpAddresses = std::move(value); }
95 inline UpdateResolverEndpointRequest& AddUpdateIpAddresses(const UpdateIpAddress& value) { m_updateIpAddressesHasBeenSet = true; m_updateIpAddresses.push_back(value); return *this; }
96 inline UpdateResolverEndpointRequest& AddUpdateIpAddresses(UpdateIpAddress&& value) { m_updateIpAddressesHasBeenSet = true; m_updateIpAddresses.push_back(std::move(value)); return *this; }
98
100
117 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
118 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
119 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
120 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
122 inline UpdateResolverEndpointRequest& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
123 inline UpdateResolverEndpointRequest& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
124 inline UpdateResolverEndpointRequest& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_resolverEndpointId;
129 bool m_resolverEndpointIdHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 ResolverEndpointType m_resolverEndpointType;
135 bool m_resolverEndpointTypeHasBeenSet = false;
136
137 Aws::Vector<UpdateIpAddress> m_updateIpAddresses;
138 bool m_updateIpAddressesHasBeenSet = false;
139
140 Aws::Vector<Protocol> m_protocols;
141 bool m_protocolsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Route53Resolver
146} // namespace Aws
UpdateResolverEndpointRequest & AddProtocols(Protocol &&value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateResolverEndpointRequest & AddUpdateIpAddresses(const UpdateIpAddress &value)
UpdateResolverEndpointRequest & AddUpdateIpAddresses(UpdateIpAddress &&value)
UpdateResolverEndpointRequest & WithResolverEndpointId(const char *value)
UpdateResolverEndpointRequest & WithName(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
UpdateResolverEndpointRequest & WithUpdateIpAddresses(Aws::Vector< UpdateIpAddress > &&value)
UpdateResolverEndpointRequest & WithName(Aws::String &&value)
UpdateResolverEndpointRequest & AddProtocols(const Protocol &value)
UpdateResolverEndpointRequest & WithProtocols(const Aws::Vector< Protocol > &value)
UpdateResolverEndpointRequest & WithUpdateIpAddresses(const Aws::Vector< UpdateIpAddress > &value)
void SetUpdateIpAddresses(Aws::Vector< UpdateIpAddress > &&value)
UpdateResolverEndpointRequest & WithResolverEndpointId(const Aws::String &value)
UpdateResolverEndpointRequest & WithName(const char *value)
void SetUpdateIpAddresses(const Aws::Vector< UpdateIpAddress > &value)
const Aws::Vector< UpdateIpAddress > & GetUpdateIpAddresses() const
UpdateResolverEndpointRequest & WithResolverEndpointId(Aws::String &&value)
UpdateResolverEndpointRequest & WithResolverEndpointType(const ResolverEndpointType &value)
UpdateResolverEndpointRequest & WithProtocols(Aws::Vector< Protocol > &&value)
UpdateResolverEndpointRequest & WithResolverEndpointType(ResolverEndpointType &&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