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

65 lines
1.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/AddThingToThingGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
AddThingToThingGroupRequest::AddThingToThingGroupRequest() :
m_thingGroupNameHasBeenSet(false),
m_thingGroupArnHasBeenSet(false),
m_thingNameHasBeenSet(false),
m_thingArnHasBeenSet(false),
m_overrideDynamicGroups(false),
m_overrideDynamicGroupsHasBeenSet(false)
{
}
Aws::String AddThingToThingGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_thingGroupNameHasBeenSet)
{
payload.WithString("thingGroupName", m_thingGroupName);
}
if(m_thingGroupArnHasBeenSet)
{
payload.WithString("thingGroupArn", m_thingGroupArn);
}
if(m_thingNameHasBeenSet)
{
payload.WithString("thingName", m_thingName);
}
if(m_thingArnHasBeenSet)
{
payload.WithString("thingArn", m_thingArn);
}
if(m_overrideDynamicGroupsHasBeenSet)
{
payload.WithBool("overrideDynamicGroups", m_overrideDynamicGroups);
}
return payload.View().WriteReadable();
}