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

90 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rekognition/model/HumanLoopConfig.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
{
HumanLoopConfig::HumanLoopConfig() :
m_humanLoopNameHasBeenSet(false),
m_flowDefinitionArnHasBeenSet(false),
m_dataAttributesHasBeenSet(false)
{
}
HumanLoopConfig::HumanLoopConfig(JsonView jsonValue) :
m_humanLoopNameHasBeenSet(false),
m_flowDefinitionArnHasBeenSet(false),
m_dataAttributesHasBeenSet(false)
{
*this = jsonValue;
}
HumanLoopConfig& HumanLoopConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("HumanLoopName"))
{
m_humanLoopName = jsonValue.GetString("HumanLoopName");
m_humanLoopNameHasBeenSet = true;
}
if(jsonValue.ValueExists("FlowDefinitionArn"))
{
m_flowDefinitionArn = jsonValue.GetString("FlowDefinitionArn");
m_flowDefinitionArnHasBeenSet = true;
}
if(jsonValue.ValueExists("DataAttributes"))
{
m_dataAttributes = jsonValue.GetObject("DataAttributes");
m_dataAttributesHasBeenSet = true;
}
return *this;
}
JsonValue HumanLoopConfig::Jsonize() const
{
JsonValue payload;
if(m_humanLoopNameHasBeenSet)
{
payload.WithString("HumanLoopName", m_humanLoopName);
}
if(m_flowDefinitionArnHasBeenSet)
{
payload.WithString("FlowDefinitionArn", m_flowDefinitionArn);
}
if(m_dataAttributesHasBeenSet)
{
payload.WithObject("DataAttributes", m_dataAttributes.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Rekognition
} // namespace Aws