AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetRouteServerAssociationsResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10#include <aws/ec2/model/RouteServerAssociation.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
26 public:
27 AWS_EC2_API GetRouteServerAssociationsResponse() = default;
30
32
35 inline const Aws::Vector<RouteServerAssociation>& GetRouteServerAssociations() const { return m_routeServerAssociations; }
36 template <typename RouteServerAssociationsT = Aws::Vector<RouteServerAssociation>>
37 void SetRouteServerAssociations(RouteServerAssociationsT&& value) {
38 m_routeServerAssociationsHasBeenSet = true;
39 m_routeServerAssociations = std::forward<RouteServerAssociationsT>(value);
40 }
41 template <typename RouteServerAssociationsT = Aws::Vector<RouteServerAssociation>>
43 SetRouteServerAssociations(std::forward<RouteServerAssociationsT>(value));
44 return *this;
45 }
46 template <typename RouteServerAssociationsT = RouteServerAssociation>
48 m_routeServerAssociationsHasBeenSet = true;
49 m_routeServerAssociations.emplace_back(std::forward<RouteServerAssociationsT>(value));
50 return *this;
51 }
53
55
56 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
57 template <typename ResponseMetadataT = ResponseMetadata>
58 void SetResponseMetadata(ResponseMetadataT&& value) {
59 m_responseMetadataHasBeenSet = true;
60 m_responseMetadata = std::forward<ResponseMetadataT>(value);
61 }
62 template <typename ResponseMetadataT = ResponseMetadata>
64 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
65 return *this;
66 }
68 private:
69 Aws::Vector<RouteServerAssociation> m_routeServerAssociations;
70
71 ResponseMetadata m_responseMetadata;
72 bool m_routeServerAssociationsHasBeenSet = false;
73 bool m_responseMetadataHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace EC2
78} // 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