AWS SDK for C++  1.9.70
AWS SDK for C++
CreateNetworkAclEntryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace 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::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
49 
56  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
57 
64  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
65 
72  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
73 
80  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
81 
88  inline CreateNetworkAclEntryRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
89 
96  inline CreateNetworkAclEntryRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
97 
104  inline CreateNetworkAclEntryRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
105 
106 
113  inline bool GetDryRun() const{ return m_dryRun; }
114 
121  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
122 
129  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
130 
137  inline CreateNetworkAclEntryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
138 
139 
144  inline bool GetEgress() const{ return m_egress; }
145 
150  inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
151 
156  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
157 
162  inline CreateNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
163 
164 
169  inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
170 
175  inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
176 
181  inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
182 
187  inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
188 
193  inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
194 
199  inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
200 
201 
206  inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
207 
212  inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
213 
218  inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
219 
224  inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
225 
230  inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
231 
236  inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(const Aws::String& value) { SetIpv6CidrBlock(value); return *this;}
237 
242  inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
243 
248  inline CreateNetworkAclEntryRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
249 
250 
254  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
255 
259  inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
260 
264  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
265 
269  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
270 
274  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
275 
279  inline CreateNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
280 
284  inline CreateNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
285 
289  inline CreateNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
290 
291 
296  inline const PortRange& GetPortRange() const{ return m_portRange; }
297 
302  inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
303 
308  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
309 
314  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
315 
320  inline CreateNetworkAclEntryRequest& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
321 
326  inline CreateNetworkAclEntryRequest& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
327 
328 
338  inline const Aws::String& GetProtocol() const{ return m_protocol; }
339 
349  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
350 
360  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
361 
371  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
372 
382  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
383 
393  inline CreateNetworkAclEntryRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
394 
404  inline CreateNetworkAclEntryRequest& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
405 
415  inline CreateNetworkAclEntryRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
416 
417 
421  inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
422 
426  inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
427 
431  inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
432 
436  inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
437 
441  inline CreateNetworkAclEntryRequest& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
442 
446  inline CreateNetworkAclEntryRequest& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
447 
448 
454  inline int GetRuleNumber() const{ return m_ruleNumber; }
455 
461  inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
462 
468  inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
469 
475  inline CreateNetworkAclEntryRequest& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
476 
477  private:
478 
479  Aws::String m_cidrBlock;
480  bool m_cidrBlockHasBeenSet;
481 
482  bool m_dryRun;
483  bool m_dryRunHasBeenSet;
484 
485  bool m_egress;
486  bool m_egressHasBeenSet;
487 
488  IcmpTypeCode m_icmpTypeCode;
489  bool m_icmpTypeCodeHasBeenSet;
490 
491  Aws::String m_ipv6CidrBlock;
492  bool m_ipv6CidrBlockHasBeenSet;
493 
494  Aws::String m_networkAclId;
495  bool m_networkAclIdHasBeenSet;
496 
497  PortRange m_portRange;
498  bool m_portRangeHasBeenSet;
499 
500  Aws::String m_protocol;
501  bool m_protocolHasBeenSet;
502 
503  RuleAction m_ruleAction;
504  bool m_ruleActionHasBeenSet;
505 
506  int m_ruleNumber;
507  bool m_ruleNumberHasBeenSet;
508  };
509 
510 } // namespace Model
511 } // namespace EC2
512 } // namespace Aws
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetNetworkAclId
void SetNetworkAclId(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:269
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithNetworkAclId
CreateNetworkAclEntryRequest & WithNetworkAclId(const char *value)
Definition: CreateNetworkAclEntryRequest.h:289
Aws::EC2::Model::CreateNetworkAclEntryRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:349
Aws::EC2::Model::CreateNetworkAclEntryRequest::NetworkAclIdHasBeenSet
bool NetworkAclIdHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:259
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithRuleAction
CreateNetworkAclEntryRequest & WithRuleAction(RuleAction &&value)
Definition: CreateNetworkAclEntryRequest.h:446
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:360
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithIcmpTypeCode
CreateNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCode &&value)
Definition: CreateNetworkAclEntryRequest.h:199
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetIpv6CidrBlock
const Aws::String & GetIpv6CidrBlock() const
Definition: CreateNetworkAclEntryRequest.h:206
Aws::EC2::Model::CreateNetworkAclEntryRequest::PortRangeHasBeenSet
bool PortRangeHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:302
Aws::EC2::Model::RuleAction
RuleAction
Definition: RuleAction.h:17
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:371
Aws::EC2::Model::CreateNetworkAclEntryRequest::RuleActionHasBeenSet
bool RuleActionHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:426
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetRuleAction
void SetRuleAction(const RuleAction &value)
Definition: CreateNetworkAclEntryRequest.h:431
Aws::EC2::Model::IcmpTypeCode
Definition: IcmpTypeCode.h:30
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetPortRange
void SetPortRange(const PortRange &value)
Definition: CreateNetworkAclEntryRequest.h:308
Aws::EC2::Model::CreateNetworkAclEntryRequest::RuleNumberHasBeenSet
bool RuleNumberHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:461
Aws::EC2::Model::CreateNetworkAclEntryRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:121
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNetworkAclEntryRequest.h:33
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetPortRange
const PortRange & GetPortRange() const
Definition: CreateNetworkAclEntryRequest.h:296
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithProtocol
CreateNetworkAclEntryRequest & WithProtocol(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:393
Aws::EC2::Model::CreateNetworkAclEntryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithProtocol
CreateNetworkAclEntryRequest & WithProtocol(const char *value)
Definition: CreateNetworkAclEntryRequest.h:415
IcmpTypeCode.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetNetworkAclId
const Aws::String & GetNetworkAclId() const
Definition: CreateNetworkAclEntryRequest.h:254
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithIpv6CidrBlock
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:236
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithEgress
CreateNetworkAclEntryRequest & WithEgress(bool value)
Definition: CreateNetworkAclEntryRequest.h:162
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:224
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetRuleNumber
void SetRuleNumber(int value)
Definition: CreateNetworkAclEntryRequest.h:468
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetCidrBlock
void SetCidrBlock(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:64
Aws::EC2::Model::CreateNetworkAclEntryRequest::CidrBlockHasBeenSet
bool CidrBlockHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:56
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:218
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetCidrBlock
void SetCidrBlock(const char *value)
Definition: CreateNetworkAclEntryRequest.h:80
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithCidrBlock
CreateNetworkAclEntryRequest & WithCidrBlock(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:96
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithDryRun
CreateNetworkAclEntryRequest & WithDryRun(bool value)
Definition: CreateNetworkAclEntryRequest.h:137
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithNetworkAclId
CreateNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:284
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetIcmpTypeCode
void SetIcmpTypeCode(IcmpTypeCode &&value)
Definition: CreateNetworkAclEntryRequest.h:187
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithIcmpTypeCode
CreateNetworkAclEntryRequest & WithIcmpTypeCode(const IcmpTypeCode &value)
Definition: CreateNetworkAclEntryRequest.h:193
Aws::EC2::Model::CreateNetworkAclEntryRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithCidrBlock
CreateNetworkAclEntryRequest & WithCidrBlock(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:88
PortRange.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetProtocol
const Aws::String & GetProtocol() const
Definition: CreateNetworkAclEntryRequest.h:338
EC2Request.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::CreateNetworkAclEntryRequest
CreateNetworkAclEntryRequest()
AWSString.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetIcmpTypeCode
const IcmpTypeCode & GetIcmpTypeCode() const
Definition: CreateNetworkAclEntryRequest.h:169
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetRuleAction
const RuleAction & GetRuleAction() const
Definition: CreateNetworkAclEntryRequest.h:421
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetProtocol
void SetProtocol(const char *value)
Definition: CreateNetworkAclEntryRequest.h:382
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithPortRange
CreateNetworkAclEntryRequest & WithPortRange(const PortRange &value)
Definition: CreateNetworkAclEntryRequest.h:320
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetEgress
bool GetEgress() const
Definition: CreateNetworkAclEntryRequest.h:144
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetNetworkAclId
void SetNetworkAclId(const char *value)
Definition: CreateNetworkAclEntryRequest.h:274
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithCidrBlock
CreateNetworkAclEntryRequest & WithCidrBlock(const char *value)
Definition: CreateNetworkAclEntryRequest.h:104
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetIpv6CidrBlock
void SetIpv6CidrBlock(const char *value)
Definition: CreateNetworkAclEntryRequest.h:230
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithRuleAction
CreateNetworkAclEntryRequest & WithRuleAction(const RuleAction &value)
Definition: CreateNetworkAclEntryRequest.h:441
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetPortRange
void SetPortRange(PortRange &&value)
Definition: CreateNetworkAclEntryRequest.h:314
Aws::EC2::Model::CreateNetworkAclEntryRequest
Definition: CreateNetworkAclEntryRequest.h:25
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithIpv6CidrBlock
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(const char *value)
Definition: CreateNetworkAclEntryRequest.h:248
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetRuleAction
void SetRuleAction(RuleAction &&value)
Definition: CreateNetworkAclEntryRequest.h:436
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithProtocol
CreateNetworkAclEntryRequest & WithProtocol(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:404
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetEgress
void SetEgress(bool value)
Definition: CreateNetworkAclEntryRequest.h:156
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetRuleNumber
int GetRuleNumber() const
Definition: CreateNetworkAclEntryRequest.h:454
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithIpv6CidrBlock
CreateNetworkAclEntryRequest & WithIpv6CidrBlock(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:242
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetCidrBlock
void SetCidrBlock(Aws::String &&value)
Definition: CreateNetworkAclEntryRequest.h:72
Aws::EC2::Model::CreateNetworkAclEntryRequest::EgressHasBeenSet
bool EgressHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:150
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithNetworkAclId
CreateNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:279
Aws::EC2::Model::CreateNetworkAclEntryRequest::IcmpTypeCodeHasBeenSet
bool IcmpTypeCodeHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:175
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetCidrBlock
const Aws::String & GetCidrBlock() const
Definition: CreateNetworkAclEntryRequest.h:48
EC2_EXPORTS.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::Ipv6CidrBlockHasBeenSet
bool Ipv6CidrBlockHasBeenSet() const
Definition: CreateNetworkAclEntryRequest.h:212
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNetworkAclEntryRequest.h:129
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithPortRange
CreateNetworkAclEntryRequest & WithPortRange(PortRange &&value)
Definition: CreateNetworkAclEntryRequest.h:326
RuleAction.h
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetIcmpTypeCode
void SetIcmpTypeCode(const IcmpTypeCode &value)
Definition: CreateNetworkAclEntryRequest.h:181
Aws::EC2::Model::CreateNetworkAclEntryRequest::WithRuleNumber
CreateNetworkAclEntryRequest & WithRuleNumber(int value)
Definition: CreateNetworkAclEntryRequest.h:475
Aws::EC2::Model::CreateNetworkAclEntryRequest::SetNetworkAclId
void SetNetworkAclId(const Aws::String &value)
Definition: CreateNetworkAclEntryRequest.h:264
Aws::EC2::Model::CreateNetworkAclEntryRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNetworkAclEntryRequest.h:113