AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeLoadBalancersResult.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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/LoadBalancer.h>
12#include <aws/elasticloadbalancingv2/model/ResponseMetadata.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 ElasticLoadBalancingv2 {
26namespace Model {
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult() = default;
31 AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult& operator=(
33
35
38 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
39 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
40 void SetLoadBalancers(LoadBalancersT&& value) {
41 m_loadBalancersHasBeenSet = true;
42 m_loadBalancers = std::forward<LoadBalancersT>(value);
43 }
44 template <typename LoadBalancersT = Aws::Vector<LoadBalancer>>
46 SetLoadBalancers(std::forward<LoadBalancersT>(value));
47 return *this;
48 }
49 template <typename LoadBalancersT = LoadBalancer>
51 m_loadBalancersHasBeenSet = true;
52 m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
63 template <typename NextMarkerT = Aws::String>
64 void SetNextMarker(NextMarkerT&& value) {
65 m_nextMarkerHasBeenSet = true;
66 m_nextMarker = std::forward<NextMarkerT>(value);
67 }
68 template <typename NextMarkerT = Aws::String>
70 SetNextMarker(std::forward<NextMarkerT>(value));
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 Aws::Vector<LoadBalancer> m_loadBalancers;
93
94 Aws::String m_nextMarker;
95
96 ResponseMetadata m_responseMetadata;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_loadBalancersHasBeenSet = false;
99 bool m_nextMarkerHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElasticLoadBalancingv2
105} // namespace Aws
DescribeLoadBalancersResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult()=default
DescribeLoadBalancersResult & WithLoadBalancers(LoadBalancersT &&value)
DescribeLoadBalancersResult & WithNextMarker(NextMarkerT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeLoadBalancersResult & AddLoadBalancers(LoadBalancersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument