/** * 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 Comprehend { namespace Model { /** */ class ListDatasetsRequest : public ComprehendRequest { public: AWS_COMPREHEND_API ListDatasetsRequest(); // 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 "ListDatasets"; } AWS_COMPREHEND_API Aws::String SerializePayload() const override; AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline const Aws::String& GetFlywheelArn() const{ return m_flywheelArn; } /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline void SetFlywheelArn(const Aws::String& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = value; } /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline void SetFlywheelArn(Aws::String&& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline void SetFlywheelArn(const char* value) { m_flywheelArnHasBeenSet = true; m_flywheelArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline ListDatasetsRequest& WithFlywheelArn(const Aws::String& value) { SetFlywheelArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline ListDatasetsRequest& WithFlywheelArn(Aws::String&& value) { SetFlywheelArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel.

*/ inline ListDatasetsRequest& WithFlywheelArn(const char* value) { SetFlywheelArn(value); return *this;} /** *

Filters the datasets to be returned in the response.

*/ inline const DatasetFilter& GetFilter() const{ return m_filter; } /** *

Filters the datasets to be returned in the response.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

Filters the datasets to be returned in the response.

*/ inline void SetFilter(const DatasetFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

Filters the datasets to be returned in the response.

*/ inline void SetFilter(DatasetFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

Filters the datasets to be returned in the response.

*/ inline ListDatasetsRequest& WithFilter(const DatasetFilter& value) { SetFilter(value); return *this;} /** *

Filters the datasets to be returned in the response.

*/ inline ListDatasetsRequest& WithFilter(DatasetFilter&& value) { SetFilter(std::move(value)); return *this;} /** *

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Identifies the next page of results to return.

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

Maximum number of results to return in a response. The default is 100.

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

Maximum number of results to return in a response. The default is 100.

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

Maximum number of results to return in a response. The default is 100.

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

Maximum number of results to return in a response. The default is 100.

*/ inline ListDatasetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_flywheelArn; bool m_flywheelArnHasBeenSet = false; DatasetFilter m_filter; bool m_filterHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws