AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeLoadBalancersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ElasticLoadBalancingv2 {
16namespace Model {
17
21 public:
22 AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeLoadBalancers"; }
29
30 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
41 inline const Aws::Vector<Aws::String>& GetLoadBalancerArns() const { return m_loadBalancerArns; }
42 inline bool LoadBalancerArnsHasBeenSet() const { return m_loadBalancerArnsHasBeenSet; }
43 template <typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
44 void SetLoadBalancerArns(LoadBalancerArnsT&& value) {
45 m_loadBalancerArnsHasBeenSet = true;
46 m_loadBalancerArns = std::forward<LoadBalancerArnsT>(value);
47 }
48 template <typename LoadBalancerArnsT = Aws::Vector<Aws::String>>
50 SetLoadBalancerArns(std::forward<LoadBalancerArnsT>(value));
51 return *this;
52 }
53 template <typename LoadBalancerArnsT = Aws::String>
55 m_loadBalancerArnsHasBeenSet = true;
56 m_loadBalancerArns.emplace_back(std::forward<LoadBalancerArnsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
66 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
67 template <typename NamesT = Aws::Vector<Aws::String>>
68 void SetNames(NamesT&& value) {
69 m_namesHasBeenSet = true;
70 m_names = std::forward<NamesT>(value);
71 }
72 template <typename NamesT = Aws::Vector<Aws::String>>
74 SetNames(std::forward<NamesT>(value));
75 return *this;
76 }
77 template <typename NamesT = Aws::String>
79 m_namesHasBeenSet = true;
80 m_names.emplace_back(std::forward<NamesT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetMarker() const { return m_marker; }
91 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
92 template <typename MarkerT = Aws::String>
93 void SetMarker(MarkerT&& value) {
94 m_markerHasBeenSet = true;
95 m_marker = std::forward<MarkerT>(value);
96 }
97 template <typename MarkerT = Aws::String>
99 SetMarker(std::forward<MarkerT>(value));
100 return *this;
101 }
103
105
108 inline int GetPageSize() const { return m_pageSize; }
109 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
110 inline void SetPageSize(int value) {
111 m_pageSizeHasBeenSet = true;
112 m_pageSize = value;
113 }
115 SetPageSize(value);
116 return *this;
117 }
119 private:
120 Aws::Vector<Aws::String> m_loadBalancerArns;
121
123
124 Aws::String m_marker;
125
126 int m_pageSize{0};
127 bool m_loadBalancerArnsHasBeenSet = false;
128 bool m_namesHasBeenSet = false;
129 bool m_markerHasBeenSet = false;
130 bool m_pageSizeHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ElasticLoadBalancingv2
135} // 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