AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcPeeringConnection.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VpcPeeringConnectionVpcInfo.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/VpcPeeringConnectionStateReason.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API VpcPeeringConnection();
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const VpcPeeringConnectionVpcInfo& GetAccepterVpcInfo() const{ return m_accepterVpcInfo; }
53 inline bool AccepterVpcInfoHasBeenSet() const { return m_accepterVpcInfoHasBeenSet; }
54 inline void SetAccepterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = value; }
55 inline void SetAccepterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = std::move(value); }
59
61
64 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
65 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
66 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
67 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
69 inline VpcPeeringConnection& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
71
73
77 inline const VpcPeeringConnectionVpcInfo& GetRequesterVpcInfo() const{ return m_requesterVpcInfo; }
78 inline bool RequesterVpcInfoHasBeenSet() const { return m_requesterVpcInfoHasBeenSet; }
79 inline void SetRequesterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = value; }
80 inline void SetRequesterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = std::move(value); }
84
86
89 inline const VpcPeeringConnectionStateReason& GetStatus() const{ return m_status; }
90 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
91 inline void SetStatus(const VpcPeeringConnectionStateReason& value) { m_statusHasBeenSet = true; m_status = value; }
92 inline void SetStatus(VpcPeeringConnectionStateReason&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
93 inline VpcPeeringConnection& WithStatus(const VpcPeeringConnectionStateReason& value) { SetStatus(value); return *this;}
94 inline VpcPeeringConnection& WithStatus(VpcPeeringConnectionStateReason&& value) { SetStatus(std::move(value)); return *this;}
96
98
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline VpcPeeringConnection& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline VpcPeeringConnection& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline VpcPeeringConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline VpcPeeringConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
116 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
117 inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
118 inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
119 inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
122 inline VpcPeeringConnection& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
124 private:
125
126 VpcPeeringConnectionVpcInfo m_accepterVpcInfo;
127 bool m_accepterVpcInfoHasBeenSet = false;
128
129 Aws::Utils::DateTime m_expirationTime;
130 bool m_expirationTimeHasBeenSet = false;
131
132 VpcPeeringConnectionVpcInfo m_requesterVpcInfo;
133 bool m_requesterVpcInfoHasBeenSet = false;
134
136 bool m_statusHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140
141 Aws::String m_vpcPeeringConnectionId;
142 bool m_vpcPeeringConnectionIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EC2
147} // namespace Aws
VpcPeeringConnection & WithRequesterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
void SetVpcPeeringConnectionId(const char *value)
void SetAccepterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
void SetRequesterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
AWS_EC2_API VpcPeeringConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRequesterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
VpcPeeringConnection & WithTags(Aws::Vector< Tag > &&value)
void SetTags(Aws::Vector< Tag > &&value)
VpcPeeringConnection & WithAccepterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
VpcPeeringConnection & AddTags(const Tag &value)
VpcPeeringConnection & WithStatus(VpcPeeringConnectionStateReason &&value)
AWS_EC2_API VpcPeeringConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcPeeringConnection & WithTags(const Aws::Vector< Tag > &value)
VpcPeeringConnection & WithStatus(const VpcPeeringConnectionStateReason &value)
VpcPeeringConnection & WithVpcPeeringConnectionId(const Aws::String &value)
const VpcPeeringConnectionStateReason & GetStatus() const
void SetExpirationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetVpcPeeringConnectionId() const
void SetAccepterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
VpcPeeringConnection & WithVpcPeeringConnectionId(Aws::String &&value)
void SetExpirationTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
const VpcPeeringConnectionVpcInfo & GetAccepterVpcInfo() const
VpcPeeringConnection & WithVpcPeeringConnectionId(const char *value)
const Aws::Vector< Tag > & GetTags() const
const VpcPeeringConnectionVpcInfo & GetRequesterVpcInfo() const
VpcPeeringConnection & WithExpirationTime(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetVpcPeeringConnectionId(const Aws::String &value)
void SetVpcPeeringConnectionId(Aws::String &&value)
VpcPeeringConnection & WithExpirationTime(const Aws::Utils::DateTime &value)
void SetStatus(VpcPeeringConnectionStateReason &&value)
void SetStatus(const VpcPeeringConnectionStateReason &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpcPeeringConnection & AddTags(Tag &&value)
VpcPeeringConnection & WithRequesterVpcInfo(const VpcPeeringConnectionVpcInfo &value)
VpcPeeringConnection & WithAccepterVpcInfo(VpcPeeringConnectionVpcInfo &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream