/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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(); }