AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteNetworkAclEntryRequest.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 <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API DeleteNetworkAclEntryRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteNetworkAclEntry"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
49 inline DeleteNetworkAclEntryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
51
53
56 inline const Aws::String& GetNetworkAclId() const { return m_networkAclId; }
57 inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
58 template<typename NetworkAclIdT = Aws::String>
59 void SetNetworkAclId(NetworkAclIdT&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::forward<NetworkAclIdT>(value); }
60 template<typename NetworkAclIdT = Aws::String>
61 DeleteNetworkAclEntryRequest& WithNetworkAclId(NetworkAclIdT&& value) { SetNetworkAclId(std::forward<NetworkAclIdT>(value)); return *this;}
63
65
68 inline int GetRuleNumber() const { return m_ruleNumber; }
69 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
70 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
71 inline DeleteNetworkAclEntryRequest& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
73
75
78 inline bool GetEgress() const { return m_egress; }
79 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
80 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
81 inline DeleteNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
83 private:
84
85 bool m_dryRun{false};
86 bool m_dryRunHasBeenSet = false;
87
88 Aws::String m_networkAclId;
89 bool m_networkAclIdHasBeenSet = false;
90
91 int m_ruleNumber{0};
92 bool m_ruleNumberHasBeenSet = false;
93
94 bool m_egress{false};
95 bool m_egressHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
void SetDryRun(bool value)
bool RuleNumberHasBeenSet() const
void SetRuleNumber(int value)
DeleteNetworkAclEntryRequest & WithNetworkAclId(NetworkAclIdT &&value)
bool EgressHasBeenSet() const
bool GetEgress() const
bool NetworkAclIdHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetNetworkAclId(NetworkAclIdT &&value)
DeleteNetworkAclEntryRequest & WithEgress(bool value)
bool DryRunHasBeenSet() const
bool GetDryRun() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNetworkAclId() const
DeleteNetworkAclEntryRequest & WithDryRun(bool value)
void SetEgress(bool value)
DeleteNetworkAclEntryRequest & WithRuleNumber(int value)
AWS_EC2_API DeleteNetworkAclEntryRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
int GetRuleNumber() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String