/** * 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 LookoutforVision { namespace Model { /** */ class ListDatasetEntriesRequest : public LookoutforVisionRequest { public: AWS_LOOKOUTFORVISION_API ListDatasetEntriesRequest(); // 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 "ListDatasetEntries"; } 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 dataset that you want to list.

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

The name of the project that contains the dataset that you want to list.

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

The name of the project that contains the dataset 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 dataset 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 dataset 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 dataset that you want to list.

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

The name of the project that contains the dataset that you want to list.

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

The name of the project that contains the dataset that you want to list.

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

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline const Aws::String& GetDatasetType() const{ return m_datasetType; } /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; } /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline void SetDatasetType(const Aws::String& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; } /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline void SetDatasetType(Aws::String&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); } /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); } /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline ListDatasetEntriesRequest& WithDatasetType(const Aws::String& value) { SetDatasetType(value); return *this;} /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline ListDatasetEntriesRequest& WithDatasetType(Aws::String&& value) { SetDatasetType(std::move(value)); return *this;} /** *

The type of the dataset that you want to list. Specify train to * list the training dataset. Specify test to list the test dataset. * If you have a single dataset project, specify train.

*/ inline ListDatasetEntriesRequest& WithDatasetType(const char* value) { SetDatasetType(value); return *this;} /** *

Specify true to include labeled entries, otherwise specify * false. If you don't specify a value, Lookout for Vision returns all * entries.

*/ inline bool GetLabeled() const{ return m_labeled; } /** *

Specify true to include labeled entries, otherwise specify * false. If you don't specify a value, Lookout for Vision returns all * entries.

*/ inline bool LabeledHasBeenSet() const { return m_labeledHasBeenSet; } /** *

Specify true to include labeled entries, otherwise specify * false. If you don't specify a value, Lookout for Vision returns all * entries.

*/ inline void SetLabeled(bool value) { m_labeledHasBeenSet = true; m_labeled = value; } /** *

Specify true to include labeled entries, otherwise specify * false. If you don't specify a value, Lookout for Vision returns all * entries.

*/ inline ListDatasetEntriesRequest& WithLabeled(bool value) { SetLabeled(value); return *this;} /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline const Aws::String& GetAnomalyClass() const{ return m_anomalyClass; } /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline bool AnomalyClassHasBeenSet() const { return m_anomalyClassHasBeenSet; } /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline void SetAnomalyClass(const Aws::String& value) { m_anomalyClassHasBeenSet = true; m_anomalyClass = value; } /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline void SetAnomalyClass(Aws::String&& value) { m_anomalyClassHasBeenSet = true; m_anomalyClass = std::move(value); } /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline void SetAnomalyClass(const char* value) { m_anomalyClassHasBeenSet = true; m_anomalyClass.assign(value); } /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline ListDatasetEntriesRequest& WithAnomalyClass(const Aws::String& value) { SetAnomalyClass(value); return *this;} /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline ListDatasetEntriesRequest& WithAnomalyClass(Aws::String&& value) { SetAnomalyClass(std::move(value)); return *this;} /** *

Specify normal to include only normal images. Specify * anomaly to only include anomalous entries. If you don't specify a * value, Amazon Lookout for Vision returns normal and anomalous images.

*/ inline ListDatasetEntriesRequest& WithAnomalyClass(const char* value) { SetAnomalyClass(value); return *this;} /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline const Aws::Utils::DateTime& GetBeforeCreationDate() const{ return m_beforeCreationDate; } /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline bool BeforeCreationDateHasBeenSet() const { return m_beforeCreationDateHasBeenSet; } /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline void SetBeforeCreationDate(const Aws::Utils::DateTime& value) { m_beforeCreationDateHasBeenSet = true; m_beforeCreationDate = value; } /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline void SetBeforeCreationDate(Aws::Utils::DateTime&& value) { m_beforeCreationDateHasBeenSet = true; m_beforeCreationDate = std::move(value); } /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline ListDatasetEntriesRequest& WithBeforeCreationDate(const Aws::Utils::DateTime& value) { SetBeforeCreationDate(value); return *this;} /** *

Only includes entries before the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline ListDatasetEntriesRequest& WithBeforeCreationDate(Aws::Utils::DateTime&& value) { SetBeforeCreationDate(std::move(value)); return *this;} /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline const Aws::Utils::DateTime& GetAfterCreationDate() const{ return m_afterCreationDate; } /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline bool AfterCreationDateHasBeenSet() const { return m_afterCreationDateHasBeenSet; } /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline void SetAfterCreationDate(const Aws::Utils::DateTime& value) { m_afterCreationDateHasBeenSet = true; m_afterCreationDate = value; } /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline void SetAfterCreationDate(Aws::Utils::DateTime&& value) { m_afterCreationDateHasBeenSet = true; m_afterCreationDate = std::move(value); } /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline ListDatasetEntriesRequest& WithAfterCreationDate(const Aws::Utils::DateTime& value) { SetAfterCreationDate(value); return *this;} /** *

Only includes entries after the specified date in the response. For example, * 2020-06-23T00:00:00.

*/ inline ListDatasetEntriesRequest& WithAfterCreationDate(Aws::Utils::DateTime&& value) { SetAfterCreationDate(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 dataset * entries.

*/ 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 dataset * entries.

*/ 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 dataset * entries.

*/ 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 dataset * entries.

*/ 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 dataset * entries.

*/ 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 dataset * entries.

*/ inline ListDatasetEntriesRequest& 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 dataset * entries.

*/ inline ListDatasetEntriesRequest& 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 dataset * entries.

*/ inline ListDatasetEntriesRequest& 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 ListDatasetEntriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline const Aws::String& GetSourceRefContains() const{ return m_sourceRefContains; } /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline bool SourceRefContainsHasBeenSet() const { return m_sourceRefContainsHasBeenSet; } /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline void SetSourceRefContains(const Aws::String& value) { m_sourceRefContainsHasBeenSet = true; m_sourceRefContains = value; } /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline void SetSourceRefContains(Aws::String&& value) { m_sourceRefContainsHasBeenSet = true; m_sourceRefContains = std::move(value); } /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline void SetSourceRefContains(const char* value) { m_sourceRefContainsHasBeenSet = true; m_sourceRefContains.assign(value); } /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline ListDatasetEntriesRequest& WithSourceRefContains(const Aws::String& value) { SetSourceRefContains(value); return *this;} /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline ListDatasetEntriesRequest& WithSourceRefContains(Aws::String&& value) { SetSourceRefContains(std::move(value)); return *this;} /** *

Perform a "contains" search on the values of the source-ref key * within the dataset. For example a value of "IMG_17" returns all JSON Lines where * the source-ref key value matches *IMG_17*.

*/ inline ListDatasetEntriesRequest& WithSourceRefContains(const char* value) { SetSourceRefContains(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_datasetType; bool m_datasetTypeHasBeenSet = false; bool m_labeled; bool m_labeledHasBeenSet = false; Aws::String m_anomalyClass; bool m_anomalyClassHasBeenSet = false; Aws::Utils::DateTime m_beforeCreationDate; bool m_beforeCreationDateHasBeenSet = false; Aws::Utils::DateTime m_afterCreationDate; bool m_afterCreationDateHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_sourceRefContains; bool m_sourceRefContainsHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws