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-rekognition/source/model/TestingDataResult.cpp

75 lines
1.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rekognition/model/TestingDataResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Rekognition
{
namespace Model
{
TestingDataResult::TestingDataResult() :
m_inputHasBeenSet(false),
m_outputHasBeenSet(false)
{
}
TestingDataResult::TestingDataResult(JsonView jsonValue) :
m_inputHasBeenSet(false),
m_outputHasBeenSet(false)
{
*this = jsonValue;
}
TestingDataResult& TestingDataResult::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Input"))
{
m_input = jsonValue.GetObject("Input");
m_inputHasBeenSet = true;
}
if(jsonValue.ValueExists("Output"))
{
m_output = jsonValue.GetObject("Output");
m_outputHasBeenSet = true;
}
return *this;
}
JsonValue TestingDataResult::Jsonize() const
{
JsonValue payload;
if(m_inputHasBeenSet)
{
payload.WithObject("Input", m_input.Jsonize());
}
if(m_outputHasBeenSet)
{
payload.WithObject("Output", m_output.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Rekognition
} // namespace Aws