AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeVpnGatewaysResponse.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<VpnGateway>& GetVpnGateways() const{ return m_vpnGateways; }
46 
50  inline void SetVpnGateways(const Aws::Vector<VpnGateway>& value) { m_vpnGateways = value; }
51 
55  inline void SetVpnGateways(Aws::Vector<VpnGateway>&& value) { m_vpnGateways = std::move(value); }
56 
60  inline DescribeVpnGatewaysResponse& WithVpnGateways(const Aws::Vector<VpnGateway>& value) { SetVpnGateways(value); return *this;}
61 
65  inline DescribeVpnGatewaysResponse& WithVpnGateways(Aws::Vector<VpnGateway>&& value) { SetVpnGateways(std::move(value)); return *this;}
66 
70  inline DescribeVpnGatewaysResponse& AddVpnGateways(const VpnGateway& value) { m_vpnGateways.push_back(value); return *this; }
71 
75  inline DescribeVpnGatewaysResponse& AddVpnGateways(VpnGateway&& value) { m_vpnGateways.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 DescribeVpnGatewaysResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
89 
90 
91  inline DescribeVpnGatewaysResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
92 
93  private:
94 
95  Aws::Vector<VpnGateway> m_vpnGateways;
96 
97  ResponseMetadata m_responseMetadata;
98  };
99 
100 } // namespace Model
101 } // namespace EC2
102 } // namespace Aws
Aws::EC2::Model::DescribeVpnGatewaysResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeVpnGatewaysResponse.h:79
Aws::EC2::Model::DescribeVpnGatewaysResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVpnGatewaysResponse.h:82
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeVpnGatewaysResponse::WithVpnGateways
DescribeVpnGatewaysResponse & WithVpnGateways(const Aws::Vector< VpnGateway > &value)
Definition: DescribeVpnGatewaysResponse.h:60
VpnGateway.h
Aws::EC2::Model::DescribeVpnGatewaysResponse::SetVpnGateways
void SetVpnGateways(const Aws::Vector< VpnGateway > &value)
Definition: DescribeVpnGatewaysResponse.h:50
Aws::EC2::Model::DescribeVpnGatewaysResponse::AddVpnGateways
DescribeVpnGatewaysResponse & AddVpnGateways(const VpnGateway &value)
Definition: DescribeVpnGatewaysResponse.h:70
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeVpnGatewaysResponse::DescribeVpnGatewaysResponse
DescribeVpnGatewaysResponse()
Aws::EC2::Model::DescribeVpnGatewaysResponse::GetVpnGateways
const Aws::Vector< VpnGateway > & GetVpnGateways() const
Definition: DescribeVpnGatewaysResponse.h:45
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeVpnGatewaysResponse
Definition: DescribeVpnGatewaysResponse.h:35
Aws::EC2::Model::DescribeVpnGatewaysResponse::DescribeVpnGatewaysResponse
DescribeVpnGatewaysResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeVpnGatewaysResponse::SetVpnGateways
void SetVpnGateways(Aws::Vector< VpnGateway > &&value)
Definition: DescribeVpnGatewaysResponse.h:55
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeVpnGatewaysResponse::WithResponseMetadata
DescribeVpnGatewaysResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVpnGatewaysResponse.h:88
Aws::EC2::Model::DescribeVpnGatewaysResponse::WithVpnGateways
DescribeVpnGatewaysResponse & WithVpnGateways(Aws::Vector< VpnGateway > &&value)
Definition: DescribeVpnGatewaysResponse.h:65
Aws::EC2::Model::DescribeVpnGatewaysResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVpnGatewaysResponse.h:85
Aws::EC2::Model::DescribeVpnGatewaysResponse::WithResponseMetadata
DescribeVpnGatewaysResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVpnGatewaysResponse.h:91
Aws::EC2::Model::VpnGateway
Definition: VpnGateway.h:37
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVpnGatewaysResponse::AddVpnGateways
DescribeVpnGatewaysResponse & AddVpnGateways(VpnGateway &&value)
Definition: DescribeVpnGatewaysResponse.h:75
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVpnGatewaysResponse::operator=
DescribeVpnGatewaysResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)