AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeTargetGroupsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ElasticLoadBalancingv2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsRequest();
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 "DescribeTargetGroups"; }
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
44 inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; }
45 inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
46 inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
47 inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); }
48 inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
50 inline DescribeTargetGroupsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;}
51 inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const{ return m_targetGroupArns; }
59 inline bool TargetGroupArnsHasBeenSet() const { return m_targetGroupArnsHasBeenSet; }
60 inline void SetTargetGroupArns(const Aws::Vector<Aws::String>& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = value; }
61 inline void SetTargetGroupArns(Aws::Vector<Aws::String>&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = std::move(value); }
64 inline DescribeTargetGroupsRequest& AddTargetGroupArns(const Aws::String& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
65 inline DescribeTargetGroupsRequest& AddTargetGroupArns(Aws::String&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(std::move(value)); return *this; }
66 inline DescribeTargetGroupsRequest& AddTargetGroupArns(const char* value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
68
70
73 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
74 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
75 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
76 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
77 inline DescribeTargetGroupsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
78 inline DescribeTargetGroupsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
79 inline DescribeTargetGroupsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
80 inline DescribeTargetGroupsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
81 inline DescribeTargetGroupsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
83
85
89 inline const Aws::String& GetMarker() const{ return m_marker; }
90 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
91 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
92 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
93 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
94 inline DescribeTargetGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
95 inline DescribeTargetGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
96 inline DescribeTargetGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
98
100
103 inline int GetPageSize() const{ return m_pageSize; }
104 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
105 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
106 inline DescribeTargetGroupsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
108 private:
109
110 Aws::String m_loadBalancerArn;
111 bool m_loadBalancerArnHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_targetGroupArns;
114 bool m_targetGroupArnsHasBeenSet = false;
115
117 bool m_namesHasBeenSet = false;
118
119 Aws::String m_marker;
120 bool m_markerHasBeenSet = false;
121
122 int m_pageSize;
123 bool m_pageSizeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ElasticLoadBalancingv2
128} // namespace Aws
DescribeTargetGroupsRequest & WithTargetGroupArns(const Aws::Vector< Aws::String > &value)
DescribeTargetGroupsRequest & WithLoadBalancerArn(const char *value)
DescribeTargetGroupsRequest & WithMarker(const Aws::String &value)
DescribeTargetGroupsRequest & WithNames(Aws::Vector< Aws::String > &&value)
DescribeTargetGroupsRequest & WithMarker(Aws::String &&value)
DescribeTargetGroupsRequest & AddNames(Aws::String &&value)
DescribeTargetGroupsRequest & WithLoadBalancerArn(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
DescribeTargetGroupsRequest & AddNames(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeTargetGroupsRequest & AddTargetGroupArns(Aws::String &&value)
DescribeTargetGroupsRequest & AddTargetGroupArns(const char *value)
DescribeTargetGroupsRequest & WithLoadBalancerArn(const Aws::String &value)
DescribeTargetGroupsRequest & AddTargetGroupArns(const Aws::String &value)
DescribeTargetGroupsRequest & WithNames(const Aws::Vector< Aws::String > &value)
DescribeTargetGroupsRequest & WithTargetGroupArns(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector