AWS SDK for C++  1.9.65
AWS SDK for C++
AnalysisAclRule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetCidr() const{ return m_cidr; }
47 
51  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
52 
56  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
57 
61  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
62 
66  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
67 
71  inline AnalysisAclRule& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
72 
76  inline AnalysisAclRule& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
77 
81  inline AnalysisAclRule& WithCidr(const char* value) { SetCidr(value); return *this;}
82 
83 
87  inline bool GetEgress() const{ return m_egress; }
88 
92  inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
93 
97  inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
98 
102  inline AnalysisAclRule& WithEgress(bool value) { SetEgress(value); return *this;}
103 
104 
108  inline const PortRange& GetPortRange() const{ return m_portRange; }
109 
113  inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
114 
118  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
119 
123  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
124 
128  inline AnalysisAclRule& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
129 
133  inline AnalysisAclRule& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
134 
135 
139  inline const Aws::String& GetProtocol() const{ return m_protocol; }
140 
144  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
145 
149  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
150 
154  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
155 
159  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
160 
164  inline AnalysisAclRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
165 
169  inline AnalysisAclRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
170 
174  inline AnalysisAclRule& WithProtocol(const char* value) { SetProtocol(value); return *this;}
175 
176 
180  inline const Aws::String& GetRuleAction() const{ return m_ruleAction; }
181 
185  inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
186 
190  inline void SetRuleAction(const Aws::String& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
191 
195  inline void SetRuleAction(Aws::String&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
196 
200  inline void SetRuleAction(const char* value) { m_ruleActionHasBeenSet = true; m_ruleAction.assign(value); }
201 
205  inline AnalysisAclRule& WithRuleAction(const Aws::String& value) { SetRuleAction(value); return *this;}
206 
210  inline AnalysisAclRule& WithRuleAction(Aws::String&& value) { SetRuleAction(std::move(value)); return *this;}
211 
215  inline AnalysisAclRule& WithRuleAction(const char* value) { SetRuleAction(value); return *this;}
216 
217 
221  inline int GetRuleNumber() const{ return m_ruleNumber; }
222 
226  inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
227 
231  inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
232 
236  inline AnalysisAclRule& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
237 
238  private:
239 
240  Aws::String m_cidr;
241  bool m_cidrHasBeenSet;
242 
243  bool m_egress;
244  bool m_egressHasBeenSet;
245 
246  PortRange m_portRange;
247  bool m_portRangeHasBeenSet;
248 
249  Aws::String m_protocol;
250  bool m_protocolHasBeenSet;
251 
252  Aws::String m_ruleAction;
253  bool m_ruleActionHasBeenSet;
254 
255  int m_ruleNumber;
256  bool m_ruleNumberHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace EC2
261 } // namespace Aws
Aws::EC2::Model::AnalysisAclRule
Definition: AnalysisAclRule.h:33
Aws::EC2::Model::AnalysisAclRule::AnalysisAclRule
AnalysisAclRule()
Aws::EC2::Model::AnalysisAclRule::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: AnalysisAclRule.h:51
Aws::EC2::Model::AnalysisAclRule::SetRuleAction
void SetRuleAction(const Aws::String &value)
Definition: AnalysisAclRule.h:190
Aws::EC2::Model::AnalysisAclRule::SetCidr
void SetCidr(const char *value)
Definition: AnalysisAclRule.h:66
Aws::EC2::Model::AnalysisAclRule::WithEgress
AnalysisAclRule & WithEgress(bool value)
Definition: AnalysisAclRule.h:102
Aws::EC2::Model::AnalysisAclRule::GetRuleAction
const Aws::String & GetRuleAction() const
Definition: AnalysisAclRule.h:180
Aws::EC2::Model::AnalysisAclRule::GetRuleNumber
int GetRuleNumber() const
Definition: AnalysisAclRule.h:221
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AnalysisAclRule::WithRuleAction
AnalysisAclRule & WithRuleAction(const Aws::String &value)
Definition: AnalysisAclRule.h:205
Aws::EC2::Model::AnalysisAclRule::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: AnalysisAclRule.h:154
Aws::EC2::Model::AnalysisAclRule::WithRuleAction
AnalysisAclRule & WithRuleAction(Aws::String &&value)
Definition: AnalysisAclRule.h:210
Aws::EC2::Model::AnalysisAclRule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AnalysisAclRule::SetPortRange
void SetPortRange(const PortRange &value)
Definition: AnalysisAclRule.h:118
Aws::EC2::Model::AnalysisAclRule::GetCidr
const Aws::String & GetCidr() const
Definition: AnalysisAclRule.h:46
AWSStreamFwd.h
Aws::EC2::Model::AnalysisAclRule::WithProtocol
AnalysisAclRule & WithProtocol(Aws::String &&value)
Definition: AnalysisAclRule.h:169
Aws::EC2::Model::AnalysisAclRule::WithProtocol
AnalysisAclRule & WithProtocol(const char *value)
Definition: AnalysisAclRule.h:174
Aws::EC2::Model::AnalysisAclRule::WithCidr
AnalysisAclRule & WithCidr(Aws::String &&value)
Definition: AnalysisAclRule.h:76
Aws::EC2::Model::AnalysisAclRule::SetRuleAction
void SetRuleAction(Aws::String &&value)
Definition: AnalysisAclRule.h:195
Aws::EC2::Model::AnalysisAclRule::WithCidr
AnalysisAclRule & WithCidr(const Aws::String &value)
Definition: AnalysisAclRule.h:71
Aws::EC2::Model::AnalysisAclRule::GetEgress
bool GetEgress() const
Definition: AnalysisAclRule.h:87
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AnalysisAclRule::GetProtocol
const Aws::String & GetProtocol() const
Definition: AnalysisAclRule.h:139
Aws::EC2::Model::AnalysisAclRule::RuleActionHasBeenSet
bool RuleActionHasBeenSet() const
Definition: AnalysisAclRule.h:185
Aws::EC2::Model::AnalysisAclRule::GetPortRange
const PortRange & GetPortRange() const
Definition: AnalysisAclRule.h:108
Aws::EC2::Model::AnalysisAclRule::RuleNumberHasBeenSet
bool RuleNumberHasBeenSet() const
Definition: AnalysisAclRule.h:226
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AnalysisAclRule::operator=
AnalysisAclRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PortRange.h
Aws::EC2::Model::AnalysisAclRule::WithProtocol
AnalysisAclRule & WithProtocol(const Aws::String &value)
Definition: AnalysisAclRule.h:164
Aws::EC2::Model::AnalysisAclRule::SetPortRange
void SetPortRange(PortRange &&value)
Definition: AnalysisAclRule.h:123
Aws::EC2::Model::AnalysisAclRule::WithRuleAction
AnalysisAclRule & WithRuleAction(const char *value)
Definition: AnalysisAclRule.h:215
AWSString.h
Aws::EC2::Model::AnalysisAclRule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AnalysisAclRule::SetRuleNumber
void SetRuleNumber(int value)
Definition: AnalysisAclRule.h:231
Aws::EC2::Model::AnalysisAclRule::WithPortRange
AnalysisAclRule & WithPortRange(PortRange &&value)
Definition: AnalysisAclRule.h:133
Aws::EC2::Model::AnalysisAclRule::EgressHasBeenSet
bool EgressHasBeenSet() const
Definition: AnalysisAclRule.h:92
Aws::EC2::Model::AnalysisAclRule::PortRangeHasBeenSet
bool PortRangeHasBeenSet() const
Definition: AnalysisAclRule.h:113
Aws::EC2::Model::AnalysisAclRule::SetEgress
void SetEgress(bool value)
Definition: AnalysisAclRule.h:97
Aws::EC2::Model::AnalysisAclRule::SetCidr
void SetCidr(Aws::String &&value)
Definition: AnalysisAclRule.h:61
Aws::EC2::Model::AnalysisAclRule::SetProtocol
void SetProtocol(const char *value)
Definition: AnalysisAclRule.h:159
Aws::EC2::Model::AnalysisAclRule::SetRuleAction
void SetRuleAction(const char *value)
Definition: AnalysisAclRule.h:200
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AnalysisAclRule::AnalysisAclRule
AnalysisAclRule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AnalysisAclRule::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: AnalysisAclRule.h:149
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AnalysisAclRule::WithCidr
AnalysisAclRule & WithCidr(const char *value)
Definition: AnalysisAclRule.h:81
Aws::EC2::Model::AnalysisAclRule::SetCidr
void SetCidr(const Aws::String &value)
Definition: AnalysisAclRule.h:56
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AnalysisAclRule::WithPortRange
AnalysisAclRule & WithPortRange(const PortRange &value)
Definition: AnalysisAclRule.h:128
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
EC2_EXPORTS.h
Aws::EC2::Model::AnalysisAclRule::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: AnalysisAclRule.h:144
Aws::EC2::Model::AnalysisAclRule::WithRuleNumber
AnalysisAclRule & WithRuleNumber(int value)
Definition: AnalysisAclRule.h:236