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

59 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotthingsgraph/model/AssociateEntityToThingRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTThingsGraph::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
AssociateEntityToThingRequest::AssociateEntityToThingRequest() :
m_thingNameHasBeenSet(false),
m_entityIdHasBeenSet(false),
m_namespaceVersion(0),
m_namespaceVersionHasBeenSet(false)
{
}
Aws::String AssociateEntityToThingRequest::SerializePayload() const
{
JsonValue payload;
if(m_thingNameHasBeenSet)
{
payload.WithString("thingName", m_thingName);
}
if(m_entityIdHasBeenSet)
{
payload.WithString("entityId", m_entityId);
}
if(m_namespaceVersionHasBeenSet)
{
payload.WithInt64("namespaceVersion", m_namespaceVersion);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection AssociateEntityToThingRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "IotThingsGraphFrontEndService.AssociateEntityToThing"));
return headers;
}