AWS SDK for C++

AWS SDK for C++ Version 1.11.761

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 IpAddressType GetIpAddressType() const { return m_ipAddressType; }
74 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
75 inline void SetIpAddressType(IpAddressType value) {
76 m_ipAddressTypeHasBeenSet = true;
77 m_ipAddressType = value;
78 }
80 SetIpAddressType(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetName() const { return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 template <typename NameT = Aws::String>
92 void SetName(NameT&& value) {
93 m_nameHasBeenSet = true;
94 m_name = std::forward<NameT>(value);
95 }
96 template <typename NameT = Aws::String>
98 SetName(std::forward<NameT>(value));
99 return *this;
100 }
102
104
107 inline DnsProtocol GetProtocol() const { return m_protocol; }
108 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
109 inline void SetProtocol(DnsProtocol value) {
110 m_protocolHasBeenSet = true;
111 m_protocol = value;
112 }
114 SetProtocol(value);
115 return *this;
116 }
118 private:
119 Aws::String m_accessSourceId;
120
121 Aws::String m_cidr;
122
123 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
124
125 Aws::String m_name;
126
128 bool m_accessSourceIdHasBeenSet = false;
129 bool m_cidrHasBeenSet = false;
130 bool m_ipAddressTypeHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132 bool m_protocolHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Route53GlobalResolver
137} // namespace Aws
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