AWS SDK for C++  1.9.72
AWS SDK for C++
CidrBlock.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 
45  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
46 
50  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
51 
55  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
56 
60  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
61 
65  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
66 
70  inline CidrBlock& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
71 
75  inline CidrBlock& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
76 
80  inline CidrBlock& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
81 
82  private:
83 
84  Aws::String m_cidrBlock;
85  bool m_cidrBlockHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace EC2
90 } // namespace Aws
Aws::EC2::Model::CidrBlock
Definition: CidrBlock.h:32
Aws::EC2::Model::CidrBlock::WithCidrBlock
CidrBlock & WithCidrBlock(const char *value)
Definition: CidrBlock.h:80
Aws::EC2::Model::CidrBlock::WithCidrBlock
CidrBlock & WithCidrBlock(Aws::String &&value)
Definition: CidrBlock.h:75
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CidrBlock::SetCidrBlock
void SetCidrBlock(Aws::String &&value)
Definition: CidrBlock.h:60
AWSStreamFwd.h
Aws::EC2::Model::CidrBlock::operator=
CidrBlock & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CidrBlock::CidrBlock
CidrBlock()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::CidrBlock::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CidrBlock::CidrBlock
CidrBlock(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CidrBlock::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CidrBlock::GetCidrBlock
const Aws::String & GetCidrBlock() const
Definition: CidrBlock.h:45
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::CidrBlock::SetCidrBlock
void SetCidrBlock(const Aws::String &value)
Definition: CidrBlock.h:55
Aws::EC2::Model::CidrBlock::SetCidrBlock
void SetCidrBlock(const char *value)
Definition: CidrBlock.h:65
Aws::EC2::Model::CidrBlock::CidrBlockHasBeenSet
bool CidrBlockHasBeenSet() const
Definition: CidrBlock.h:50
Aws::EC2::Model::CidrBlock::WithCidrBlock
CidrBlock & WithCidrBlock(const Aws::String &value)
Definition: CidrBlock.h:70
EC2_EXPORTS.h