AWS SDK for C++  1.9.71
AWS SDK for C++
IpRange.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
47  inline const Aws::String& GetCidrIp() const{ return m_cidrIp; }
48 
54  inline bool CidrIpHasBeenSet() const { return m_cidrIpHasBeenSet; }
55 
61  inline void SetCidrIp(const Aws::String& value) { m_cidrIpHasBeenSet = true; m_cidrIp = value; }
62 
68  inline void SetCidrIp(Aws::String&& value) { m_cidrIpHasBeenSet = true; m_cidrIp = std::move(value); }
69 
75  inline void SetCidrIp(const char* value) { m_cidrIpHasBeenSet = true; m_cidrIp.assign(value); }
76 
82  inline IpRange& WithCidrIp(const Aws::String& value) { SetCidrIp(value); return *this;}
83 
89  inline IpRange& WithCidrIp(Aws::String&& value) { SetCidrIp(std::move(value)); return *this;}
90 
96  inline IpRange& WithCidrIp(const char* value) { SetCidrIp(value); return *this;}
97 
98 
104  inline const Aws::String& GetDescription() const{ return m_description; }
105 
111  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 
118  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 
125  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
126 
132  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
133 
139  inline IpRange& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
140 
146  inline IpRange& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
147 
153  inline IpRange& WithDescription(const char* value) { SetDescription(value); return *this;}
154 
155  private:
156 
157  Aws::String m_cidrIp;
158  bool m_cidrIpHasBeenSet;
159 
160  Aws::String m_description;
161  bool m_descriptionHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace EC2
166 } // namespace Aws
Aws::EC2::Model::IpRange::WithCidrIp
IpRange & WithCidrIp(const Aws::String &value)
Definition: IpRange.h:82
Aws::EC2::Model::IpRange::IpRange
IpRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::IpRange
Definition: IpRange.h:32
AWSStreamFwd.h
Aws::EC2::Model::IpRange::GetCidrIp
const Aws::String & GetCidrIp() const
Definition: IpRange.h:47
Aws::EC2::Model::IpRange::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::IpRange::WithCidrIp
IpRange & WithCidrIp(const char *value)
Definition: IpRange.h:96
Aws::EC2::Model::IpRange::WithDescription
IpRange & WithDescription(Aws::String &&value)
Definition: IpRange.h:146
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::IpRange::SetDescription
void SetDescription(Aws::String &&value)
Definition: IpRange.h:125
Aws::EC2::Model::IpRange::SetCidrIp
void SetCidrIp(Aws::String &&value)
Definition: IpRange.h:68
Aws::EC2::Model::IpRange::WithCidrIp
IpRange & WithCidrIp(Aws::String &&value)
Definition: IpRange.h:89
AWSString.h
Aws::EC2::Model::IpRange::SetCidrIp
void SetCidrIp(const Aws::String &value)
Definition: IpRange.h:61
Aws::EC2::Model::IpRange::operator=
IpRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::IpRange::GetDescription
const Aws::String & GetDescription() const
Definition: IpRange.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::IpRange::CidrIpHasBeenSet
bool CidrIpHasBeenSet() const
Definition: IpRange.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::IpRange::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: IpRange.h:111
Aws::EC2::Model::IpRange::WithDescription
IpRange & WithDescription(const char *value)
Definition: IpRange.h:153
Aws::EC2::Model::IpRange::WithDescription
IpRange & WithDescription(const Aws::String &value)
Definition: IpRange.h:139
Aws::EC2::Model::IpRange::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::IpRange::SetDescription
void SetDescription(const char *value)
Definition: IpRange.h:132
EC2_EXPORTS.h
Aws::EC2::Model::IpRange::IpRange
IpRange()
Aws::EC2::Model::IpRange::SetCidrIp
void SetCidrIp(const char *value)
Definition: IpRange.h:75
Aws::EC2::Model::IpRange::SetDescription
void SetDescription(const Aws::String &value)
Definition: IpRange.h:118