/** * 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 ElasticLoadBalancing { namespace Model { /** *

Contains the parameters for DescribeLoadBalancers.

See Also:

* AWS * API Reference

*/ class DescribeLoadBalancersRequest : public ElasticLoadBalancingRequest { public: AWS_ELASTICLOADBALANCING_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_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override; protected: AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The names of the load balancers.

*/ inline const Aws::Vector& GetLoadBalancerNames() const{ return m_loadBalancerNames; } /** *

The names of the load balancers.

*/ inline bool LoadBalancerNamesHasBeenSet() const { return m_loadBalancerNamesHasBeenSet; } /** *

The names of the load balancers.

*/ inline void SetLoadBalancerNames(const Aws::Vector& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = value; } /** *

The names of the load balancers.

*/ inline void SetLoadBalancerNames(Aws::Vector&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = std::move(value); } /** *

The names of the load balancers.

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

The names of the load balancers.

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

The names of the load balancers.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerNames(const Aws::String& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(value); return *this; } /** *

The names of the load balancers.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerNames(Aws::String&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(std::move(value)); return *this; } /** *

The names of the load balancers.

*/ inline DescribeLoadBalancersRequest& AddLoadBalancerNames(const char* value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.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 (a number from 1 to * 400). The default is 400.

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

The maximum number of results to return with this call (a number from 1 to * 400). The default is 400.

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

The maximum number of results to return with this call (a number from 1 to * 400). The default is 400.

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

The maximum number of results to return with this call (a number from 1 to * 400). The default is 400.

*/ inline DescribeLoadBalancersRequest& WithPageSize(int value) { SetPageSize(value); return *this;} private: Aws::Vector m_loadBalancerNames; bool m_loadBalancerNamesHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_pageSize; bool m_pageSizeHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws