/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ElasticLoadBalancingv2 { namespace Model { /** */ class DescribeTargetGroupsRequest : public ElasticLoadBalancingv2Request { public: AWS_ELASTICLOADBALANCINGV2_API 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_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override; protected: AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; } /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; } /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline DescribeTargetGroupsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the load balancer.

*/ inline DescribeTargetGroupsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;} /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline const Aws::Vector& GetTargetGroupArns() const{ return m_targetGroupArns; } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline bool TargetGroupArnsHasBeenSet() const { return m_targetGroupArnsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline void SetTargetGroupArns(const Aws::Vector& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = value; } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline void SetTargetGroupArns(Aws::Vector&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns = std::move(value); } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline DescribeTargetGroupsRequest& WithTargetGroupArns(const Aws::Vector& value) { SetTargetGroupArns(value); return *this;} /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline DescribeTargetGroupsRequest& WithTargetGroupArns(Aws::Vector&& value) { SetTargetGroupArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline DescribeTargetGroupsRequest& AddTargetGroupArns(const Aws::String& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline DescribeTargetGroupsRequest& AddTargetGroupArns(Aws::String&& value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the target groups.

*/ inline DescribeTargetGroupsRequest& AddTargetGroupArns(const char* value) { m_targetGroupArnsHasBeenSet = true; m_targetGroupArns.push_back(value); return *this; } /** *

The names of the target groups.

*/ inline const Aws::Vector& GetNames() const{ return m_names; } /** *

The names of the target groups.

*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *

The names of the target groups.

*/ inline void SetNames(const Aws::Vector& value) { m_namesHasBeenSet = true; m_names = value; } /** *

The names of the target groups.

*/ inline void SetNames(Aws::Vector&& value) { m_namesHasBeenSet = true; m_names = std::move(value); } /** *

The names of the target groups.

*/ inline DescribeTargetGroupsRequest& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

The names of the target groups.

*/ inline DescribeTargetGroupsRequest& WithNames(Aws::Vector&& value) { SetNames(std::move(value)); return *this;} /** *

The names of the target groups.

*/ inline DescribeTargetGroupsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

The names of the target groups.

*/ inline DescribeTargetGroupsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; } /** *

The names of the target groups.

*/ inline DescribeTargetGroupsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeTargetGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeTargetGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The marker for the next set of results. (You received this marker from a * previous call.)

*/ inline DescribeTargetGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The maximum number of results to return with this call.

*/ inline int GetPageSize() const{ return m_pageSize; } /** *

The maximum number of results to return with this call.

*/ inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } /** *

The maximum number of results to return with this call.

*/ inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** *

The maximum number of results to return with this call.

*/ inline DescribeTargetGroupsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} private: Aws::String m_loadBalancerArn; bool m_loadBalancerArnHasBeenSet = false; Aws::Vector m_targetGroupArns; bool m_targetGroupArnsHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_pageSize; bool m_pageSizeHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws