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/UpdateDimensionRequest.cpp

42 lines
982 B
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/UpdateDimensionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateDimensionRequest::UpdateDimensionRequest() :
m_nameHasBeenSet(false),
m_stringValuesHasBeenSet(false)
{
}
Aws::String UpdateDimensionRequest::SerializePayload() const
{
JsonValue payload;
if(m_stringValuesHasBeenSet)
{
Array<JsonValue> stringValuesJsonList(m_stringValues.size());
for(unsigned stringValuesIndex = 0; stringValuesIndex < stringValuesJsonList.GetLength(); ++stringValuesIndex)
{
stringValuesJsonList[stringValuesIndex].AsString(m_stringValues[stringValuesIndex]);
}
payload.WithArray("stringValues", std::move(stringValuesJsonList));
}
return payload.View().WriteReadable();
}