/** * 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 SageMaker { namespace Model { /** */ class ListModelMetadataRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListModelMetadataRequest(); // 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 "ListModelMetadata"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline const ModelMetadataSearchExpression& GetSearchExpression() const{ return m_searchExpression; } /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; } /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline void SetSearchExpression(const ModelMetadataSearchExpression& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = value; } /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline void SetSearchExpression(ModelMetadataSearchExpression&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::move(value); } /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline ListModelMetadataRequest& WithSearchExpression(const ModelMetadataSearchExpression& value) { SetSearchExpression(value); return *this;} /** *

One or more filters that searches for the specified resource or resources in * a search. All resource objects that satisfy the expression's condition are * included in the search results. Specify the Framework, FrameworkVersion, Domain * or Task to filter supported. Filter names and values are case-sensitive.

*/ inline ListModelMetadataRequest& WithSearchExpression(ModelMetadataSearchExpression&& value) { SetSearchExpression(std::move(value)); return *this;} /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline ListModelMetadataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline ListModelMetadataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the response to a previous ListModelMetadataResponse request * was truncated, the response includes a NextToken. To retrieve the next set of * model metadata, use the token in the next request.

*/ inline ListModelMetadataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of models to return in the response.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of models to return in the response.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of models to return in the response.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of models to return in the response.

*/ inline ListModelMetadataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: ModelMetadataSearchExpression m_searchExpression; bool m_searchExpressionHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws