AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNetworkAclEntryRequest.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 CreateNetworkAclEntryRequest() = 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 "CreateNetworkAclEntry"; }
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 CreateNetworkAclEntryRequest& 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 CreateNetworkAclEntryRequest& WithNetworkAclId(NetworkAclIdT&& value) { SetNetworkAclId(std::forward<NetworkAclIdT>(value)); return *this;}
66
68
73 inline int GetRuleNumber() const { return m_ruleNumber; }
74 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
75 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
76 inline CreateNetworkAclEntryRequest& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
78
80
89 inline const Aws::String& GetProtocol() const { return m_protocol; }
90 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
91 template<typename ProtocolT = Aws::String>
92 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
93 template<typename ProtocolT = Aws::String>
94 CreateNetworkAclEntryRequest& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
96
98
101 inline RuleAction GetRuleAction() const { return m_ruleAction; }
102 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
103 inline void SetRuleAction(RuleAction value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
106
108
112 inline bool GetEgress() const { return m_egress; }
113 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
114 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
115 inline CreateNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
117
119
125 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
126 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
127 template<typename CidrBlockT = Aws::String>
128 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
129 template<typename CidrBlockT = Aws::String>
130 CreateNetworkAclEntryRequest& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
132
134
138 inline const Aws::String& GetIpv6CidrBlock() const { return m_ipv6CidrBlock; }
139 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
140 template<typename Ipv6CidrBlockT = Aws::String>
141 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
142 template<typename Ipv6CidrBlockT = Aws::String>
143 CreateNetworkAclEntryRequest& WithIpv6CidrBlock(Ipv6CidrBlockT&& value) { SetIpv6CidrBlock(std::forward<Ipv6CidrBlockT>(value)); return *this;}
145
147
151 inline const IcmpTypeCode& GetIcmpTypeCode() const { return m_icmpTypeCode; }
152 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
153 template<typename IcmpTypeCodeT = IcmpTypeCode>
154 void SetIcmpTypeCode(IcmpTypeCodeT&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::forward<IcmpTypeCodeT>(value); }
155 template<typename IcmpTypeCodeT = IcmpTypeCode>
156 CreateNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCodeT&& value) { SetIcmpTypeCode(std::forward<IcmpTypeCodeT>(value)); return *this;}
158
160
164 inline const PortRange& GetPortRange() const { return m_portRange; }
165 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
166 template<typename PortRangeT = PortRange>
167 void SetPortRange(PortRangeT&& value) { m_portRangeHasBeenSet = true; m_portRange = std::forward<PortRangeT>(value); }
168 template<typename PortRangeT = PortRange>
169 CreateNetworkAclEntryRequest& WithPortRange(PortRangeT&& value) { SetPortRange(std::forward<PortRangeT>(value)); return *this;}
171 private:
172
173 bool m_dryRun{false};
174 bool m_dryRunHasBeenSet = false;
175
176 Aws::String m_networkAclId;
177 bool m_networkAclIdHasBeenSet = false;
178
179 int m_ruleNumber{0};
180 bool m_ruleNumberHasBeenSet = false;
181
182 Aws::String m_protocol;
183 bool m_protocolHasBeenSet = false;
184
185 RuleAction m_ruleAction{RuleAction::NOT_SET};
186 bool m_ruleActionHasBeenSet = false;
187
188 bool m_egress{false};
189 bool m_egressHasBeenSet = false;
190
191 Aws::String m_cidrBlock;
192 bool m_cidrBlockHasBeenSet = false;
193
194 Aws::String m_ipv6CidrBlock;
195 bool m_ipv6CidrBlockHasBeenSet = false;
196
197 IcmpTypeCode m_icmpTypeCode;
198 bool m_icmpTypeCodeHasBeenSet = false;
199
200 PortRange m_portRange;
201 bool m_portRangeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace EC2
206} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
bool ProtocolHasBeenSet() const
const Aws::String & GetNetworkAclId() const
CreateNetworkAclEntryRequest & WithProtocol(ProtocolT &&value)
bool IcmpTypeCodeHasBeenSet() const
void SetPortRange(PortRangeT &&value)
bool PortRangeHasBeenSet() const
AWS_EC2_API CreateNetworkAclEntryRequest()=default
void SetEgress(bool value)
CreateNetworkAclEntryRequest & WithNetworkAclId(NetworkAclIdT &&value)
const PortRange & GetPortRange() const
void SetDryRun(bool value)
bool RuleActionHasBeenSet() const
CreateNetworkAclEntryRequest & WithRuleNumber(int value)
int GetRuleNumber() const
const Aws::String & GetIpv6CidrBlock() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool NetworkAclIdHasBeenSet() const
CreateNetworkAclEntryRequest & WithCidrBlock(CidrBlockT &&value)
bool CidrBlockHasBeenSet() const
void SetIpv6CidrBlock(Ipv6CidrBlockT &&value)
CreateNetworkAclEntryRequest & WithDryRun(bool value)
bool GetDryRun() const
bool DryRunHasBeenSet() const
CreateNetworkAclEntryRequest & WithEgress(bool value)
void SetIcmpTypeCode(IcmpTypeCodeT &&value)
bool EgressHasBeenSet() const
void SetRuleNumber(int value)
bool RuleNumberHasBeenSet() const
const Aws::String & GetProtocol() const
void SetNetworkAclId(NetworkAclIdT &&value)
virtual const char * GetServiceRequestName() const override
RuleAction GetRuleAction() const
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
void SetCidrBlock(CidrBlockT &&value)
bool Ipv6CidrBlockHasBeenSet() const
const Aws::String & GetCidrBlock() const
void SetProtocol(ProtocolT &&value)
CreateNetworkAclEntryRequest & WithRuleAction(RuleAction value)
void SetRuleAction(RuleAction value)
bool GetEgress() const
CreateNetworkAclEntryRequest & WithPortRange(PortRangeT &&value)
const IcmpTypeCode & GetIcmpTypeCode() const
CreateNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String