/** * 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 IoT { namespace Model { /** */ class SearchIndexRequest : public IoTRequest { public: AWS_IOT_API SearchIndexRequest(); // 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 "SearchIndex"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The search index name.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The search index name.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The search index name.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The search index name.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The search index name.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The search index name.

*/ inline SearchIndexRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The search index name.

*/ inline SearchIndexRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The search index name.

*/ inline SearchIndexRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline SearchIndexRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline SearchIndexRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The search query string. For more information about the search query syntax, * see Query * syntax.

*/ inline SearchIndexRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The token used to get the next set of results, or null if there * are no additional results.

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

The maximum number of results to return at one time.

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

The maximum number of results to return at one time.

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

The maximum number of results to return at one time.

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

The maximum number of results to return at one time.

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

The query version.

*/ inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; } /** *

The query version.

*/ inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; } /** *

The query version.

*/ inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; } /** *

The query version.

*/ inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); } /** *

The query version.

*/ inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); } /** *

The query version.

*/ inline SearchIndexRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;} /** *

The query version.

*/ inline SearchIndexRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;} /** *

The query version.

*/ inline SearchIndexRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_queryVersion; bool m_queryVersionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws