/** * 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 LookoutEquipment { namespace Model { /** */ class ListModelsRequest : public LookoutEquipmentRequest { public: AWS_LOOKOUTEQUIPMENT_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_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override; AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

An opaque pagination token indicating where to continue the listing of ML * models.

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

Specifies the maximum number of ML models to list.

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

Specifies the maximum number of ML models to list.

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

Specifies the maximum number of ML models to list.

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

Specifies the maximum number of ML models to list.

*/ inline ListModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The status of the ML model.

*/ inline const ModelStatus& GetStatus() const{ return m_status; } /** *

The status of the ML model.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the ML model.

*/ inline void SetStatus(const ModelStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the ML model.

*/ inline void SetStatus(ModelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the ML model.

*/ inline ListModelsRequest& WithStatus(const ModelStatus& value) { SetStatus(value); return *this;} /** *

The status of the ML model.

*/ inline ListModelsRequest& WithStatus(ModelStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The beginning of the name of the ML models being listed.

*/ inline const Aws::String& GetModelNameBeginsWith() const{ return m_modelNameBeginsWith; } /** *

The beginning of the name of the ML models being listed.

*/ inline bool ModelNameBeginsWithHasBeenSet() const { return m_modelNameBeginsWithHasBeenSet; } /** *

The beginning of the name of the ML models being listed.

*/ inline void SetModelNameBeginsWith(const Aws::String& value) { m_modelNameBeginsWithHasBeenSet = true; m_modelNameBeginsWith = value; } /** *

The beginning of the name of the ML models being listed.

*/ inline void SetModelNameBeginsWith(Aws::String&& value) { m_modelNameBeginsWithHasBeenSet = true; m_modelNameBeginsWith = std::move(value); } /** *

The beginning of the name of the ML models being listed.

*/ inline void SetModelNameBeginsWith(const char* value) { m_modelNameBeginsWithHasBeenSet = true; m_modelNameBeginsWith.assign(value); } /** *

The beginning of the name of the ML models being listed.

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

The beginning of the name of the ML models being listed.

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

The beginning of the name of the ML models being listed.

*/ inline ListModelsRequest& WithModelNameBeginsWith(const char* value) { SetModelNameBeginsWith(value); return *this;} /** *

The beginning of the name of the dataset of the ML models to be listed.

*/ inline const Aws::String& GetDatasetNameBeginsWith() const{ return m_datasetNameBeginsWith; } /** *

The beginning of the name of the dataset of the ML models to be listed.

*/ inline bool DatasetNameBeginsWithHasBeenSet() const { return m_datasetNameBeginsWithHasBeenSet; } /** *

The beginning of the name of the dataset of the ML models to be listed.

*/ inline void SetDatasetNameBeginsWith(const Aws::String& value) { m_datasetNameBeginsWithHasBeenSet = true; m_datasetNameBeginsWith = value; } /** *

The beginning of the name of the dataset of the ML models to be listed.

*/ inline void SetDatasetNameBeginsWith(Aws::String&& value) { m_datasetNameBeginsWithHasBeenSet = true; m_datasetNameBeginsWith = std::move(value); } /** *

The beginning of the name of the dataset of the ML models to be listed.

*/ inline void SetDatasetNameBeginsWith(const char* value) { m_datasetNameBeginsWithHasBeenSet = true; m_datasetNameBeginsWith.assign(value); } /** *

The beginning of the name of the dataset of the ML models to be listed.

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

The beginning of the name of the dataset of the ML models to be listed.

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

The beginning of the name of the dataset of the ML models to be listed.

*/ inline ListModelsRequest& WithDatasetNameBeginsWith(const char* value) { SetDatasetNameBeginsWith(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; ModelStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_modelNameBeginsWith; bool m_modelNameBeginsWithHasBeenSet = false; Aws::String m_datasetNameBeginsWith; bool m_datasetNameBeginsWithHasBeenSet = false; }; } // namespace Model } // namespace LookoutEquipment } // namespace Aws