AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalysisAclRule.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/PortRange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API AnalysisAclRule();
36 AWS_EC2_API AnalysisAclRule(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetCidr() const{ return m_cidr; }
48 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
49 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
50 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
51 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
52 inline AnalysisAclRule& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
53 inline AnalysisAclRule& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
54 inline AnalysisAclRule& WithCidr(const char* value) { SetCidr(value); return *this;}
56
58
61 inline bool GetEgress() const{ return m_egress; }
62 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
63 inline void SetEgress(bool value) { m_egressHasBeenSet = true; m_egress = value; }
64 inline AnalysisAclRule& WithEgress(bool value) { SetEgress(value); return *this;}
66
68
71 inline const PortRange& GetPortRange() const{ return m_portRange; }
72 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
73 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
74 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
75 inline AnalysisAclRule& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
76 inline AnalysisAclRule& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetProtocol() const{ return m_protocol; }
84 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
85 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
86 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
87 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
88 inline AnalysisAclRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
89 inline AnalysisAclRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
90 inline AnalysisAclRule& WithProtocol(const char* value) { SetProtocol(value); return *this;}
92
94
97 inline const Aws::String& GetRuleAction() const{ return m_ruleAction; }
98 inline bool RuleActionHasBeenSet() const { return m_ruleActionHasBeenSet; }
99 inline void SetRuleAction(const Aws::String& value) { m_ruleActionHasBeenSet = true; m_ruleAction = value; }
100 inline void SetRuleAction(Aws::String&& value) { m_ruleActionHasBeenSet = true; m_ruleAction = std::move(value); }
101 inline void SetRuleAction(const char* value) { m_ruleActionHasBeenSet = true; m_ruleAction.assign(value); }
102 inline AnalysisAclRule& WithRuleAction(const Aws::String& value) { SetRuleAction(value); return *this;}
103 inline AnalysisAclRule& WithRuleAction(Aws::String&& value) { SetRuleAction(std::move(value)); return *this;}
104 inline AnalysisAclRule& WithRuleAction(const char* value) { SetRuleAction(value); return *this;}
106
108
111 inline int GetRuleNumber() const{ return m_ruleNumber; }
112 inline bool RuleNumberHasBeenSet() const { return m_ruleNumberHasBeenSet; }
113 inline void SetRuleNumber(int value) { m_ruleNumberHasBeenSet = true; m_ruleNumber = value; }
114 inline AnalysisAclRule& WithRuleNumber(int value) { SetRuleNumber(value); return *this;}
116 private:
117
118 Aws::String m_cidr;
119 bool m_cidrHasBeenSet = false;
120
121 bool m_egress;
122 bool m_egressHasBeenSet = false;
123
124 PortRange m_portRange;
125 bool m_portRangeHasBeenSet = false;
126
127 Aws::String m_protocol;
128 bool m_protocolHasBeenSet = false;
129
130 Aws::String m_ruleAction;
131 bool m_ruleActionHasBeenSet = false;
132
133 int m_ruleNumber;
134 bool m_ruleNumberHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EC2
139} // namespace Aws
const PortRange & GetPortRange() const
AnalysisAclRule & WithRuleAction(const Aws::String &value)
AnalysisAclRule & WithRuleAction(Aws::String &&value)
AnalysisAclRule & WithCidr(const Aws::String &value)
const Aws::String & GetCidr() const
void SetRuleAction(Aws::String &&value)
AnalysisAclRule & WithRuleAction(const char *value)
AnalysisAclRule & WithEgress(bool value)
AnalysisAclRule & WithRuleNumber(int value)
void SetProtocol(Aws::String &&value)
AnalysisAclRule & WithPortRange(PortRange &&value)
void SetRuleAction(const char *value)
void SetRuleAction(const Aws::String &value)
void SetProtocol(const char *value)
AnalysisAclRule & WithProtocol(const char *value)
void SetCidr(Aws::String &&value)
void SetCidr(const char *value)
AWS_EC2_API AnalysisAclRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisAclRule & WithCidr(Aws::String &&value)
void SetProtocol(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetRuleAction() const
void SetPortRange(const PortRange &value)
AWS_EC2_API AnalysisAclRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisAclRule & WithCidr(const char *value)
AnalysisAclRule & WithPortRange(const PortRange &value)
const Aws::String & GetProtocol() const
AnalysisAclRule & WithProtocol(Aws::String &&value)
void SetCidr(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetPortRange(PortRange &&value)
AnalysisAclRule & WithProtocol(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream