/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace LookoutforVision { namespace Model { /** */ class ListModelsRequest : public LookoutforVisionRequest { public: AWS_LOOKOUTFORVISION_API ListModelsRequest(); // 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 "ListModels"; } AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override; AWS_LOOKOUTFORVISION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the project that contains the model versions that you want to * list.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project that contains the model versions that you want to * list.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project that contains the model versions that you want to * list.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project that contains the model versions that you want to * list.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project that contains the model versions that you want to * list.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project that contains the model versions that you want to * list.

*/ inline ListModelsRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project that contains the model versions that you want to * list.

*/ inline ListModelsRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project that contains the model versions that you want to * list.

*/ inline ListModelsRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

If the previous response was incomplete (because there is more data to * retrieve), Amazon Lookout for Vision returns a pagination token in the response. * You can use this pagination token to retrieve the next set of models.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 100. If you specify a value greater than 100, a * ValidationException error occurs. The default value is 100.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 100. If you specify a value greater than 100, a * ValidationException error occurs. The default value is 100.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 100. If you specify a value greater than 100, a * ValidationException error occurs. The default value is 100.

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

The maximum number of results to return per paginated call. The largest value * you can specify is 100. If you specify a value greater than 100, a * ValidationException error occurs. The default value is 100.

*/ inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws