/** * 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 DescribeLoadBalancersRequest : public ElasticLoadBalancingv2Request { public: AWS_ELASTICLOADBALANCINGV2_API DescribeLoadBalancersRequest(); // 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 "DescribeLoadBalancers"; } AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override; protected: AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline const Aws::Vector& GetLoadBalancerArns() const{ return m_loadBalancerArns; } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline bool LoadBalancerArnsHasBeenSet() const { return m_loadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline void SetLoadBalancerArns(const Aws::Vector& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = value; } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline void SetLoadBalancerArns(Aws::Vector&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline DescribeLoadBalancersRequest& WithLoadBalancerArns(const Aws::Vector& value) { SetLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline DescribeLoadBalancersRequest& WithLoadBalancerArns(Aws::Vector&& value) { SetLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerArns(const Aws::String& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerArns(Aws::String&& value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the load balancers. You can specify up to * 20 load balancers in a single call.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerArns(const char* value) { m_loadBalancerArnsHasBeenSet = true; m_loadBalancerArns.push_back(value); return *this; } /** *

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

*/ inline DescribeLoadBalancersRequest& 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 DescribeLoadBalancersRequest& 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 DescribeLoadBalancersRequest& 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 DescribeLoadBalancersRequest& 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 DescribeLoadBalancersRequest& WithPageSize(int value) { SetPageSize(value); return *this;} private: Aws::Vector m_loadBalancerArns; bool m_loadBalancerArnsHasBeenSet = 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