AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeTargetGroupsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace ElasticLoadBalancingv2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; }
41 
45  inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
46 
50  inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
51 
55  inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
56 
60  inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;}
61 
65  inline DescribeTargetGroupsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(value); return *this;}
66 
70  inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
71 
75  inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const{ return m_targetGroupArns; }
76 
80  inline void SetTargetGroupArns(const Aws::Vector<Aws::String>& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = value; }
81 
85  inline void SetTargetGroupArns(Aws::Vector<Aws::String>&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = value; }
86 
90  inline DescribeTargetGroupsRequest& WithTargetGroupArns(const Aws::Vector<Aws::String>& value) { SetTargetGroupArns(value); return *this;}
91 
95  inline DescribeTargetGroupsRequest& WithTargetGroupArns(Aws::Vector<Aws::String>&& value) { SetTargetGroupArns(value); return *this;}
96 
100  inline DescribeTargetGroupsRequest& AddTargetGroupArns(const Aws::String& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
101 
105  inline DescribeTargetGroupsRequest& AddTargetGroupArns(Aws::String&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
106 
110  inline DescribeTargetGroupsRequest& AddTargetGroupArns(const char* value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
111 
115  inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
116 
120  inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
121 
125  inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = value; }
126 
130  inline DescribeTargetGroupsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
131 
135  inline DescribeTargetGroupsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(value); return *this;}
136 
140  inline DescribeTargetGroupsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
141 
145  inline DescribeTargetGroupsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
146 
150  inline DescribeTargetGroupsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
151 
156  inline const Aws::String& GetMarker() const{ return m_marker; }
157 
162  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
163 
168  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
169 
174  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
175 
180  inline DescribeTargetGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
181 
186  inline DescribeTargetGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
187 
192  inline DescribeTargetGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
193 
197  inline int GetPageSize() const{ return m_pageSize; }
198 
202  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
203 
207  inline DescribeTargetGroupsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
208 
209  private:
210  Aws::String m_loadBalancerArn;
211  bool m_loadBalancerArnHasBeenSet;
212  Aws::Vector<Aws::String> m_targetGroupArns;
213  bool m_targetGroupArnsHasBeenSet;
214  Aws::Vector<Aws::String> m_names;
215  bool m_namesHasBeenSet;
216  Aws::String m_marker;
217  bool m_markerHasBeenSet;
218  int m_pageSize;
219  bool m_pageSizeHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace ElasticLoadBalancingv2
224 } // namespace Aws
DescribeTargetGroupsRequest & AddTargetGroupArns(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeTargetGroupsRequest & AddTargetGroupArns(const char *value)
DescribeTargetGroupsRequest & AddNames(const Aws::String &value)
DescribeTargetGroupsRequest & WithMarker(Aws::String &&value)
DescribeTargetGroupsRequest & WithNames(Aws::Vector< Aws::String > &&value)
DescribeTargetGroupsRequest & WithTargetGroupArns(Aws::Vector< Aws::String > &&value)
DescribeTargetGroupsRequest & WithLoadBalancerArn(const char *value)
DescribeTargetGroupsRequest & WithLoadBalancerArn(const Aws::String &value)
DescribeTargetGroupsRequest & AddTargetGroupArns(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTargetGroupsRequest & WithLoadBalancerArn(Aws::String &&value)
DescribeTargetGroupsRequest & WithTargetGroupArns(const Aws::Vector< Aws::String > &value)
DescribeTargetGroupsRequest & AddNames(Aws::String &&value)
#define AWS_ELASTICLOADBALANCINGV2_API
DescribeTargetGroupsRequest & WithNames(const Aws::Vector< Aws::String > &value)
DescribeTargetGroupsRequest & WithMarker(const Aws::String &value)
JSON (JavaScript Object Notation).