AWS SDK for C++  0.12.9
AWS SDK for C++
CreateNetworkAclEntryRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 
61  inline CreateNetworkAclEntryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
62 
66  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
67 
71  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
72 
76  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
77 
81  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
82 
86  inline CreateNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
87 
91  inline CreateNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(value); return *this;}
92 
96  inline CreateNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
97 
103  inline long GetRuleNumber() const{ return m_ruleNumber; }
104 
110  inline void SetRuleNumber(long value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
111 
117  inline CreateNetworkAclEntryRequest& WithRuleNumber(long value) { SetRuleNumber(value); return *this;}
118 
122  inline const Aws::String& GetProtocol() const{ return m_protocol; }
123 
127  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
128 
132  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = value; }
133 
137  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
138 
142  inline CreateNetworkAclEntryRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
143 
147  inline CreateNetworkAclEntryRequest& WithProtocol(Aws::String&& value) { SetProtocol(value); return *this;}
148 
152  inline CreateNetworkAclEntryRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
153 
157  inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
158 
162  inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
163 
167  inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
168 
172  inline CreateNetworkAclEntryRequest& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
173 
177  inline CreateNetworkAclEntryRequest& WithRuleAction(RuleAction&& value) { SetRuleAction(value); return *this;}
178 
183  inline bool GetEgress() const{ return m_egress; }
184 
189  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
190 
195  inline CreateNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
196 
201  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
202 
207  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
208 
213  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
214 
219  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
220 
225  inline CreateNetworkAclEntryRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
226 
231  inline CreateNetworkAclEntryRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(value); return *this;}
232 
237  inline CreateNetworkAclEntryRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
238 
243  inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
244 
249  inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
250 
255  inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
256 
261  inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
262 
267  inline CreateNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(value); return *this;}
268 
272  inline const PortRange& GetPortRange() const{ return m_portRange; }
273 
277  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
278 
282  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
283 
287  inline CreateNetworkAclEntryRequest& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
288 
292  inline CreateNetworkAclEntryRequest& WithPortRange(PortRange&& value) { SetPortRange(value); return *this;}
293 
294  private:
295  bool m_dryRun;
296  bool m_dryRunHasBeenSet;
297  Aws::String m_networkAclId;
298  bool m_networkAclIdHasBeenSet;
299  long m_ruleNumber;
300  bool m_ruleNumberHasBeenSet;
301  Aws::String m_protocol;
302  bool m_protocolHasBeenSet;
303  RuleAction m_ruleAction;
304  bool m_ruleActionHasBeenSet;
305  bool m_egress;
306  bool m_egressHasBeenSet;
307  Aws::String m_cidrBlock;
308  bool m_cidrBlockHasBeenSet;
309  IcmpTypeCode m_icmpTypeCode;
310  bool m_icmpTypeCodeHasBeenSet;
311  PortRange m_portRange;
312  bool m_portRangeHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace EC2
317 } // namespace Aws
void SetProtocol(Aws::String &&value)
bool GetEgress() const
const IcmpTypeCode & GetIcmpTypeCode() const
void SetEgress(bool value)
CreateNetworkAclEntryRequest & WithProtocol(const char *value)
const Aws::String & GetCidrBlock() const
CreateNetworkAclEntryRequest & WithPortRange(PortRange &&value)
CreateNetworkAclEntryRequest & WithPortRange(const PortRange &value)
CreateNetworkAclEntryRequest & WithRuleNumber(long value)
CreateNetworkAclEntryRequest & WithCidrBlock(const char *value)
CreateNetworkAclEntryRequest & WithProtocol(Aws::String &&value)
const RuleAction & GetRuleAction() const
void SetNetworkAclId(Aws::String &&value)
const PortRange & GetPortRange() const
CreateNetworkAclEntryRequest & WithDryRun(bool value)
const Aws::String & GetNetworkAclId() const
void SetPortRange(PortRange &&value)
void SetRuleAction(const RuleAction &value)
const Aws::String & GetProtocol() const
CreateNetworkAclEntryRequest & WithNetworkAclId(const char *value)
void SetPortRange(const PortRange &value)
void SetNetworkAclId(const char *value)
CreateNetworkAclEntryRequest & WithCidrBlock(const Aws::String &value)
CreateNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCode &&value)
bool GetDryRun() const
void SetProtocol(const char *value)
void SetDryRun(bool value)
void SetNetworkAclId(const Aws::String &value)
long GetRuleNumber() const
CreateNetworkAclEntryRequest & WithEgress(bool value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
void SetProtocol(const Aws::String &value)
CreateNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
void SetRuleAction(RuleAction &&value)
void SetIcmpTypeCode(const IcmpTypeCode &value)
CreateNetworkAclEntryRequest & WithRuleAction(RuleAction &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateNetworkAclEntryRequest & WithRuleAction(const RuleAction &value)
CreateNetworkAclEntryRequest & WithCidrBlock(Aws::String &&value)
CreateNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
CreateNetworkAclEntryRequest & WithIcmpTypeCode(const IcmpTypeCode &value)
void SetCidrBlock(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetCidrBlock(Aws::String &&value)
void SetRuleNumber(long value)
CreateNetworkAclEntryRequest & WithProtocol(const Aws::String &value)
void SetCidrBlock(const char *value)
JSON (JavaScript Object Notation).