AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 ReplaceNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
65 inline ReplaceNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
66 inline ReplaceNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
68
70
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 ReplaceNetworkAclEntryRequest& 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 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
92 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
93 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
94 inline ReplaceNetworkAclEntryRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
95 inline ReplaceNetworkAclEntryRequest& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
96 inline ReplaceNetworkAclEntryRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
98
100
103 inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
104 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
105 inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
106 inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
107 inline ReplaceNetworkAclEntryRequest& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
108 inline ReplaceNetworkAclEntryRequest& WithRuleAction(RuleAction&& value) { SetRuleAction(std::move(value)); return *this;}
110
112
116 inline bool GetEgress() const{ return m_egress; }
117 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
118 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
119 inline ReplaceNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
121
123
127 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
128 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
129 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
130 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
131 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
132 inline ReplaceNetworkAclEntryRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
133 inline ReplaceNetworkAclEntryRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
134 inline ReplaceNetworkAclEntryRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
136
138
142 inline const Aws::String& GetIpv6CidrBlock() const{ return m_ipv6CidrBlock; }
143 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
144 inline void SetIpv6CidrBlock(const Aws::String& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = value; }
145 inline void SetIpv6CidrBlock(Aws::String&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::move(value); }
146 inline void SetIpv6CidrBlock(const char* value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock.assign(value); }
148 inline ReplaceNetworkAclEntryRequest& WithIpv6CidrBlock(Aws::String&& value) { SetIpv6CidrBlock(std::move(value)); return *this;}
149 inline ReplaceNetworkAclEntryRequest& WithIpv6CidrBlock(const char* value) { SetIpv6CidrBlock(value); return *this;}
151
153
157 inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
158 inline bool IcmpTypeCodeHasBeenSet() const { return m_icmpTypeCodeHasBeenSet; }
159 inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
160 inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = std::move(value); }
161 inline ReplaceNetworkAclEntryRequest& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
162 inline ReplaceNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(std::move(value)); return *this;}
164
166
170 inline const PortRange& GetPortRange() const{ return m_portRange; }
171 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
172 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
173 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
174 inline ReplaceNetworkAclEntryRequest& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
175 inline ReplaceNetworkAclEntryRequest& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
177 private:
178
179 bool m_dryRun;
180 bool m_dryRunHasBeenSet = false;
181
182 Aws::String m_networkAclId;
183 bool m_networkAclIdHasBeenSet = false;
184
185 int m_ruleNumber;
186 bool m_ruleNumberHasBeenSet = false;
187
188 Aws::String m_protocol;
189 bool m_protocolHasBeenSet = false;
190
191 RuleAction m_ruleAction;
192 bool m_ruleActionHasBeenSet = false;
193
194 bool m_egress;
195 bool m_egressHasBeenSet = false;
196
197 Aws::String m_cidrBlock;
198 bool m_cidrBlockHasBeenSet = false;
199
200 Aws::String m_ipv6CidrBlock;
201 bool m_ipv6CidrBlockHasBeenSet = false;
202
203 IcmpTypeCode m_icmpTypeCode;
204 bool m_icmpTypeCodeHasBeenSet = false;
205
206 PortRange m_portRange;
207 bool m_portRangeHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace EC2
212} // namespace Aws
bool CidrBlockHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithRuleAction(const RuleAction &value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
void SetIpv6CidrBlock(Aws::String &&value)
const Aws::String & GetNetworkAclId() const
void SetNetworkAclId(const Aws::String &value)
const PortRange & GetPortRange() const
bool GetDryRun() const
void SetIpv6CidrBlock(const char *value)
AWS_EC2_API ReplaceNetworkAclEntryRequest()
ReplaceNetworkAclEntryRequest & WithIpv6CidrBlock(Aws::String &&value)
void SetPortRange(const PortRange &value)
bool RuleActionHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithEgress(bool value)
void SetIcmpTypeCode(const IcmpTypeCode &value)
ReplaceNetworkAclEntryRequest & WithRuleAction(RuleAction &&value)
ReplaceNetworkAclEntryRequest & WithPortRange(const PortRange &value)
ReplaceNetworkAclEntryRequest & WithIpv6CidrBlock(const char *value)
void SetRuleAction(const RuleAction &value)
bool GetEgress() const
ReplaceNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCode &&value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(const char *value)
ReplaceNetworkAclEntryRequest & WithCidrBlock(const char *value)
const Aws::String & GetCidrBlock() const
void SetNetworkAclId(Aws::String &&value)
ReplaceNetworkAclEntryRequest & WithProtocol(Aws::String &&value)
void SetDryRun(bool value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
ReplaceNetworkAclEntryRequest & WithIcmpTypeCode(const IcmpTypeCode &value)
void SetIpv6CidrBlock(const Aws::String &value)
bool NetworkAclIdHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::String & GetProtocol() const
void SetRuleAction(RuleAction &&value)
ReplaceNetworkAclEntryRequest & WithIpv6CidrBlock(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithProtocol(const char *value)
const IcmpTypeCode & GetIcmpTypeCode() const
ReplaceNetworkAclEntryRequest & WithDryRun(bool value)
void SetProtocol(const Aws::String &value)
bool EgressHasBeenSet() const
void SetCidrBlock(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithRuleNumber(int value)
void SetPortRange(PortRange &&value)
void SetEgress(bool value)
bool Ipv6CidrBlockHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithCidrBlock(Aws::String &&value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
bool PortRangeHasBeenSet() const
bool IcmpTypeCodeHasBeenSet() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetProtocol(const char *value)
void SetCidrBlock(const char *value)
bool ProtocolHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithCidrBlock(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithProtocol(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetIpv6CidrBlock() const
bool RuleNumberHasBeenSet() const
void SetCidrBlock(Aws::String &&value)
void SetProtocol(Aws::String &&value)
const RuleAction & GetRuleAction() const
int GetRuleNumber() const
void SetNetworkAclId(const char *value)
bool DryRunHasBeenSet() const
ReplaceNetworkAclEntryRequest & WithPortRange(PortRange &&value)
void SetRuleNumber(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String