AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeLoadBalancersResult.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
11#include <aws/elasticloadbalancingv2/model/LoadBalancer.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticLoadBalancingv2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersResult() = default;
36
37
39
42 inline const Aws::Vector<LoadBalancer>& GetLoadBalancers() const { return m_loadBalancers; }
43 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
44 void SetLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::forward<LoadBalancersT>(value); }
45 template<typename LoadBalancersT = Aws::Vector<LoadBalancer>>
46 DescribeLoadBalancersResult& WithLoadBalancers(LoadBalancersT&& value) { SetLoadBalancers(std::forward<LoadBalancersT>(value)); return *this;}
47 template<typename LoadBalancersT = LoadBalancer>
48 DescribeLoadBalancersResult& AddLoadBalancers(LoadBalancersT&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.emplace_back(std::forward<LoadBalancersT>(value)); return *this; }
50
52
56 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
57 template<typename NextMarkerT = Aws::String>
58 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
59 template<typename NextMarkerT = Aws::String>
60 DescribeLoadBalancersResult& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
62
64
65 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
66 template<typename ResponseMetadataT = ResponseMetadata>
67 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
68 template<typename ResponseMetadataT = ResponseMetadata>
69 DescribeLoadBalancersResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
71 private:
72
73 Aws::Vector<LoadBalancer> m_loadBalancers;
74 bool m_loadBalancersHasBeenSet = false;
75
76 Aws::String m_nextMarker;
77 bool m_nextMarkerHasBeenSet = false;
78
79 ResponseMetadata m_responseMetadata;
80 bool m_responseMetadataHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ElasticLoadBalancingv2
85} // 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