AWS SDK for C++  1.9.132
AWS SDK for C++
SecurityGroupRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
54  inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
55 
62  inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
63 
70  inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
71 
78  inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
79 
86  inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
87 
94  inline SecurityGroupRuleRequest& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
95 
102  inline SecurityGroupRuleRequest& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
103 
110  inline SecurityGroupRuleRequest& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
111 
112 
118  inline int GetFromPort() const{ return m_fromPort; }
119 
125  inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
126 
132  inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
133 
139  inline SecurityGroupRuleRequest& WithFromPort(int value) { SetFromPort(value); return *this;}
140 
141 
147  inline int GetToPort() const{ return m_toPort; }
148 
154  inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
155 
161  inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
162 
168  inline SecurityGroupRuleRequest& WithToPort(int value) { SetToPort(value); return *this;}
169 
170 
175  inline const Aws::String& GetCidrIpv4() const{ return m_cidrIpv4; }
176 
181  inline bool CidrIpv4HasBeenSet() const { return m_cidrIpv4HasBeenSet; }
182 
187  inline void SetCidrIpv4(const Aws::String& value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4 = value; }
188 
193  inline void SetCidrIpv4(Aws::String&& value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4 = std::move(value); }
194 
199  inline void SetCidrIpv4(const char* value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4.assign(value); }
200 
205  inline SecurityGroupRuleRequest& WithCidrIpv4(const Aws::String& value) { SetCidrIpv4(value); return *this;}
206 
211  inline SecurityGroupRuleRequest& WithCidrIpv4(Aws::String&& value) { SetCidrIpv4(std::move(value)); return *this;}
212 
217  inline SecurityGroupRuleRequest& WithCidrIpv4(const char* value) { SetCidrIpv4(value); return *this;}
218 
219 
224  inline const Aws::String& GetCidrIpv6() const{ return m_cidrIpv6; }
225 
230  inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; }
231 
236  inline void SetCidrIpv6(const Aws::String& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = value; }
237 
242  inline void SetCidrIpv6(Aws::String&& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = std::move(value); }
243 
248  inline void SetCidrIpv6(const char* value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6.assign(value); }
249 
254  inline SecurityGroupRuleRequest& WithCidrIpv6(const Aws::String& value) { SetCidrIpv6(value); return *this;}
255 
260  inline SecurityGroupRuleRequest& WithCidrIpv6(Aws::String&& value) { SetCidrIpv6(std::move(value)); return *this;}
261 
266  inline SecurityGroupRuleRequest& WithCidrIpv6(const char* value) { SetCidrIpv6(value); return *this;}
267 
268 
272  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
273 
277  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
278 
282  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
283 
287  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
288 
292  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
293 
297  inline SecurityGroupRuleRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
298 
302  inline SecurityGroupRuleRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
303 
307  inline SecurityGroupRuleRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
308 
309 
314  inline const Aws::String& GetReferencedGroupId() const{ return m_referencedGroupId; }
315 
320  inline bool ReferencedGroupIdHasBeenSet() const { return m_referencedGroupIdHasBeenSet; }
321 
326  inline void SetReferencedGroupId(const Aws::String& value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId = value; }
327 
332  inline void SetReferencedGroupId(Aws::String&& value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId = std::move(value); }
333 
338  inline void SetReferencedGroupId(const char* value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId.assign(value); }
339 
344  inline SecurityGroupRuleRequest& WithReferencedGroupId(const Aws::String& value) { SetReferencedGroupId(value); return *this;}
345 
350  inline SecurityGroupRuleRequest& WithReferencedGroupId(Aws::String&& value) { SetReferencedGroupId(std::move(value)); return *this;}
351 
356  inline SecurityGroupRuleRequest& WithReferencedGroupId(const char* value) { SetReferencedGroupId(value); return *this;}
357 
358 
362  inline const Aws::String& GetDescription() const{ return m_description; }
363 
367  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
368 
372  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
373 
377  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
378 
382  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
383 
387  inline SecurityGroupRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
388 
392  inline SecurityGroupRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
393 
397  inline SecurityGroupRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
398 
399  private:
400 
401  Aws::String m_ipProtocol;
402  bool m_ipProtocolHasBeenSet;
403 
404  int m_fromPort;
405  bool m_fromPortHasBeenSet;
406 
407  int m_toPort;
408  bool m_toPortHasBeenSet;
409 
410  Aws::String m_cidrIpv4;
411  bool m_cidrIpv4HasBeenSet;
412 
413  Aws::String m_cidrIpv6;
414  bool m_cidrIpv6HasBeenSet;
415 
416  Aws::String m_prefixListId;
417  bool m_prefixListIdHasBeenSet;
418 
419  Aws::String m_referencedGroupId;
420  bool m_referencedGroupIdHasBeenSet;
421 
422  Aws::String m_description;
423  bool m_descriptionHasBeenSet;
424  };
425 
426 } // namespace Model
427 } // namespace EC2
428 } // namespace Aws
Aws::EC2::Model::SecurityGroupRuleRequest::WithIpProtocol
SecurityGroupRuleRequest & WithIpProtocol(const char *value)
Definition: SecurityGroupRuleRequest.h:110
Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:372
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4
void SetCidrIpv4(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:193
Aws::EC2::Model::SecurityGroupRuleRequest::GetCidrIpv4
const Aws::String & GetCidrIpv4() const
Definition: SecurityGroupRuleRequest.h:175
Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:282
Aws::EC2::Model::SecurityGroupRuleRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId
SecurityGroupRuleRequest & WithReferencedGroupId(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:350
Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId
SecurityGroupRuleRequest & WithPrefixListId(const char *value)
Definition: SecurityGroupRuleRequest.h:307
Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:287
Aws::EC2::Model::SecurityGroupRuleRequest::SetToPort
void SetToPort(int value)
Definition: SecurityGroupRuleRequest.h:161
Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription
SecurityGroupRuleRequest & WithDescription(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:387
Aws::EC2::Model::SecurityGroupRuleRequest::operator=
SecurityGroupRuleRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SecurityGroupRuleRequest
Definition: SecurityGroupRuleRequest.h:38
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6
SecurityGroupRuleRequest & WithCidrIpv6(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:254
Aws::EC2::Model::SecurityGroupRuleRequest::SecurityGroupRuleRequest
SecurityGroupRuleRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SecurityGroupRuleRequest::SetFromPort
void SetFromPort(int value)
Definition: SecurityGroupRuleRequest.h:132
Aws::EC2::Model::SecurityGroupRuleRequest::SetIpProtocol
void SetIpProtocol(const char *value)
Definition: SecurityGroupRuleRequest.h:86
AWSStreamFwd.h
Aws::EC2::Model::SecurityGroupRuleRequest::IpProtocolHasBeenSet
bool IpProtocolHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:62
Aws::EC2::Model::SecurityGroupRuleRequest::WithIpProtocol
SecurityGroupRuleRequest & WithIpProtocol(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:94
Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId
SecurityGroupRuleRequest & WithPrefixListId(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:297
Aws::EC2::Model::SecurityGroupRuleRequest::WithFromPort
SecurityGroupRuleRequest & WithFromPort(int value)
Definition: SecurityGroupRuleRequest.h:139
Aws::EC2::Model::SecurityGroupRuleRequest::GetReferencedGroupId
const Aws::String & GetReferencedGroupId() const
Definition: SecurityGroupRuleRequest.h:314
Aws::EC2::Model::SecurityGroupRuleRequest::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:277
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6
void SetCidrIpv6(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:236
Aws::EC2::Model::SecurityGroupRuleRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:367
Aws::EC2::Model::SecurityGroupRuleRequest::ToPortHasBeenSet
bool ToPortHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:154
Aws::EC2::Model::SecurityGroupRuleRequest::WithToPort
SecurityGroupRuleRequest & WithToPort(int value)
Definition: SecurityGroupRuleRequest.h:168
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6
SecurityGroupRuleRequest & WithCidrIpv6(const char *value)
Definition: SecurityGroupRuleRequest.h:266
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: SecurityGroupRuleRequest.h:292
Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription
SecurityGroupRuleRequest & WithDescription(const char *value)
Definition: SecurityGroupRuleRequest.h:397
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId
SecurityGroupRuleRequest & WithReferencedGroupId(const char *value)
Definition: SecurityGroupRuleRequest.h:356
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4
void SetCidrIpv4(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:187
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4
SecurityGroupRuleRequest & WithCidrIpv4(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:205
Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription
SecurityGroupRuleRequest & WithDescription(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:392
Aws::EC2::Model::SecurityGroupRuleRequest::SetIpProtocol
void SetIpProtocol(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:78
Aws::EC2::Model::SecurityGroupRuleRequest::WithIpProtocol
SecurityGroupRuleRequest & WithIpProtocol(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:102
Aws::EC2::Model::SecurityGroupRuleRequest::SetIpProtocol
void SetIpProtocol(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:70
Aws::EC2::Model::SecurityGroupRuleRequest::GetToPort
int GetToPort() const
Definition: SecurityGroupRuleRequest.h:147
AWSString.h
Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:377
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4
void SetCidrIpv4(const char *value)
Definition: SecurityGroupRuleRequest.h:199
Aws::EC2::Model::SecurityGroupRuleRequest::CidrIpv6HasBeenSet
bool CidrIpv6HasBeenSet() const
Definition: SecurityGroupRuleRequest.h:230
Aws::EC2::Model::SecurityGroupRuleRequest::GetCidrIpv6
const Aws::String & GetCidrIpv6() const
Definition: SecurityGroupRuleRequest.h:224
Aws::EC2::Model::SecurityGroupRuleRequest::ReferencedGroupIdHasBeenSet
bool ReferencedGroupIdHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:320
Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId
SecurityGroupRuleRequest & WithReferencedGroupId(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:344
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6
SecurityGroupRuleRequest & WithCidrIpv6(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:260
Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription
void SetDescription(const char *value)
Definition: SecurityGroupRuleRequest.h:382
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId
void SetReferencedGroupId(const Aws::String &value)
Definition: SecurityGroupRuleRequest.h:326
Aws::EC2::Model::SecurityGroupRuleRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId
void SetReferencedGroupId(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:332
Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId
SecurityGroupRuleRequest & WithPrefixListId(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:302
Aws::EC2::Model::SecurityGroupRuleRequest::SecurityGroupRuleRequest
SecurityGroupRuleRequest()
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4
SecurityGroupRuleRequest & WithCidrIpv4(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SecurityGroupRuleRequest::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: SecurityGroupRuleRequest.h:272
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6
void SetCidrIpv6(const char *value)
Definition: SecurityGroupRuleRequest.h:248
Aws::EC2::Model::SecurityGroupRuleRequest::GetFromPort
int GetFromPort() const
Definition: SecurityGroupRuleRequest.h:118
Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4
SecurityGroupRuleRequest & WithCidrIpv4(const char *value)
Definition: SecurityGroupRuleRequest.h:217
Aws::EC2::Model::SecurityGroupRuleRequest::FromPortHasBeenSet
bool FromPortHasBeenSet() const
Definition: SecurityGroupRuleRequest.h:125
Aws::EC2::Model::SecurityGroupRuleRequest::GetIpProtocol
const Aws::String & GetIpProtocol() const
Definition: SecurityGroupRuleRequest.h:54
Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6
void SetCidrIpv6(Aws::String &&value)
Definition: SecurityGroupRuleRequest.h:242
EC2_EXPORTS.h
Aws::EC2::Model::SecurityGroupRuleRequest::CidrIpv4HasBeenSet
bool CidrIpv4HasBeenSet() const
Definition: SecurityGroupRuleRequest.h:181
Aws::EC2::Model::SecurityGroupRuleRequest::GetDescription
const Aws::String & GetDescription() const
Definition: SecurityGroupRuleRequest.h:362
Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId
void SetReferencedGroupId(const char *value)
Definition: SecurityGroupRuleRequest.h:338