AWS SDK for C++  1.9.105
AWS SDK for C++
VpcPeeringConnection.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
14 #include <aws/ec2/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
51  inline const VpcPeeringConnectionVpcInfo& GetAccepterVpcInfo() const{ return m_accepterVpcInfo; }
52 
57  inline bool AccepterVpcInfoHasBeenSet() const { return m_accepterVpcInfoHasBeenSet; }
58 
63  inline void SetAccepterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = value; }
64 
69  inline void SetAccepterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = std::move(value); }
70 
75  inline VpcPeeringConnection& WithAccepterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { SetAccepterVpcInfo(value); return *this;}
76 
81  inline VpcPeeringConnection& WithAccepterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { SetAccepterVpcInfo(std::move(value)); return *this;}
82 
83 
87  inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
88 
92  inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
93 
97  inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
98 
102  inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
103 
107  inline VpcPeeringConnection& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
108 
112  inline VpcPeeringConnection& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
113 
114 
119  inline const VpcPeeringConnectionVpcInfo& GetRequesterVpcInfo() const{ return m_requesterVpcInfo; }
120 
125  inline bool RequesterVpcInfoHasBeenSet() const { return m_requesterVpcInfoHasBeenSet; }
126 
131  inline void SetRequesterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = value; }
132 
137  inline void SetRequesterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = std::move(value); }
138 
143  inline VpcPeeringConnection& WithRequesterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { SetRequesterVpcInfo(value); return *this;}
144 
149  inline VpcPeeringConnection& WithRequesterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { SetRequesterVpcInfo(std::move(value)); return *this;}
150 
151 
155  inline const VpcPeeringConnectionStateReason& GetStatus() const{ return m_status; }
156 
160  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 
165  inline void SetStatus(const VpcPeeringConnectionStateReason& value) { m_statusHasBeenSet = true; m_status = value; }
166 
170  inline void SetStatus(VpcPeeringConnectionStateReason&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
171 
175  inline VpcPeeringConnection& WithStatus(const VpcPeeringConnectionStateReason& value) { SetStatus(value); return *this;}
176 
180  inline VpcPeeringConnection& WithStatus(VpcPeeringConnectionStateReason&& value) { SetStatus(std::move(value)); return *this;}
181 
182 
186  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
187 
191  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 
196  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 
201  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
202 
206  inline VpcPeeringConnection& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
207 
211  inline VpcPeeringConnection& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
212 
216  inline VpcPeeringConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
217 
221  inline VpcPeeringConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
222 
223 
227  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
228 
232  inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
233 
237  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
238 
242  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
243 
247  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
248 
252  inline VpcPeeringConnection& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
253 
257  inline VpcPeeringConnection& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;}
258 
262  inline VpcPeeringConnection& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
263 
264  private:
265 
266  VpcPeeringConnectionVpcInfo m_accepterVpcInfo;
267  bool m_accepterVpcInfoHasBeenSet;
268 
269  Aws::Utils::DateTime m_expirationTime;
270  bool m_expirationTimeHasBeenSet;
271 
272  VpcPeeringConnectionVpcInfo m_requesterVpcInfo;
273  bool m_requesterVpcInfoHasBeenSet;
274 
276  bool m_statusHasBeenSet;
277 
278  Aws::Vector<Tag> m_tags;
279  bool m_tagsHasBeenSet;
280 
281  Aws::String m_vpcPeeringConnectionId;
282  bool m_vpcPeeringConnectionIdHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace EC2
287 } // namespace Aws
Aws::EC2::Model::VpcPeeringConnection::WithExpirationTime
VpcPeeringConnection & WithExpirationTime(const Aws::Utils::DateTime &value)
Definition: VpcPeeringConnection.h:107
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::VpcPeeringConnection::SetStatus
void SetStatus(const VpcPeeringConnectionStateReason &value)
Definition: VpcPeeringConnection.h:165
Aws::EC2::Model::VpcPeeringConnection::WithVpcPeeringConnectionId
VpcPeeringConnection & WithVpcPeeringConnectionId(Aws::String &&value)
Definition: VpcPeeringConnection.h:257
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::VpcPeeringConnection::SetExpirationTime
void SetExpirationTime(const Aws::Utils::DateTime &value)
Definition: VpcPeeringConnection.h:97
Aws::EC2::Model::VpcPeeringConnection::ExpirationTimeHasBeenSet
bool ExpirationTimeHasBeenSet() const
Definition: VpcPeeringConnection.h:92
Aws::EC2::Model::VpcPeeringConnectionVpcInfo
Definition: VpcPeeringConnectionVpcInfo.h:36
Aws::EC2::Model::VpcPeeringConnection::SetRequesterVpcInfo
void SetRequesterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
Definition: VpcPeeringConnection.h:137
Aws::EC2::Model::VpcPeeringConnection::VpcPeeringConnectionIdHasBeenSet
bool VpcPeeringConnectionIdHasBeenSet() const
Definition: VpcPeeringConnection.h:232
Aws::EC2::Model::VpcPeeringConnection::AccepterVpcInfoHasBeenSet
bool AccepterVpcInfoHasBeenSet() const
Definition: VpcPeeringConnection.h:57
Aws::EC2::Model::VpcPeeringConnection::WithExpirationTime
VpcPeeringConnection & WithExpirationTime(Aws::Utils::DateTime &&value)
Definition: VpcPeeringConnection.h:112
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VpcPeeringConnection::WithStatus
VpcPeeringConnection & WithStatus(const VpcPeeringConnectionStateReason &value)
Definition: VpcPeeringConnection.h:175
Aws::EC2::Model::VpcPeeringConnectionStateReason
Definition: VpcPeeringConnectionStateReason.h:34
Aws::EC2::Model::VpcPeeringConnection::WithAccepterVpcInfo
VpcPeeringConnection & WithAccepterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
Definition: VpcPeeringConnection.h:81
VpcPeeringConnectionStateReason.h
Aws::EC2::Model::VpcPeeringConnection::SetAccepterVpcInfo
void SetAccepterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
Definition: VpcPeeringConnection.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::VpcPeeringConnection::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::VpcPeeringConnection::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: VpcPeeringConnection.h:201
Aws::EC2::Model::VpcPeeringConnection::WithVpcPeeringConnectionId
VpcPeeringConnection & WithVpcPeeringConnectionId(const Aws::String &value)
Definition: VpcPeeringConnection.h:252
Aws::EC2::Model::VpcPeeringConnection::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: VpcPeeringConnection.h:196
AWSVector.h
Tag.h
VpcPeeringConnectionVpcInfo.h
Aws::EC2::Model::VpcPeeringConnection::VpcPeeringConnection
VpcPeeringConnection()
Aws::EC2::Model::VpcPeeringConnection::SetExpirationTime
void SetExpirationTime(Aws::Utils::DateTime &&value)
Definition: VpcPeeringConnection.h:102
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VpcPeeringConnection::WithRequesterVpcInfo
VpcPeeringConnection & WithRequesterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
Definition: VpcPeeringConnection.h:149
Aws::EC2::Model::VpcPeeringConnection::AddTags
VpcPeeringConnection & AddTags(Tag &&value)
Definition: VpcPeeringConnection.h:221
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VpcPeeringConnection::WithTags
VpcPeeringConnection & WithTags(const Aws::Vector< Tag > &value)
Definition: VpcPeeringConnection.h:206
Aws::EC2::Model::VpcPeeringConnection::SetAccepterVpcInfo
void SetAccepterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
Definition: VpcPeeringConnection.h:63
Aws::EC2::Model::VpcPeeringConnection::SetStatus
void SetStatus(VpcPeeringConnectionStateReason &&value)
Definition: VpcPeeringConnection.h:170
Aws::EC2::Model::VpcPeeringConnection::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VpcPeeringConnection::RequesterVpcInfoHasBeenSet
bool RequesterVpcInfoHasBeenSet() const
Definition: VpcPeeringConnection.h:125
Aws::EC2::Model::VpcPeeringConnection::operator=
VpcPeeringConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpcPeeringConnection::WithStatus
VpcPeeringConnection & WithStatus(VpcPeeringConnectionStateReason &&value)
Definition: VpcPeeringConnection.h:180
AWSString.h
Aws::EC2::Model::VpcPeeringConnection::SetRequesterVpcInfo
void SetRequesterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
Definition: VpcPeeringConnection.h:131
Aws::EC2::Model::VpcPeeringConnection::WithVpcPeeringConnectionId
VpcPeeringConnection & WithVpcPeeringConnectionId(const char *value)
Definition: VpcPeeringConnection.h:262
Aws::EC2::Model::VpcPeeringConnection::GetAccepterVpcInfo
const VpcPeeringConnectionVpcInfo & GetAccepterVpcInfo() const
Definition: VpcPeeringConnection.h:51
Aws::EC2::Model::VpcPeeringConnection::GetRequesterVpcInfo
const VpcPeeringConnectionVpcInfo & GetRequesterVpcInfo() const
Definition: VpcPeeringConnection.h:119
Aws::EC2::Model::VpcPeeringConnection::WithTags
VpcPeeringConnection & WithTags(Aws::Vector< Tag > &&value)
Definition: VpcPeeringConnection.h:211
Aws::EC2::Model::VpcPeeringConnection::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const char *value)
Definition: VpcPeeringConnection.h:247
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VpcPeeringConnection::GetExpirationTime
const Aws::Utils::DateTime & GetExpirationTime() const
Definition: VpcPeeringConnection.h:87
Aws::EC2::Model::VpcPeeringConnection::WithAccepterVpcInfo
VpcPeeringConnection & WithAccepterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
Definition: VpcPeeringConnection.h:75
Aws::EC2::Model::VpcPeeringConnection
Definition: VpcPeeringConnection.h:37
Aws::EC2::Model::VpcPeeringConnection::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(const Aws::String &value)
Definition: VpcPeeringConnection.h:237
Aws::EC2::Model::VpcPeeringConnection::GetStatus
const VpcPeeringConnectionStateReason & GetStatus() const
Definition: VpcPeeringConnection.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VpcPeeringConnection::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: VpcPeeringConnection.h:186
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VpcPeeringConnection::SetVpcPeeringConnectionId
void SetVpcPeeringConnectionId(Aws::String &&value)
Definition: VpcPeeringConnection.h:242
Aws::EC2::Model::VpcPeeringConnection::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: VpcPeeringConnection.h:160
EC2_EXPORTS.h
Aws::EC2::Model::VpcPeeringConnection::WithRequesterVpcInfo
VpcPeeringConnection & WithRequesterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
Definition: VpcPeeringConnection.h:143
Aws::EC2::Model::VpcPeeringConnection::VpcPeeringConnection
VpcPeeringConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VpcPeeringConnection::GetVpcPeeringConnectionId
const Aws::String & GetVpcPeeringConnectionId() const
Definition: VpcPeeringConnection.h:227
Aws::EC2::Model::VpcPeeringConnection::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: VpcPeeringConnection.h:191
Aws::EC2::Model::VpcPeeringConnection::AddTags
VpcPeeringConnection & AddTags(const Tag &value)
Definition: VpcPeeringConnection.h:216