/** * 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 Http { class URI; } //namespace Http namespace Lambda { namespace Model { /** */ class ListFunctionsRequest : public LambdaRequest { public: AWS_LAMBDA_API ListFunctionsRequest(); // 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 "ListFunctions"; } AWS_LAMBDA_API Aws::String SerializePayload() const override; AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline const Aws::String& GetMasterRegion() const{ return m_masterRegion; } /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline bool MasterRegionHasBeenSet() const { return m_masterRegionHasBeenSet; } /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline void SetMasterRegion(const Aws::String& value) { m_masterRegionHasBeenSet = true; m_masterRegion = value; } /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline void SetMasterRegion(Aws::String&& value) { m_masterRegionHasBeenSet = true; m_masterRegion = std::move(value); } /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline void SetMasterRegion(const char* value) { m_masterRegionHasBeenSet = true; m_masterRegion.assign(value); } /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline ListFunctionsRequest& WithMasterRegion(const Aws::String& value) { SetMasterRegion(value); return *this;} /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline ListFunctionsRequest& WithMasterRegion(Aws::String&& value) { SetMasterRegion(std::move(value)); return *this;} /** *

For Lambda@Edge functions, the Amazon Web Services Region of the master * function. For example, us-east-1 filters the list of functions to * include only Lambda@Edge functions replicated from a master function in US East * (N. Virginia). If specified, you must set FunctionVersion to * ALL.

*/ inline ListFunctionsRequest& WithMasterRegion(const char* value) { SetMasterRegion(value); return *this;} /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline const FunctionVersion& GetFunctionVersion() const{ return m_functionVersion; } /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; } /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline void SetFunctionVersion(const FunctionVersion& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; } /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline void SetFunctionVersion(FunctionVersion&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); } /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline ListFunctionsRequest& WithFunctionVersion(const FunctionVersion& value) { SetFunctionVersion(value); return *this;} /** *

Set to ALL to include entries for all published versions of each * function.

*/ inline ListFunctionsRequest& WithFunctionVersion(FunctionVersion&& value) { SetFunctionVersion(std::move(value)); return *this;} /** *

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

Specify the pagination token that's returned by a previous request to * retrieve the next page of results.

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

The maximum number of functions to return in the response. Note that * ListFunctions returns a maximum of 50 items in each response, even * if you set the number higher.

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

The maximum number of functions to return in the response. Note that * ListFunctions returns a maximum of 50 items in each response, even * if you set the number higher.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

The maximum number of functions to return in the response. Note that * ListFunctions returns a maximum of 50 items in each response, even * if you set the number higher.

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

The maximum number of functions to return in the response. Note that * ListFunctions returns a maximum of 50 items in each response, even * if you set the number higher.

*/ inline ListFunctionsRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} private: Aws::String m_masterRegion; bool m_masterRegionHasBeenSet = false; FunctionVersion m_functionVersion; bool m_functionVersionHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_maxItems; bool m_maxItemsHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws