AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/elasticloadbalancing/ElasticLoadBalancingRequest.h>
10#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ElasticLoadBalancing {
16namespace Model {
17
25 public:
26 AWS_ELASTICLOADBALANCING_API DescribeLoadBalancersRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeLoadBalancers"; }
33
34 AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
44 inline const Aws::Vector<Aws::String>& GetLoadBalancerNames() const { return m_loadBalancerNames; }
45 inline bool LoadBalancerNamesHasBeenSet() const { return m_loadBalancerNamesHasBeenSet; }
46 template <typename LoadBalancerNamesT = Aws::Vector<Aws::String>>
47 void SetLoadBalancerNames(LoadBalancerNamesT&& value) {
48 m_loadBalancerNamesHasBeenSet = true;
49 m_loadBalancerNames = std::forward<LoadBalancerNamesT>(value);
50 }
51 template <typename LoadBalancerNamesT = Aws::Vector<Aws::String>>
53 SetLoadBalancerNames(std::forward<LoadBalancerNamesT>(value));
54 return *this;
55 }
56 template <typename LoadBalancerNamesT = Aws::String>
58 m_loadBalancerNamesHasBeenSet = true;
59 m_loadBalancerNames.emplace_back(std::forward<LoadBalancerNamesT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetMarker() const { return m_marker; }
70 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
71 template <typename MarkerT = Aws::String>
72 void SetMarker(MarkerT&& value) {
73 m_markerHasBeenSet = true;
74 m_marker = std::forward<MarkerT>(value);
75 }
76 template <typename MarkerT = Aws::String>
78 SetMarker(std::forward<MarkerT>(value));
79 return *this;
80 }
82
84
88 inline int GetPageSize() const { return m_pageSize; }
89 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
90 inline void SetPageSize(int value) {
91 m_pageSizeHasBeenSet = true;
92 m_pageSize = value;
93 }
95 SetPageSize(value);
96 return *this;
97 }
99 private:
100 Aws::Vector<Aws::String> m_loadBalancerNames;
101
102 Aws::String m_marker;
103
104 int m_pageSize{0};
105 bool m_loadBalancerNamesHasBeenSet = false;
106 bool m_markerHasBeenSet = false;
107 bool m_pageSizeHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ElasticLoadBalancing
112} // namespace Aws
AWS_ELASTICLOADBALANCING_API DescribeLoadBalancersRequest()=default
DescribeLoadBalancersRequest & AddLoadBalancerNames(LoadBalancerNamesT &&value)
AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLoadBalancersRequest & WithLoadBalancerNames(LoadBalancerNamesT &&value)
AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector