This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

263 lines
9.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace ElasticLoadBalancingv2
{
namespace Model
{
/**
*/
class AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsRequest : public ElasticLoadBalancingv2Request
{
public:
DescribeTargetGroupsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeTargetGroups"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; }
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline DescribeTargetGroupsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the load balancer.</p>
*/
inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetTargetGroupArns() const{ return m_targetGroupArns; }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline bool TargetGroupArnsHasBeenSet() const { return m_targetGroupArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline void SetTargetGroupArns(const Aws::Vector<Aws::String>& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline void SetTargetGroupArns(Aws::Vector<Aws::String>&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& WithTargetGroupArns(const Aws::Vector<Aws::String>& value) { SetTargetGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& WithTargetGroupArns(Aws::Vector<Aws::String>&& value) { SetTargetGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddTargetGroupArns(const Aws::String& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddTargetGroupArns(Aws::String&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARN) of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddTargetGroupArns(const char* value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; }
/**
* <p>The names of the target groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
/**
* <p>The names of the target groups.</p>
*/
inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
/**
* <p>The names of the target groups.</p>
*/
inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
/**
* <p>The names of the target groups.</p>
*/
inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
/**
* <p>The names of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
/**
* <p>The names of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
/**
* <p>The names of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The names of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
/**
* <p>The names of the target groups.</p>
*/
inline DescribeTargetGroupsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeTargetGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeTargetGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeTargetGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of results to return with this call.</p>
*/
inline int GetPageSize() const{ return m_pageSize; }
/**
* <p>The maximum number of results to return with this call.</p>
*/
inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
/**
* <p>The maximum number of results to return with this call.</p>
*/
inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
/**
* <p>The maximum number of results to return with this call.</p>
*/
inline DescribeTargetGroupsRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
private:
Aws::String m_loadBalancerArn;
bool m_loadBalancerArnHasBeenSet;
Aws::Vector<Aws::String> m_targetGroupArns;
bool m_targetGroupArnsHasBeenSet;
Aws::Vector<Aws::String> m_names;
bool m_namesHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
int m_pageSize;
bool m_pageSizeHasBeenSet;
};
} // namespace Model
} // namespace ElasticLoadBalancingv2
} // namespace Aws