AWS SDK for C++  1.9.70
AWS SDK for C++
DescribeVpnConnectionsResponse.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 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<VpnConnection>& GetVpnConnections() const{ return m_vpnConnections; }
46 
50  inline void SetVpnConnections(const Aws::Vector<VpnConnection>& value) { m_vpnConnections = value; }
51 
55  inline void SetVpnConnections(Aws::Vector<VpnConnection>&& value) { m_vpnConnections = std::move(value); }
56 
60  inline DescribeVpnConnectionsResponse& WithVpnConnections(const Aws::Vector<VpnConnection>& value) { SetVpnConnections(value); return *this;}
61 
65  inline DescribeVpnConnectionsResponse& WithVpnConnections(Aws::Vector<VpnConnection>&& value) { SetVpnConnections(std::move(value)); return *this;}
66 
70  inline DescribeVpnConnectionsResponse& AddVpnConnections(const VpnConnection& value) { m_vpnConnections.push_back(value); return *this; }
71 
75  inline DescribeVpnConnectionsResponse& AddVpnConnections(VpnConnection&& value) { m_vpnConnections.push_back(std::move(value)); return *this; }
76 
77 
78 
79  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
80 
81 
82  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
83 
84 
85  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
86 
87 
88  inline DescribeVpnConnectionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
89 
90 
91  inline DescribeVpnConnectionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
92 
93  private:
94 
95  Aws::Vector<VpnConnection> m_vpnConnections;
96 
97  ResponseMetadata m_responseMetadata;
98  };
99 
100 } // namespace Model
101 } // namespace EC2
102 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeVpnConnectionsResponse::AddVpnConnections
DescribeVpnConnectionsResponse & AddVpnConnections(VpnConnection &&value)
Definition: DescribeVpnConnectionsResponse.h:75
Aws::EC2::Model::DescribeVpnConnectionsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeVpnConnectionsResponse.h:79
Aws::EC2::Model::DescribeVpnConnectionsResponse::DescribeVpnConnectionsResponse
DescribeVpnConnectionsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeVpnConnectionsResponse
Definition: DescribeVpnConnectionsResponse.h:35
Aws::EC2::Model::DescribeVpnConnectionsResponse::AddVpnConnections
DescribeVpnConnectionsResponse & AddVpnConnections(const VpnConnection &value)
Definition: DescribeVpnConnectionsResponse.h:70
Aws::EC2::Model::DescribeVpnConnectionsResponse::SetVpnConnections
void SetVpnConnections(Aws::Vector< VpnConnection > &&value)
Definition: DescribeVpnConnectionsResponse.h:55
Aws::EC2::Model::DescribeVpnConnectionsResponse::WithVpnConnections
DescribeVpnConnectionsResponse & WithVpnConnections(Aws::Vector< VpnConnection > &&value)
Definition: DescribeVpnConnectionsResponse.h:65
Aws::EC2::Model::DescribeVpnConnectionsResponse::WithResponseMetadata
DescribeVpnConnectionsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVpnConnectionsResponse.h:88
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeVpnConnectionsResponse::DescribeVpnConnectionsResponse
DescribeVpnConnectionsResponse()
AWSVector.h
Aws::EC2::Model::DescribeVpnConnectionsResponse::SetVpnConnections
void SetVpnConnections(const Aws::Vector< VpnConnection > &value)
Definition: DescribeVpnConnectionsResponse.h:50
Aws::EC2::Model::DescribeVpnConnectionsResponse::GetVpnConnections
const Aws::Vector< VpnConnection > & GetVpnConnections() const
Definition: DescribeVpnConnectionsResponse.h:45
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeVpnConnectionsResponse::WithVpnConnections
DescribeVpnConnectionsResponse & WithVpnConnections(const Aws::Vector< VpnConnection > &value)
Definition: DescribeVpnConnectionsResponse.h:60
VpnConnection.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpnConnectionsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVpnConnectionsResponse.h:85
Aws::EC2::Model::DescribeVpnConnectionsResponse::operator=
DescribeVpnConnectionsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::VpnConnection
Definition: VpnConnection.h:39
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpnConnectionsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVpnConnectionsResponse.h:82
Aws::EC2::Model::DescribeVpnConnectionsResponse::WithResponseMetadata
DescribeVpnConnectionsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVpnConnectionsResponse.h:91