AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteNetworkAclEntryRequest.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>
19 
20 namespace Aws
21 {
22 namespace EC2
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline bool GetDryRun() const{ return m_dryRun; }
43 
50  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 
58  inline DeleteNetworkAclEntryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
63  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
64 
68  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
69 
73  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
74 
78  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
79 
83  inline DeleteNetworkAclEntryRequest& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
84 
88  inline DeleteNetworkAclEntryRequest& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(value); return *this;}
89 
93  inline DeleteNetworkAclEntryRequest& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
94 
98  inline long GetRuleNumber() const{ return m_ruleNumber; }
99 
103  inline void SetRuleNumber(long value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
104 
108  inline DeleteNetworkAclEntryRequest& WithRuleNumber(long value) { SetRuleNumber(value); return *this;}
109 
113  inline bool GetEgress() const{ return m_egress; }
114 
118  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
119 
123  inline DeleteNetworkAclEntryRequest& WithEgress(bool value) { SetEgress(value); return *this;}
124 
125  private:
126  bool m_dryRun;
127  bool m_dryRunHasBeenSet;
128  Aws::String m_networkAclId;
129  bool m_networkAclIdHasBeenSet;
130  long m_ruleNumber;
131  bool m_ruleNumberHasBeenSet;
132  bool m_egress;
133  bool m_egressHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace EC2
138 } // namespace Aws
void SetRuleNumber(long value)
bool GetDryRun() const
void SetNetworkAclId(const char *value)
const Aws::String & GetNetworkAclId() const
long GetRuleNumber() const
void SetNetworkAclId(const Aws::String &value)
DeleteNetworkAclEntryRequest & WithEgress(bool value)
DeleteNetworkAclEntryRequest & WithDryRun(bool value)
void SetNetworkAclId(Aws::String &&value)
void SetEgress(bool value)
DeleteNetworkAclEntryRequest & WithNetworkAclId(const char *value)
DeleteNetworkAclEntryRequest & WithNetworkAclId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteNetworkAclEntryRequest & WithRuleNumber(long value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DeleteNetworkAclEntryRequest & WithNetworkAclId(const Aws::String &value)
void SetDryRun(bool value)
JSON (JavaScript Object Notation).
bool GetEgress() const