50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/iot-data/model/GetThingShadowResult.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/HashingUtils.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::IoTDataPlane::Model;
|
|
using namespace Aws::Utils::Stream;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
GetThingShadowResult::GetThingShadowResult()
|
|
{
|
|
}
|
|
|
|
GetThingShadowResult::GetThingShadowResult(GetThingShadowResult&& toMove) :
|
|
m_payload(std::move(toMove.m_payload))
|
|
{
|
|
}
|
|
|
|
GetThingShadowResult& GetThingShadowResult::operator=(GetThingShadowResult&& toMove)
|
|
{
|
|
if(this == &toMove)
|
|
{
|
|
return *this;
|
|
}
|
|
|
|
m_payload = std::move(toMove.m_payload);
|
|
|
|
return *this;
|
|
}
|
|
|
|
GetThingShadowResult::GetThingShadowResult(Aws::AmazonWebServiceResult<ResponseStream>&& result)
|
|
{
|
|
*this = std::move(result);
|
|
}
|
|
|
|
GetThingShadowResult& GetThingShadowResult::operator =(Aws::AmazonWebServiceResult<ResponseStream>&& result)
|
|
{
|
|
m_payload = result.TakeOwnershipOfPayload();
|
|
|
|
return *this;
|
|
}
|