This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iot/include/aws/iot/model/SearchIndexRequest.h

248 lines
7.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/IoTRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT
{
namespace Model
{
/**
*/
class AWS_IOT_API SearchIndexRequest : public IoTRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The search index name.</p>
*/
inline const Aws::String& GetIndexName() const{ return m_indexName; }
/**
* <p>The search index name.</p>
*/
inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
/**
* <p>The search index name.</p>
*/
inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
/**
* <p>The search index name.</p>
*/
inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
/**
* <p>The search index name.</p>
*/
inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
/**
* <p>The search index name.</p>
*/
inline SearchIndexRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
/**
* <p>The search index name.</p>
*/
inline SearchIndexRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
/**
* <p>The search index name.</p>
*/
inline SearchIndexRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
/**
* <p>The search query string.</p>
*/
inline const Aws::String& GetQueryString() const{ return m_queryString; }
/**
* <p>The search query string.</p>
*/
inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
/**
* <p>The search query string.</p>
*/
inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
/**
* <p>The search query string.</p>
*/
inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
/**
* <p>The search query string.</p>
*/
inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
/**
* <p>The search query string.</p>
*/
inline SearchIndexRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
/**
* <p>The search query string.</p>
*/
inline SearchIndexRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
/**
* <p>The search query string.</p>
*/
inline SearchIndexRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline SearchIndexRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline SearchIndexRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token used to get the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline SearchIndexRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline SearchIndexRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The query version.</p>
*/
inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
/**
* <p>The query version.</p>
*/
inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
/**
* <p>The query version.</p>
*/
inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
/**
* <p>The query version.</p>
*/
inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
/**
* <p>The query version.</p>
*/
inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
/**
* <p>The query version.</p>
*/
inline SearchIndexRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
/**
* <p>The query version.</p>
*/
inline SearchIndexRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
/**
* <p>The query version.</p>
*/
inline SearchIndexRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
private:
Aws::String m_indexName;
bool m_indexNameHasBeenSet;
Aws::String m_queryString;
bool m_queryStringHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_queryVersion;
bool m_queryVersionHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws