AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeLocalGatewaysResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<LocalGateway>& GetLocalGateways() const{ return m_localGateways; }
42 
46  inline void SetLocalGateways(const Aws::Vector<LocalGateway>& value) { m_localGateways = value; }
47 
51  inline void SetLocalGateways(Aws::Vector<LocalGateway>&& value) { m_localGateways = std::move(value); }
52 
56  inline DescribeLocalGatewaysResponse& WithLocalGateways(const Aws::Vector<LocalGateway>& value) { SetLocalGateways(value); return *this;}
57 
61  inline DescribeLocalGatewaysResponse& WithLocalGateways(Aws::Vector<LocalGateway>&& value) { SetLocalGateways(std::move(value)); return *this;}
62 
66  inline DescribeLocalGatewaysResponse& AddLocalGateways(const LocalGateway& value) { m_localGateways.push_back(value); return *this; }
67 
71  inline DescribeLocalGatewaysResponse& AddLocalGateways(LocalGateway&& value) { m_localGateways.push_back(std::move(value)); return *this; }
72 
73 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
84  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
85 
90  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
91 
96  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
97 
102  inline DescribeLocalGatewaysResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
103 
108  inline DescribeLocalGatewaysResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
109 
114  inline DescribeLocalGatewaysResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115 
116 
117 
118  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
119 
120 
121  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
122 
123 
124  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
125 
126 
127  inline DescribeLocalGatewaysResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
128 
129 
130  inline DescribeLocalGatewaysResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
131 
132  private:
133 
134  Aws::Vector<LocalGateway> m_localGateways;
135 
136  Aws::String m_nextToken;
137 
138  ResponseMetadata m_responseMetadata;
139  };
140 
141 } // namespace Model
142 } // namespace EC2
143 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeLocalGatewaysResponse::AddLocalGateways
DescribeLocalGatewaysResponse & AddLocalGateways(LocalGateway &&value)
Definition: DescribeLocalGatewaysResponse.h:71
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithResponseMetadata
DescribeLocalGatewaysResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeLocalGatewaysResponse.h:130
Aws::EC2::Model::DescribeLocalGatewaysResponse::DescribeLocalGatewaysResponse
DescribeLocalGatewaysResponse()
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithNextToken
DescribeLocalGatewaysResponse & WithNextToken(const Aws::String &value)
Definition: DescribeLocalGatewaysResponse.h:102
Aws::EC2::Model::DescribeLocalGatewaysResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeLocalGatewaysResponse.h:78
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::DescribeLocalGatewaysResponse::WithNextToken
DescribeLocalGatewaysResponse & WithNextToken(const char *value)
Definition: DescribeLocalGatewaysResponse.h:114
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeLocalGatewaysResponse.h:124
AWSVector.h
Aws::EC2::Model::DescribeLocalGatewaysResponse
Definition: DescribeLocalGatewaysResponse.h:31
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithResponseMetadata
DescribeLocalGatewaysResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeLocalGatewaysResponse.h:127
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeLocalGatewaysResponse.h:90
Aws::EC2::Model::DescribeLocalGatewaysResponse::AddLocalGateways
DescribeLocalGatewaysResponse & AddLocalGateways(const LocalGateway &value)
Definition: DescribeLocalGatewaysResponse.h:66
LocalGateway.h
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithNextToken
DescribeLocalGatewaysResponse & WithNextToken(Aws::String &&value)
Definition: DescribeLocalGatewaysResponse.h:108
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeLocalGatewaysResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeLocalGatewaysResponse.h:118
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeLocalGatewaysResponse.h:121
Aws::EC2::Model::DescribeLocalGatewaysResponse::operator=
DescribeLocalGatewaysResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetLocalGateways
void SetLocalGateways(Aws::Vector< LocalGateway > &&value)
Definition: DescribeLocalGatewaysResponse.h:51
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithLocalGateways
DescribeLocalGatewaysResponse & WithLocalGateways(const Aws::Vector< LocalGateway > &value)
Definition: DescribeLocalGatewaysResponse.h:56
Aws::EC2::Model::DescribeLocalGatewaysResponse::GetLocalGateways
const Aws::Vector< LocalGateway > & GetLocalGateways() const
Definition: DescribeLocalGatewaysResponse.h:41
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetLocalGateways
void SetLocalGateways(const Aws::Vector< LocalGateway > &value)
Definition: DescribeLocalGatewaysResponse.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeLocalGatewaysResponse.h:84
EC2_EXPORTS.h
Aws::EC2::Model::DescribeLocalGatewaysResponse::WithLocalGateways
DescribeLocalGatewaysResponse & WithLocalGateways(Aws::Vector< LocalGateway > &&value)
Definition: DescribeLocalGatewaysResponse.h:61
Aws::EC2::Model::DescribeLocalGatewaysResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeLocalGatewaysResponse.h:96
Aws::EC2::Model::LocalGateway
Definition: LocalGateway.h:34
Aws::EC2::Model::DescribeLocalGatewaysResponse::DescribeLocalGatewaysResponse
DescribeLocalGatewaysResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)