AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeRouteTablesResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/RouteTable.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
33 public:
34 AWS_EC2_API DescribeRouteTablesResponse() = default;
37
39
42 inline const Aws::Vector<RouteTable>& GetRouteTables() const { return m_routeTables; }
43 template <typename RouteTablesT = Aws::Vector<RouteTable>>
44 void SetRouteTables(RouteTablesT&& value) {
45 m_routeTablesHasBeenSet = true;
46 m_routeTables = std::forward<RouteTablesT>(value);
47 }
48 template <typename RouteTablesT = Aws::Vector<RouteTable>>
50 SetRouteTables(std::forward<RouteTablesT>(value));
51 return *this;
52 }
53 template <typename RouteTablesT = RouteTable>
55 m_routeTablesHasBeenSet = true;
56 m_routeTables.emplace_back(std::forward<RouteTablesT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 void SetResponseMetadata(ResponseMetadataT&& value) {
84 m_responseMetadataHasBeenSet = true;
85 m_responseMetadata = std::forward<ResponseMetadataT>(value);
86 }
87 template <typename ResponseMetadataT = ResponseMetadata>
89 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::Vector<RouteTable> m_routeTables;
97
98 Aws::String m_nextToken;
99
100 ResponseMetadata m_responseMetadata;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_routeTablesHasBeenSet = false;
103 bool m_nextTokenHasBeenSet = false;
104 bool m_responseMetadataHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
DescribeRouteTablesResponse & AddRouteTables(RouteTablesT &&value)
DescribeRouteTablesResponse & WithRouteTables(RouteTablesT &&value)
const Aws::Vector< RouteTable > & GetRouteTables() const
AWS_EC2_API DescribeRouteTablesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_EC2_API DescribeRouteTablesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeRouteTablesResponse & WithNextToken(NextTokenT &&value)
DescribeRouteTablesResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API DescribeRouteTablesResponse()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument