AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetRouteServerAssociationsResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/RouteServerAssociation.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API GetRouteServerAssociationsResponse() = default;
31
33
36 inline const Aws::Vector<RouteServerAssociation>& GetRouteServerAssociations() const { return m_routeServerAssociations; }
37 template <typename RouteServerAssociationsT = Aws::Vector<RouteServerAssociation>>
38 void SetRouteServerAssociations(RouteServerAssociationsT&& value) {
39 m_routeServerAssociationsHasBeenSet = true;
40 m_routeServerAssociations = std::forward<RouteServerAssociationsT>(value);
41 }
42 template <typename RouteServerAssociationsT = Aws::Vector<RouteServerAssociation>>
44 SetRouteServerAssociations(std::forward<RouteServerAssociationsT>(value));
45 return *this;
46 }
47 template <typename RouteServerAssociationsT = RouteServerAssociation>
49 m_routeServerAssociationsHasBeenSet = true;
50 m_routeServerAssociations.emplace_back(std::forward<RouteServerAssociationsT>(value));
51 return *this;
52 }
54
56
57 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
58 template <typename ResponseMetadataT = ResponseMetadata>
59 void SetResponseMetadata(ResponseMetadataT&& value) {
60 m_responseMetadataHasBeenSet = true;
61 m_responseMetadata = std::forward<ResponseMetadataT>(value);
62 }
63 template <typename ResponseMetadataT = ResponseMetadata>
65 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
66 return *this;
67 }
69 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
70
71 private:
72 Aws::Vector<RouteServerAssociation> m_routeServerAssociations;
73
74 ResponseMetadata m_responseMetadata;
75 Aws::Http::HttpResponseCode m_HttpResponseCode;
76 bool m_routeServerAssociationsHasBeenSet = false;
77 bool m_responseMetadataHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API GetRouteServerAssociationsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetRouteServerAssociationsResponse & AddRouteServerAssociations(RouteServerAssociationsT &&value)
const Aws::Vector< RouteServerAssociation > & GetRouteServerAssociations() const
AWS_EC2_API GetRouteServerAssociationsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetRouteServerAssociationsResponse & WithResponseMetadata(ResponseMetadataT &&value)
GetRouteServerAssociationsResponse & WithRouteServerAssociations(RouteServerAssociationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument