AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
UpdateAccessSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53globalresolver/Route53GlobalResolverRequest.h>
9#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
10#include <aws/route53globalresolver/model/DnsProtocol.h>
11#include <aws/route53globalresolver/model/IpAddressType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53GlobalResolver {
17namespace Model {
18
22 public:
23 AWS_ROUTE53GLOBALRESOLVER_API UpdateAccessSourceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessSource"; }
30
31 AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAccessSourceId() const { return m_accessSourceId; }
38 inline bool AccessSourceIdHasBeenSet() const { return m_accessSourceIdHasBeenSet; }
39 template <typename AccessSourceIdT = Aws::String>
40 void SetAccessSourceId(AccessSourceIdT&& value) {
41 m_accessSourceIdHasBeenSet = true;
42 m_accessSourceId = std::forward<AccessSourceIdT>(value);
43 }
44 template <typename AccessSourceIdT = Aws::String>
46 SetAccessSourceId(std::forward<AccessSourceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetCidr() const { return m_cidr; }
56 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
57 template <typename CidrT = Aws::String>
58 void SetCidr(CidrT&& value) {
59 m_cidrHasBeenSet = true;
60 m_cidr = std::forward<CidrT>(value);
61 }
62 template <typename CidrT = Aws::String>
64 SetCidr(std::forward<CidrT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
74 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
75 template <typename DnsViewIdT = Aws::String>
76 void SetDnsViewId(DnsViewIdT&& value) {
77 m_dnsViewIdHasBeenSet = true;
78 m_dnsViewId = std::forward<DnsViewIdT>(value);
79 }
80 template <typename DnsViewIdT = Aws::String>
82 SetDnsViewId(std::forward<DnsViewIdT>(value));
83 return *this;
84 }
86
88
91 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
92 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
93 inline void SetIpAddressType(IpAddressType value) {
94 m_ipAddressTypeHasBeenSet = true;
95 m_ipAddressType = value;
96 }
98 SetIpAddressType(value);
99 return *this;
100 }
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template <typename NameT = Aws::String>
110 void SetName(NameT&& value) {
111 m_nameHasBeenSet = true;
112 m_name = std::forward<NameT>(value);
113 }
114 template <typename NameT = Aws::String>
116 SetName(std::forward<NameT>(value));
117 return *this;
118 }
120
122
125 inline DnsProtocol GetProtocol() const { return m_protocol; }
126 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
127 inline void SetProtocol(DnsProtocol value) {
128 m_protocolHasBeenSet = true;
129 m_protocol = value;
130 }
132 SetProtocol(value);
133 return *this;
134 }
136 private:
137 Aws::String m_accessSourceId;
138
139 Aws::String m_cidr;
140
141 Aws::String m_dnsViewId;
142
143 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
144
145 Aws::String m_name;
146
148 bool m_accessSourceIdHasBeenSet = false;
149 bool m_cidrHasBeenSet = false;
150 bool m_dnsViewIdHasBeenSet = false;
151 bool m_ipAddressTypeHasBeenSet = false;
152 bool m_nameHasBeenSet = false;
153 bool m_protocolHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Route53GlobalResolver
158} // namespace Aws
UpdateAccessSourceRequest & WithDnsViewId(DnsViewIdT &&value)
UpdateAccessSourceRequest & WithProtocol(DnsProtocol value)
UpdateAccessSourceRequest & WithAccessSourceId(AccessSourceIdT &&value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override
UpdateAccessSourceRequest & WithIpAddressType(IpAddressType value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateAccessSourceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String