AWS SDK for C++  1.9.67
AWS SDK for C++
SearchTransitGatewayRoutesResponse.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 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<TransitGatewayRoute>& GetRoutes() const{ return m_routes; }
41 
45  inline void SetRoutes(const Aws::Vector<TransitGatewayRoute>& value) { m_routes = value; }
46 
50  inline void SetRoutes(Aws::Vector<TransitGatewayRoute>&& value) { m_routes = std::move(value); }
51 
55  inline SearchTransitGatewayRoutesResponse& WithRoutes(const Aws::Vector<TransitGatewayRoute>& value) { SetRoutes(value); return *this;}
56 
60  inline SearchTransitGatewayRoutesResponse& WithRoutes(Aws::Vector<TransitGatewayRoute>&& value) { SetRoutes(std::move(value)); return *this;}
61 
65  inline SearchTransitGatewayRoutesResponse& AddRoutes(const TransitGatewayRoute& value) { m_routes.push_back(value); return *this; }
66 
70  inline SearchTransitGatewayRoutesResponse& AddRoutes(TransitGatewayRoute&& value) { m_routes.push_back(std::move(value)); return *this; }
71 
72 
76  inline bool GetAdditionalRoutesAvailable() const{ return m_additionalRoutesAvailable; }
77 
81  inline void SetAdditionalRoutesAvailable(bool value) { m_additionalRoutesAvailable = value; }
82 
86  inline SearchTransitGatewayRoutesResponse& WithAdditionalRoutesAvailable(bool value) { SetAdditionalRoutesAvailable(value); return *this;}
87 
88 
89 
90  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
91 
92 
93  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
94 
95 
96  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
97 
98 
99  inline SearchTransitGatewayRoutesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
100 
101 
102  inline SearchTransitGatewayRoutesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
103 
104  private:
105 
107 
108  bool m_additionalRoutesAvailable;
109 
110  ResponseMetadata m_responseMetadata;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::EC2::Model::TransitGatewayRoute
Definition: TransitGatewayRoute.h:37
Aws::EC2::Model::SearchTransitGatewayRoutesResponse
Definition: SearchTransitGatewayRoutesResponse.h:30
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::operator=
SearchTransitGatewayRoutesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SetAdditionalRoutesAvailable
void SetAdditionalRoutesAvailable(bool value)
Definition: SearchTransitGatewayRoutesResponse.h:81
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::WithResponseMetadata
SearchTransitGatewayRoutesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: SearchTransitGatewayRoutesResponse.h:99
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::WithRoutes
SearchTransitGatewayRoutesResponse & WithRoutes(const Aws::Vector< TransitGatewayRoute > &value)
Definition: SearchTransitGatewayRoutesResponse.h:55
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::AddRoutes
SearchTransitGatewayRoutesResponse & AddRoutes(const TransitGatewayRoute &value)
Definition: SearchTransitGatewayRoutesResponse.h:65
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: SearchTransitGatewayRoutesResponse.h:96
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::GetRoutes
const Aws::Vector< TransitGatewayRoute > & GetRoutes() const
Definition: SearchTransitGatewayRoutesResponse.h:40
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::GetAdditionalRoutesAvailable
bool GetAdditionalRoutesAvailable() const
Definition: SearchTransitGatewayRoutesResponse.h:76
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SetRoutes
void SetRoutes(const Aws::Vector< TransitGatewayRoute > &value)
Definition: SearchTransitGatewayRoutesResponse.h:45
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::WithRoutes
SearchTransitGatewayRoutesResponse & WithRoutes(Aws::Vector< TransitGatewayRoute > &&value)
Definition: SearchTransitGatewayRoutesResponse.h:60
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: SearchTransitGatewayRoutesResponse.h:93
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::AddRoutes
SearchTransitGatewayRoutesResponse & AddRoutes(TransitGatewayRoute &&value)
Definition: SearchTransitGatewayRoutesResponse.h:70
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::WithAdditionalRoutesAvailable
SearchTransitGatewayRoutesResponse & WithAdditionalRoutesAvailable(bool value)
Definition: SearchTransitGatewayRoutesResponse.h:86
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SearchTransitGatewayRoutesResponse
SearchTransitGatewayRoutesResponse()
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::WithResponseMetadata
SearchTransitGatewayRoutesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: SearchTransitGatewayRoutesResponse.h:102
Aws
Definition: AccessManagementClient.h:15
TransitGatewayRoute.h
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SetRoutes
void SetRoutes(Aws::Vector< TransitGatewayRoute > &&value)
Definition: SearchTransitGatewayRoutesResponse.h:50
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: SearchTransitGatewayRoutesResponse.h:90
EC2_EXPORTS.h
Aws::EC2::Model::SearchTransitGatewayRoutesResponse::SearchTransitGatewayRoutesResponse
SearchTransitGatewayRoutesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)