AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLoadBalancerArns(const Aws::Vector<Aws::String>& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = value; }
48 inline void SetLoadBalancerArns(Aws::Vector<Aws::String>&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = std::move(value); }
51 inline DescribeLoadBalancersRequest& AddLoadBalancerArns(const Aws::String& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; }
52 inline DescribeLoadBalancersRequest& AddLoadBalancerArns(Aws::String&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(std::move(value)); return *this; }
53 inline DescribeLoadBalancersRequest& AddLoadBalancerArns(const char* value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
61 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
62 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
63 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
64 inline DescribeLoadBalancersRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
65 inline DescribeLoadBalancersRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
66 inline DescribeLoadBalancersRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
67 inline DescribeLoadBalancersRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
68 inline DescribeLoadBalancersRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
70
72
76 inline const Aws::String& GetMarker() const{ return m_marker; }
77 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
78 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
79 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
80 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
81 inline DescribeLoadBalancersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
82 inline DescribeLoadBalancersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
83 inline DescribeLoadBalancersRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
85
87
90 inline int GetPageSize() const{ return m_pageSize; }
91 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
92 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
93 inline DescribeLoadBalancersRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
95 private:
96
97 Aws::Vector<Aws::String> m_loadBalancerArns;
98 bool m_loadBalancerArnsHasBeenSet = false;
99
101 bool m_namesHasBeenSet = false;
102
103 Aws::String m_marker;
104 bool m_markerHasBeenSet = false;
105
106 int m_pageSize;
107 bool m_pageSizeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ElasticLoadBalancingv2
112} // namespace Aws
DescribeLoadBalancersRequest & AddLoadBalancerArns(Aws::String &&value)
DescribeLoadBalancersRequest & WithMarker(Aws::String &&value)
DescribeLoadBalancersRequest & WithLoadBalancerArns(Aws::Vector< Aws::String > &&value)
DescribeLoadBalancersRequest & WithNames(Aws::Vector< Aws::String > &&value)
DescribeLoadBalancersRequest & WithLoadBalancerArns(const Aws::Vector< Aws::String > &value)
DescribeLoadBalancersRequest & WithNames(const Aws::Vector< Aws::String > &value)
DescribeLoadBalancersRequest & AddLoadBalancerArns(const Aws::String &value)
DescribeLoadBalancersRequest & AddLoadBalancerArns(const char *value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLoadBalancersRequest & AddNames(const Aws::String &value)
DescribeLoadBalancersRequest & WithMarker(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector