AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
62 inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
63 inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
64 inline CreateNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
65 inline CreateNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
66 inline CreateNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
68
70
75 inline int GetRuleNumber() const{ return m_ruleNumber; }
76 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
77 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
78 inline CreateNetworkAclEntryRequest& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
80
82
91 inline const Aws::String& GetProtocol() const{ return m_protocol; }
92 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
93 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
94 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
95 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
96 inline CreateNetworkAclEntryRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
97 inline CreateNetworkAclEntryRequest& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
98 inline CreateNetworkAclEntryRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
100
102
105 inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
106 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
107 inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
108 inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
109 inline CreateNetworkAclEntryRequest& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
110 inline CreateNetworkAclEntryRequest& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
112
114
118 inline bool GetEgress() const{ return m_egress; }
119 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
120 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
121 inline CreateNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
123
125
131 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
132 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
133 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
134 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
135 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
136 inline CreateNetworkAclEntryRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
137 inline CreateNetworkAclEntryRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
138 inline CreateNetworkAclEntryRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
140
142
146 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
147 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
148 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
149 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
150 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
151 inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
152 inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
153 inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
155
157
161 inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
162 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
163 inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
164 inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
165 inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
166 inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
168
170
174 inline const PortRange& GetPortRange() const{ return m_portRange; }
175 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
176 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
177 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
178 inline CreateNetworkAclEntryRequest& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
179 inline CreateNetworkAclEntryRequest& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
181 private:
182
183 bool m_dryRun;
184 bool m_dryRunHasBeenSet = false;
185
186 Aws::String m_networkAclId;
187 bool m_networkAclIdHasBeenSet = false;
188
189 int m_ruleNumber;
190 bool m_ruleNumberHasBeenSet = false;
191
192 Aws::String m_protocol;
193 bool m_protocolHasBeenSet = false;
194
195 RuleAction m_ruleAction;
196 bool m_ruleActionHasBeenSet = false;
197
198 bool m_egress;
199 bool m_egressHasBeenSet = false;
200
201 Aws::String m_cidrBlock;
202 bool m_cidrBlockHasBeenSet = false;
203
204 Aws::String m_ipv6CidrBlock;
205 bool m_ipv6CidrBlockHasBeenSet = false;
206
207 IcmpTypeCode m_icmpTypeCode;
208 bool m_icmpTypeCodeHasBeenSet = false;
209
210 PortRange m_portRange;
211 bool m_portRangeHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace EC2
216} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
void SetIpv6CidrBlock(const char *value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
bool ProtocolHasBeenSet() const
const Aws::String & GetNetworkAclId() const
CreateNetworkAclEntryRequest & WithCidrBlock(const char *value)
CreateNetworkAclEntryRequest & WithPortRange(const PortRange &value)
void SetCidrBlock(Aws::String &&value)
bool IcmpTypeCodeHasBeenSet() const
void SetPortRange(const PortRange &value)
bool PortRangeHasBeenSet() const
CreateNetworkAclEntryRequest & WithProtocol(Aws::String &&value)
void SetRuleAction(const RuleAction &value)
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(const char *value)
void SetEgress(bool value)
const PortRange & GetPortRange() const
void SetRuleAction(RuleAction &&value)
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(const Aws::String &value)
void SetDryRun(bool value)
bool RuleActionHasBeenSet() const
const RuleAction & GetRuleAction() const
CreateNetworkAclEntryRequest & WithRuleAction(RuleAction &&value)
CreateNetworkAclEntryRequest & WithRuleNumber(int value)
int GetRuleNumber() const
const Aws::String & GetIpv6CidrBlock() const
void SetNetworkAclId(const Aws::String &value)
CreateNetworkAclEntryRequest & WithRuleAction(const RuleAction &value)
CreateNetworkAclEntryRequest & WithCidrBlock(Aws::String &&value)
void SetProtocol(const Aws::String &value)
void SetPortRange(PortRange &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(Aws::String &&value)
void SetProtocol(const char *value)
bool NetworkAclIdHasBeenSet() const
bool CidrBlockHasBeenSet() const
void SetIpv6CidrBlock(Aws::String &&value)
void SetNetworkAclId(const char *value)
CreateNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
CreateNetworkAclEntryRequest & WithDryRun(bool value)
void SetIpv6CidrBlock(const Aws::String &value)
bool GetDryRun() const
bool DryRunHasBeenSet() const
CreateNetworkAclEntryRequest & WithEgress(bool value)
void SetCidrBlock(const Aws::String &value)
CreateNetworkAclEntryRequest & WithPortRange(PortRange &&value)
CreateNetworkAclEntryRequest & WithCidrBlock(const Aws::String &value)
void SetCidrBlock(const char *value)
bool EgressHasBeenSet() const
void SetRuleNumber(int value)
bool RuleNumberHasBeenSet() const
const Aws::String & GetProtocol() const
CreateNetworkAclEntryRequest & WithNetworkAclId(const char *value)
CreateNetworkAclEntryRequest & WithProtocol(const char *value)
void SetNetworkAclId(Aws::String &&value)
CreateNetworkAclEntryRequest & WithIcmpTypeCode(const IcmpTypeCode &value)
CreateNetworkAclEntryRequest & WithProtocol(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCode &&value)
bool Ipv6CidrBlockHasBeenSet() const
const Aws::String & GetCidrBlock() const
void SetProtocol(Aws::String &&value)
void SetIcmpTypeCode(const IcmpTypeCode &value)
AWS_EC2_API CreateNetworkAclEntryRequest()
CreateNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
bool GetEgress() const
const IcmpTypeCode & GetIcmpTypeCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String