AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeLoadBalancersRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ElasticLoadBalancingv2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeLoadBalancers"; }
32
33 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
45 inline const Aws::Vector<Aws::String>& GetLoadBalancerArns() const { return m_loadBalancerArns; }
46 inline bool LoadBalancerArnsHasBeenSet() const { return m_loadBalancerArnsHasBeenSet; }
47 template<typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
48 void SetLoadBalancerArns(LoadBalancerArnsT&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = std::forward<LoadBalancerArnsT>(value); }
49 template<typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
50 DescribeLoadBalancersRequest& WithLoadBalancerArns(LoadBalancerArnsT&& value) { SetLoadBalancerArns(std::forward<LoadBalancerArnsT>(value)); return *this;}
51 template<typename LoadBalancerArnsT = Aws::String>
52 DescribeLoadBalancersRequest& AddLoadBalancerArns(LoadBalancerArnsT&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.emplace_back(std::forward<LoadBalancerArnsT>(value)); return *this; }
54
56
59 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
60 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
61 template<typename NamesT = Aws::Vector<Aws::String>>
62 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
63 template<typename NamesT = Aws::Vector<Aws::String>>
64 DescribeLoadBalancersRequest& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
65 template<typename NamesT = Aws::String>
66 DescribeLoadBalancersRequest& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
68
70
74 inline const Aws::String& GetMarker() const { return m_marker; }
75 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
76 template<typename MarkerT = Aws::String>
77 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
78 template<typename MarkerT = Aws::String>
79 DescribeLoadBalancersRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
81
83
86 inline int GetPageSize() const { return m_pageSize; }
87 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
88 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
89 inline DescribeLoadBalancersRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
91 private:
92
93 Aws::Vector<Aws::String> m_loadBalancerArns;
94 bool m_loadBalancerArnsHasBeenSet = false;
95
97 bool m_namesHasBeenSet = false;
98
99 Aws::String m_marker;
100 bool m_markerHasBeenSet = false;
101
102 int m_pageSize{0};
103 bool m_pageSizeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ElasticLoadBalancingv2
108} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
DescribeLoadBalancersRequest & AddLoadBalancerArns(LoadBalancerArnsT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersRequest()=default
DescribeLoadBalancersRequest & WithLoadBalancerArns(LoadBalancerArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector