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/source/model/SearchIndexRequest.cpp

65 lines
1.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/SearchIndexRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
SearchIndexRequest::SearchIndexRequest() :
m_indexNameHasBeenSet(false),
m_queryStringHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_queryVersionHasBeenSet(false)
{
}
Aws::String SearchIndexRequest::SerializePayload() const
{
JsonValue payload;
if(m_indexNameHasBeenSet)
{
payload.WithString("indexName", m_indexName);
}
if(m_queryStringHasBeenSet)
{
payload.WithString("queryString", m_queryString);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
if(m_queryVersionHasBeenSet)
{
payload.WithString("queryVersion", m_queryVersion);
}
return payload.View().WriteReadable();
}