AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplaceNetworkAclEntryRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/RuleAction.h>
11#include <aws/ec2/model/IcmpTypeCode.h>
12#include <aws/ec2/model/PortRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API ReplaceNetworkAclEntryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ReplaceNetworkAclEntry"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const { return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline ReplaceNetworkAclEntryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetNetworkAclId() const { return m_networkAclId; }
60 inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
61 template<typename NetworkAclIdT = Aws::String>
62 void SetNetworkAclId(NetworkAclIdT&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::forward<NetworkAclIdT>(value); }
63 template<typename NetworkAclIdT = Aws::String>
64 ReplaceNetworkAclEntryRequest& WithNetworkAclId(NetworkAclIdT&& value) { SetNetworkAclId(std::forward<NetworkAclIdT>(value)); return *this;}
66
68
71 inline int GetRuleNumber() const { return m_ruleNumber; }
72 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
73 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
74 inline ReplaceNetworkAclEntryRequest& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
76
78
87 inline const Aws::String& GetProtocol() const { return m_protocol; }
88 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
89 template<typename ProtocolT = Aws::String>
90 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
91 template<typename ProtocolT = Aws::String>
92 ReplaceNetworkAclEntryRequest& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
94
96
99 inline RuleAction GetRuleAction() const { return m_ruleAction; }
100 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
101 inline void SetRuleAction(RuleAction value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
104
106
110 inline bool GetEgress() const { return m_egress; }
111 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
112 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
113 inline ReplaceNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
115
117
121 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
122 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
123 template<typename CidrBlockT = Aws::String>
124 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
125 template<typename CidrBlockT = Aws::String>
126 ReplaceNetworkAclEntryRequest& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
128
130
134 inline const Aws::String& GetIpv6CidrBlock() const { return m_ipv6CidrBlock; }
135 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
136 template<typename Ipv6CidrBlockT = Aws::String>
137 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
138 template<typename Ipv6CidrBlockT = Aws::String>
139 ReplaceNetworkAclEntryRequest& WithIpv6CidrBlock(Ipv6CidrBlockT&& value) { SetIpv6CidrBlock(std::forward<Ipv6CidrBlockT>(value)); return *this;}
141
143
147 inline const IcmpTypeCode& GetIcmpTypeCode() const { return m_icmpTypeCode; }
148 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
149 template<typename IcmpTypeCodeT = IcmpTypeCode>
150 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
151 template<typename IcmpTypeCodeT = IcmpTypeCode>
152 ReplaceNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCodeT&& value) { SetIcmpTypeCode(std::forward<IcmpTypeCodeT>(value)); return *this;}
154
156
160 inline const PortRange& GetPortRange() const { return m_portRange; }
161 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
162 template<typename PortRangeT = PortRange>
163 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet = true; m_portRange = std::forward<PortRangeT>(value); }
164 template<typename PortRangeT = PortRange>
165 ReplaceNetworkAclEntryRequest& WithPortRange(PortRangeT&& value) { SetPortRange(std::forward<PortRangeT>(value)); return *this;}
167 private:
168
169 bool m_dryRun{false};
170 bool m_dryRunHasBeenSet = false;
171
172 Aws::String m_networkAclId;
173 bool m_networkAclIdHasBeenSet = false;
174
175 int m_ruleNumber{0};
176 bool m_ruleNumberHasBeenSet = false;
177
178 Aws::String m_protocol;
179 bool m_protocolHasBeenSet = false;
180
181 RuleAction m_ruleAction{RuleAction::NOT_SET};
182 bool m_ruleActionHasBeenSet = false;
183
184 bool m_egress{false};
185 bool m_egressHasBeenSet = false;
186
187 Aws::String m_cidrBlock;
188 bool m_cidrBlockHasBeenSet = false;
189
190 Aws::String m_ipv6CidrBlock;
191 bool m_ipv6CidrBlockHasBeenSet = false;
192
193 IcmpTypeCode m_icmpTypeCode;
194 bool m_icmpTypeCodeHasBeenSet = false;
195
196 PortRange m_portRange;
197 bool m_portRangeHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace EC2
202} // namespace Aws
bool CidrBlockHasBeenSet() const
const Aws::String & GetNetworkAclId() const
void SetRuleAction(RuleAction value)
const PortRange & GetPortRange() const
bool GetDryRun() const
void SetNetworkAclId(NetworkAclIdT &&value)
bool RuleActionHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithEgress(bool value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(NetworkAclIdT &&value)
AWS_EC2_API ReplaceNetworkAclEntryRequest()=default
bool GetEgress() const
RuleAction GetRuleAction() const
const Aws::String & GetCidrBlock() const
ReplaceNetworkAclEntryRequest & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
ReplaceNetworkAclEntryRequest & WithRuleAction(RuleAction value)
void SetDryRun(bool value)
bool NetworkAclIdHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::String & GetProtocol() const
ReplaceNetworkAclEntryRequest & WithCidrBlock(CidrBlockT &&value)
ReplaceNetworkAclEntryRequest & WithProtocol(ProtocolT &&value)
ReplaceNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCodeT &&value)
const IcmpTypeCode & GetIcmpTypeCode() const
void SetIpv6CidrBlock(Ipv6CidrBlockT &&value)
ReplaceNetworkAclEntryRequest & WithDryRun(bool value)
bool EgressHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithRuleNumber(int value)
void SetEgress(bool value)
void SetPortRange(PortRangeT &&value)
bool Ipv6CidrBlockHasBeenSet() const
void SetProtocol(ProtocolT &&value)
bool PortRangeHasBeenSet() const
bool IcmpTypeCodeHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetCidrBlock(CidrBlockT &&value)
bool ProtocolHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetIpv6CidrBlock() const
bool RuleNumberHasBeenSet() const
int GetRuleNumber() const
ReplaceNetworkAclEntryRequest & WithPortRange(PortRangeT &&value)
bool DryRunHasBeenSet() const
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
void SetRuleNumber(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String