/** * 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 kendra { namespace Model { /** */ class ListThesauriRequest : public KendraRequest { public: AWS_KENDRA_API ListThesauriRequest(); // 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 "ListThesauri"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index with one or more thesauri.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index with one or more thesauri.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index with one or more thesauri.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index with one or more thesauri.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index with one or more thesauri.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index with one or more thesauri.

*/ inline ListThesauriRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index with one or more thesauri.

*/ inline ListThesauriRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index with one or more thesauri.

*/ inline ListThesauriRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

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

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

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

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

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

*/ 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 Kendra returns a pagination token in the response. You can use * this pagination token to retrieve the next set of thesauri * (ThesaurusSummaryItems).

*/ 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 Kendra returns a pagination token in the response. You can use * this pagination token to retrieve the next set of thesauri * (ThesaurusSummaryItems).

*/ 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 Kendra returns a pagination token in the response. You can use * this pagination token to retrieve the next set of thesauri * (ThesaurusSummaryItems).

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

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

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

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

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

The maximum number of thesauri to return.

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

The maximum number of thesauri to return.

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

The maximum number of thesauri to return.

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

The maximum number of thesauri to return.

*/ inline ListThesauriRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws