59 lines
1.2 KiB
C++
59 lines
1.2 KiB
C++
/**
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|