/** * 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 Personalize { namespace Model { /** */ class ListRecommendersRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API ListRecommendersRequest(); // 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 "ListRecommenders"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline ListRecommendersRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline ListRecommendersRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Domain dataset group to list the * recommenders for. When a Domain dataset group is not specified, all the * recommenders associated with the account are listed.

*/ inline ListRecommendersRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} /** *

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

A token returned from the previous call to ListRecommenders for * getting the next set of recommenders (if they exist).

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

The maximum number of recommenders to return.

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

The maximum number of recommenders to return.

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

The maximum number of recommenders to return.

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

The maximum number of recommenders to return.

*/ inline ListRecommendersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws