AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeLoadBalancersRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/elasticloadbalancing/ElasticLoadBalancingRequest.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 ElasticLoadBalancing
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ELASTICLOADBALANCING_API DescribeLoadBalancersRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeLoadBalancers"; }
36
37 AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::Vector<Aws::String>& GetLoadBalancerNames() const { return m_loadBalancerNames; }
49 inline bool LoadBalancerNamesHasBeenSet() const { return m_loadBalancerNamesHasBeenSet; }
50 template<typename LoadBalancerNamesT = Aws::Vector<Aws::String>>
51 void SetLoadBalancerNames(LoadBalancerNamesT&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = std::forward<LoadBalancerNamesT>(value); }
52 template<typename LoadBalancerNamesT = Aws::Vector<Aws::String>>
53 DescribeLoadBalancersRequest& WithLoadBalancerNames(LoadBalancerNamesT&& value) { SetLoadBalancerNames(std::forward<LoadBalancerNamesT>(value)); return *this;}
54 template<typename LoadBalancerNamesT = Aws::String>
55 DescribeLoadBalancersRequest& AddLoadBalancerNames(LoadBalancerNamesT&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.emplace_back(std::forward<LoadBalancerNamesT>(value)); return *this; }
57
59
63 inline const Aws::String& GetMarker() const { return m_marker; }
64 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
65 template<typename MarkerT = Aws::String>
66 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
67 template<typename MarkerT = Aws::String>
68 DescribeLoadBalancersRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
70
72
76 inline int GetPageSize() const { return m_pageSize; }
77 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
78 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
79 inline DescribeLoadBalancersRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_loadBalancerNames;
84 bool m_loadBalancerNamesHasBeenSet = false;
85
86 Aws::String m_marker;
87 bool m_markerHasBeenSet = false;
88
89 int m_pageSize{0};
90 bool m_pageSizeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ElasticLoadBalancing
95} // 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