AWS SDK for C++  0.12.9
AWS SDK for C++
ReplaceNetworkAclEntryRequest.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 ReplaceNetworkAclEntryRequest& 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 ReplaceNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
87 
91  inline ReplaceNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(value); return *this;}
92 
96  inline ReplaceNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
97 
101  inline long GetRuleNumber() const{ return m_ruleNumber; }
102 
106  inline void SetRuleNumber(long value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
107 
111  inline ReplaceNetworkAclEntryRequest& WithRuleNumber(long value) { SetRuleNumber(value); return *this;}
112 
117  inline const Aws::String& GetProtocol() const{ return m_protocol; }
118 
123  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
124 
129  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = value; }
130 
135  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
136 
141  inline ReplaceNetworkAclEntryRequest& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
142 
147  inline ReplaceNetworkAclEntryRequest& WithProtocol(Aws::String&& value) { SetProtocol(value); return *this;}
148 
153  inline ReplaceNetworkAclEntryRequest& WithProtocol(const char* value) { SetProtocol(value); return *this;}
154 
158  inline const RuleAction& GetRuleAction() const{ return m_ruleAction; }
159 
163  inline void SetRuleAction(const RuleAction& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
164 
168  inline void SetRuleAction(RuleAction&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
169 
173  inline ReplaceNetworkAclEntryRequest& WithRuleAction(const RuleAction& value) { SetRuleAction(value); return *this;}
174 
178  inline ReplaceNetworkAclEntryRequest& WithRuleAction(RuleAction&& value) { SetRuleAction(value); return *this;}
179 
184  inline bool GetEgress() const{ return m_egress; }
185 
190  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
191 
196  inline ReplaceNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
197 
201  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
202 
206  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
207 
211  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
212 
216  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
217 
221  inline ReplaceNetworkAclEntryRequest& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
222 
226  inline ReplaceNetworkAclEntryRequest& WithCidrBlock(Aws::String&& value) { SetCidrBlock(value); return *this;}
227 
231  inline ReplaceNetworkAclEntryRequest& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
232 
237  inline const IcmpTypeCode& GetIcmpTypeCode() const{ return m_icmpTypeCode; }
238 
243  inline void SetIcmpTypeCode(const IcmpTypeCode& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
244 
249  inline void SetIcmpTypeCode(IcmpTypeCode&& value) { m_icmpTypeCodeHasBeenSet = true; m_icmpTypeCode = value; }
250 
255  inline ReplaceNetworkAclEntryRequest& WithIcmpTypeCode(const IcmpTypeCode& value) { SetIcmpTypeCode(value); return *this;}
256 
261  inline ReplaceNetworkAclEntryRequest& WithIcmpTypeCode(IcmpTypeCode&& value) { SetIcmpTypeCode(value); return *this;}
262 
267  inline const PortRange& GetPortRange() const{ return m_portRange; }
268 
273  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
274 
279  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
280 
285  inline ReplaceNetworkAclEntryRequest& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
286 
291  inline ReplaceNetworkAclEntryRequest& WithPortRange(PortRange&& value) { SetPortRange(value); return *this;}
292 
293  private:
294  bool m_dryRun;
295  bool m_dryRunHasBeenSet;
296  Aws::String m_networkAclId;
297  bool m_networkAclIdHasBeenSet;
298  long m_ruleNumber;
299  bool m_ruleNumberHasBeenSet;
300  Aws::String m_protocol;
301  bool m_protocolHasBeenSet;
302  RuleAction m_ruleAction;
303  bool m_ruleActionHasBeenSet;
304  bool m_egress;
305  bool m_egressHasBeenSet;
306  Aws::String m_cidrBlock;
307  bool m_cidrBlockHasBeenSet;
308  IcmpTypeCode m_icmpTypeCode;
309  bool m_icmpTypeCodeHasBeenSet;
310  PortRange m_portRange;
311  bool m_portRangeHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace EC2
316 } // namespace Aws
ReplaceNetworkAclEntryRequest & WithIcmpTypeCode(const IcmpTypeCode &value)
ReplaceNetworkAclEntryRequest & WithProtocol(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithDryRun(bool value)
ReplaceNetworkAclEntryRequest & WithCidrBlock(const char *value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
const Aws::String & GetProtocol() const
void SetIcmpTypeCode(const IcmpTypeCode &value)
ReplaceNetworkAclEntryRequest & WithEgress(bool value)
ReplaceNetworkAclEntryRequest & WithRuleAction(const RuleAction &value)
void SetRuleAction(RuleAction &&value)
long GetRuleNumber() const
void SetPortRange(const PortRange &value)
void SetPortRange(PortRange &&value)
bool GetDryRun() const
void SetCidrBlock(Aws::String &&value)
ReplaceNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
const PortRange & GetPortRange() const
void SetDryRun(bool value)
ReplaceNetworkAclEntryRequest & WithProtocol(const char *value)
void SetRuleAction(const RuleAction &value)
void SetNetworkAclId(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithIcmpTypeCode(IcmpTypeCode &&value)
void SetCidrBlock(const char *value)
void SetProtocol(Aws::String &&value)
void SetCidrBlock(const Aws::String &value)
ReplaceNetworkAclEntryRequest & WithCidrBlock(const Aws::String &value)
void SetRuleNumber(long value)
ReplaceNetworkAclEntryRequest & WithProtocol(Aws::String &&value)
void SetProtocol(const Aws::String &value)
const IcmpTypeCode & GetIcmpTypeCode() const
bool GetEgress() const
const RuleAction & GetRuleAction() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNetworkAclId(const char *value)
ReplaceNetworkAclEntryRequest & WithPortRange(PortRange &&value)
ReplaceNetworkAclEntryRequest & WithRuleNumber(long value)
const Aws::String & GetCidrBlock() const
void SetEgress(bool value)
ReplaceNetworkAclEntryRequest & WithRuleAction(RuleAction &&value)
ReplaceNetworkAclEntryRequest & WithCidrBlock(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
const Aws::String & GetNetworkAclId() const
ReplaceNetworkAclEntryRequest & WithNetworkAclId(const char *value)
void SetNetworkAclId(Aws::String &&value)
void SetProtocol(const char *value)
void SetIcmpTypeCode(IcmpTypeCode &&value)
ReplaceNetworkAclEntryRequest & WithPortRange(const PortRange &value)
JSON (JavaScript Object Notation).