AWS SDK for C++  1.9.104
AWS SDK for C++
VpcCidrBlockAssociation.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
48 
52  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
53 
57  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
58 
62  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
63 
67  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
68 
72  inline VpcCidrBlockAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
73 
77  inline VpcCidrBlockAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
78 
82  inline VpcCidrBlockAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
83 
84 
88  inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
89 
93  inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
94 
98  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
99 
103  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
104 
108  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
109 
113  inline VpcCidrBlockAssociation& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
114 
118  inline VpcCidrBlockAssociation& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
119 
123  inline VpcCidrBlockAssociation& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
124 
125 
129  inline const VpcCidrBlockState& GetCidrBlockState() const{ return m_cidrBlockState; }
130 
134  inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; }
135 
139  inline void SetCidrBlockState(const VpcCidrBlockState& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = value; }
140 
144  inline void SetCidrBlockState(VpcCidrBlockState&& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = std::move(value); }
145 
149  inline VpcCidrBlockAssociation& WithCidrBlockState(const VpcCidrBlockState& value) { SetCidrBlockState(value); return *this;}
150 
154  inline VpcCidrBlockAssociation& WithCidrBlockState(VpcCidrBlockState&& value) { SetCidrBlockState(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::String m_associationId;
159  bool m_associationIdHasBeenSet;
160 
161  Aws::String m_cidrBlock;
162  bool m_cidrBlockHasBeenSet;
163 
164  VpcCidrBlockState m_cidrBlockState;
165  bool m_cidrBlockStateHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace EC2
170 } // namespace Aws
Aws::EC2::Model::VpcCidrBlockAssociation::CidrBlockHasBeenSet
bool CidrBlockHasBeenSet() const
Definition: VpcCidrBlockAssociation.h:93
VpcCidrBlockState.h
Aws::EC2::Model::VpcCidrBlockAssociation::WithAssociationId
VpcCidrBlockAssociation & WithAssociationId(const char *value)
Definition: VpcCidrBlockAssociation.h:82
Aws::EC2::Model::VpcCidrBlockAssociation::WithCidrBlock
VpcCidrBlockAssociation & WithCidrBlock(Aws::String &&value)
Definition: VpcCidrBlockAssociation.h:118
Aws::EC2::Model::VpcCidrBlockAssociation::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: VpcCidrBlockAssociation.h:47
Aws::EC2::Model::VpcCidrBlockAssociation
Definition: VpcCidrBlockAssociation.h:34
Aws::EC2::Model::VpcCidrBlockAssociation::GetCidrBlockState
const VpcCidrBlockState & GetCidrBlockState() const
Definition: VpcCidrBlockAssociation.h:129
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VpcCidrBlockAssociation::SetCidrBlockState
void SetCidrBlockState(VpcCidrBlockState &&value)
Definition: VpcCidrBlockAssociation.h:144
Aws::EC2::Model::VpcCidrBlockAssociation::VpcCidrBlockAssociation
VpcCidrBlockAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::VpcCidrBlockAssociation::WithAssociationId
VpcCidrBlockAssociation & WithAssociationId(const Aws::String &value)
Definition: VpcCidrBlockAssociation.h:72
Aws::EC2::Model::VpcCidrBlockAssociation::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: VpcCidrBlockAssociation.h:62
Aws::EC2::Model::VpcCidrBlockAssociation::WithCidrBlock
VpcCidrBlockAssociation & WithCidrBlock(const char *value)
Definition: VpcCidrBlockAssociation.h:123
Aws::EC2::Model::VpcCidrBlockAssociation::WithCidrBlockState
VpcCidrBlockAssociation & WithCidrBlockState(const VpcCidrBlockState &value)
Definition: VpcCidrBlockAssociation.h:149
Aws::EC2::Model::VpcCidrBlockAssociation::CidrBlockStateHasBeenSet
bool CidrBlockStateHasBeenSet() const
Definition: VpcCidrBlockAssociation.h:134
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VpcCidrBlockAssociation::SetCidrBlock
void SetCidrBlock(const Aws::String &value)
Definition: VpcCidrBlockAssociation.h:98
Aws::EC2::Model::VpcCidrBlockAssociation::SetCidrBlock
void SetCidrBlock(Aws::String &&value)
Definition: VpcCidrBlockAssociation.h:103
Aws::EC2::Model::VpcCidrBlockAssociation::WithAssociationId
VpcCidrBlockAssociation & WithAssociationId(Aws::String &&value)
Definition: VpcCidrBlockAssociation.h:77
Aws::EC2::Model::VpcCidrBlockAssociation::VpcCidrBlockAssociation
VpcCidrBlockAssociation()
Aws::EC2::Model::VpcCidrBlockAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::VpcCidrBlockAssociation::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: VpcCidrBlockAssociation.h:52
Aws::EC2::Model::VpcCidrBlockAssociation::SetAssociationId
void SetAssociationId(const char *value)
Definition: VpcCidrBlockAssociation.h:67
Aws::EC2::Model::VpcCidrBlockAssociation::WithCidrBlockState
VpcCidrBlockAssociation & WithCidrBlockState(VpcCidrBlockState &&value)
Definition: VpcCidrBlockAssociation.h:154
Aws::EC2::Model::VpcCidrBlockAssociation::GetCidrBlock
const Aws::String & GetCidrBlock() const
Definition: VpcCidrBlockAssociation.h:88
Aws::EC2::Model::VpcCidrBlockState
Definition: VpcCidrBlockState.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VpcCidrBlockAssociation::SetCidrBlockState
void SetCidrBlockState(const VpcCidrBlockState &value)
Definition: VpcCidrBlockAssociation.h:139
Aws::EC2::Model::VpcCidrBlockAssociation::operator=
VpcCidrBlockAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpcCidrBlockAssociation::WithCidrBlock
VpcCidrBlockAssociation & WithCidrBlock(const Aws::String &value)
Definition: VpcCidrBlockAssociation.h:113
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::VpcCidrBlockAssociation::SetCidrBlock
void SetCidrBlock(const char *value)
Definition: VpcCidrBlockAssociation.h:108
Aws::EC2::Model::VpcCidrBlockAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::VpcCidrBlockAssociation::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: VpcCidrBlockAssociation.h:57