AWS SDK for C++  1.9.110
AWS SDK for C++
AnalysisSecurityGroupRule.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 AnalysisSecurityGroupRule& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
72 
76  inline AnalysisSecurityGroupRule& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
77 
81  inline AnalysisSecurityGroupRule& WithCidr(const char* value) { SetCidr(value); return *this;}
82 
83 
88  inline const Aws::String& GetDirection() const{ return m_direction; }
89 
94  inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
95 
100  inline void SetDirection(const Aws::String& value) { m_directionHasBeenSet = true; m_direction = value; }
101 
106  inline void SetDirection(Aws::String&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
107 
112  inline void SetDirection(const char* value) { m_directionHasBeenSet = true; m_direction.assign(value); }
113 
118  inline AnalysisSecurityGroupRule& WithDirection(const Aws::String& value) { SetDirection(value); return *this;}
119 
124  inline AnalysisSecurityGroupRule& WithDirection(Aws::String&& value) { SetDirection(std::move(value)); return *this;}
125 
130  inline AnalysisSecurityGroupRule& WithDirection(const char* value) { SetDirection(value); return *this;}
131 
132 
136  inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; }
137 
141  inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
142 
146  inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; }
147 
151  inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); }
152 
156  inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); }
157 
161  inline AnalysisSecurityGroupRule& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;}
162 
166  inline AnalysisSecurityGroupRule& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;}
167 
171  inline AnalysisSecurityGroupRule& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;}
172 
173 
177  inline const PortRange& GetPortRange() const{ return m_portRange; }
178 
182  inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
183 
187  inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
188 
192  inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
193 
197  inline AnalysisSecurityGroupRule& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
198 
202  inline AnalysisSecurityGroupRule& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
203 
204 
208  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
209 
213  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
214 
218  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
219 
223  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
224 
228  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
229 
233  inline AnalysisSecurityGroupRule& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
234 
238  inline AnalysisSecurityGroupRule& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
239 
243  inline AnalysisSecurityGroupRule& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
244 
245 
249  inline const Aws::String& GetProtocol() const{ return m_protocol; }
250 
254  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
255 
259  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
260 
264  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
265 
269  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
270 
274  inline AnalysisSecurityGroupRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
275 
279  inline AnalysisSecurityGroupRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
280 
284  inline AnalysisSecurityGroupRule& WithProtocol(const char* value) { SetProtocol(value); return *this;}
285 
286  private:
287 
288  Aws::String m_cidr;
289  bool m_cidrHasBeenSet;
290 
291  Aws::String m_direction;
292  bool m_directionHasBeenSet;
293 
294  Aws::String m_securityGroupId;
295  bool m_securityGroupIdHasBeenSet;
296 
297  PortRange m_portRange;
298  bool m_portRangeHasBeenSet;
299 
300  Aws::String m_prefixListId;
301  bool m_prefixListIdHasBeenSet;
302 
303  Aws::String m_protocol;
304  bool m_protocolHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace EC2
309 } // namespace Aws
Aws::EC2::Model::AnalysisSecurityGroupRule::operator=
AnalysisSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AnalysisSecurityGroupRule::DirectionHasBeenSet
bool DirectionHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:94
Aws::EC2::Model::AnalysisSecurityGroupRule::SetPortRange
void SetPortRange(PortRange &&value)
Definition: AnalysisSecurityGroupRule.h:192
Aws::EC2::Model::AnalysisSecurityGroupRule::PortRangeHasBeenSet
bool PortRangeHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:182
Aws::EC2::Model::AnalysisSecurityGroupRule
Definition: AnalysisSecurityGroupRule.h:33
Aws::EC2::Model::AnalysisSecurityGroupRule::WithCidr
AnalysisSecurityGroupRule & WithCidr(const char *value)
Definition: AnalysisSecurityGroupRule.h:81
Aws::EC2::Model::AnalysisSecurityGroupRule::WithPortRange
AnalysisSecurityGroupRule & WithPortRange(PortRange &&value)
Definition: AnalysisSecurityGroupRule.h:202
Aws::EC2::Model::AnalysisSecurityGroupRule::AnalysisSecurityGroupRule
AnalysisSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AnalysisSecurityGroupRule::GetProtocol
const Aws::String & GetProtocol() const
Definition: AnalysisSecurityGroupRule.h:249
Aws::EC2::Model::AnalysisSecurityGroupRule::SetDirection
void SetDirection(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:100
Aws::EC2::Model::AnalysisSecurityGroupRule::SetCidr
void SetCidr(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:61
Aws::EC2::Model::AnalysisSecurityGroupRule::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:259
Aws::EC2::Model::AnalysisSecurityGroupRule::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: AnalysisSecurityGroupRule.h:208
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AnalysisSecurityGroupRule::SetSecurityGroupId
void SetSecurityGroupId(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:146
Aws::EC2::Model::AnalysisSecurityGroupRule::WithPrefixListId
AnalysisSecurityGroupRule & WithPrefixListId(const char *value)
Definition: AnalysisSecurityGroupRule.h:243
Aws::EC2::Model::AnalysisSecurityGroupRule::SetSecurityGroupId
void SetSecurityGroupId(const char *value)
Definition: AnalysisSecurityGroupRule.h:156
Aws::EC2::Model::AnalysisSecurityGroupRule::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:264
AWSStreamFwd.h
Aws::EC2::Model::AnalysisSecurityGroupRule::SetDirection
void SetDirection(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:106
Aws::EC2::Model::AnalysisSecurityGroupRule::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:223
Aws::EC2::Model::AnalysisSecurityGroupRule::SetPortRange
void SetPortRange(const PortRange &value)
Definition: AnalysisSecurityGroupRule.h:187
Aws::EC2::Model::AnalysisSecurityGroupRule::WithPrefixListId
AnalysisSecurityGroupRule & WithPrefixListId(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:233
Aws::EC2::Model::AnalysisSecurityGroupRule::SetCidr
void SetCidr(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:56
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AnalysisSecurityGroupRule::GetCidr
const Aws::String & GetCidr() const
Definition: AnalysisSecurityGroupRule.h:46
Aws::EC2::Model::AnalysisSecurityGroupRule::WithPrefixListId
AnalysisSecurityGroupRule & WithPrefixListId(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:238
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AnalysisSecurityGroupRule::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:51
PortRange.h
Aws::EC2::Model::AnalysisSecurityGroupRule::SetDirection
void SetDirection(const char *value)
Definition: AnalysisSecurityGroupRule.h:112
Aws::EC2::Model::AnalysisSecurityGroupRule::GetDirection
const Aws::String & GetDirection() const
Definition: AnalysisSecurityGroupRule.h:88
Aws::EC2::Model::AnalysisSecurityGroupRule::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:254
Aws::EC2::Model::AnalysisSecurityGroupRule::SetSecurityGroupId
void SetSecurityGroupId(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:151
Aws::EC2::Model::AnalysisSecurityGroupRule::WithDirection
AnalysisSecurityGroupRule & WithDirection(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:118
Aws::EC2::Model::AnalysisSecurityGroupRule::WithDirection
AnalysisSecurityGroupRule & WithDirection(const char *value)
Definition: AnalysisSecurityGroupRule.h:130
Aws::EC2::Model::AnalysisSecurityGroupRule::AnalysisSecurityGroupRule
AnalysisSecurityGroupRule()
Aws::EC2::Model::AnalysisSecurityGroupRule::WithProtocol
AnalysisSecurityGroupRule & WithProtocol(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:274
AWSString.h
Aws::EC2::Model::AnalysisSecurityGroupRule::WithSecurityGroupId
AnalysisSecurityGroupRule & WithSecurityGroupId(const char *value)
Definition: AnalysisSecurityGroupRule.h:171
Aws::EC2::Model::AnalysisSecurityGroupRule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AnalysisSecurityGroupRule::WithSecurityGroupId
AnalysisSecurityGroupRule & WithSecurityGroupId(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:161
Aws::EC2::Model::AnalysisSecurityGroupRule::WithCidr
AnalysisSecurityGroupRule & WithCidr(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:71
Aws::EC2::Model::AnalysisSecurityGroupRule::GetPortRange
const PortRange & GetPortRange() const
Definition: AnalysisSecurityGroupRule.h:177
Aws::EC2::Model::AnalysisSecurityGroupRule::WithSecurityGroupId
AnalysisSecurityGroupRule & WithSecurityGroupId(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:166
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AnalysisSecurityGroupRule::SetCidr
void SetCidr(const char *value)
Definition: AnalysisSecurityGroupRule.h:66
Aws::EC2::Model::AnalysisSecurityGroupRule::SetProtocol
void SetProtocol(const char *value)
Definition: AnalysisSecurityGroupRule.h:269
Aws::EC2::Model::AnalysisSecurityGroupRule::WithProtocol
AnalysisSecurityGroupRule & WithProtocol(const char *value)
Definition: AnalysisSecurityGroupRule.h:284
Aws::EC2::Model::AnalysisSecurityGroupRule::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: AnalysisSecurityGroupRule.h:218
Aws::EC2::Model::AnalysisSecurityGroupRule::SecurityGroupIdHasBeenSet
bool SecurityGroupIdHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:141
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AnalysisSecurityGroupRule::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: AnalysisSecurityGroupRule.h:213
Aws::EC2::Model::AnalysisSecurityGroupRule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AnalysisSecurityGroupRule::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: AnalysisSecurityGroupRule.h:228
Aws::EC2::Model::AnalysisSecurityGroupRule::WithDirection
AnalysisSecurityGroupRule & WithDirection(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:124
Aws::EC2::Model::AnalysisSecurityGroupRule::WithPortRange
AnalysisSecurityGroupRule & WithPortRange(const PortRange &value)
Definition: AnalysisSecurityGroupRule.h:197
Aws::EC2::Model::AnalysisSecurityGroupRule::WithProtocol
AnalysisSecurityGroupRule & WithProtocol(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:279
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
EC2_EXPORTS.h
Aws::EC2::Model::AnalysisSecurityGroupRule::GetSecurityGroupId
const Aws::String & GetSecurityGroupId() const
Definition: AnalysisSecurityGroupRule.h:136
Aws::EC2::Model::AnalysisSecurityGroupRule::WithCidr
AnalysisSecurityGroupRule & WithCidr(Aws::String &&value)
Definition: AnalysisSecurityGroupRule.h:76