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-frauddetector/source/model/Detector.cpp

135 lines
2.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/frauddetector/model/Detector.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace FraudDetector
{
namespace Model
{
Detector::Detector() :
m_detectorIdHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_eventTypeNameHasBeenSet(false),
m_lastUpdatedTimeHasBeenSet(false),
m_createdTimeHasBeenSet(false),
m_arnHasBeenSet(false)
{
}
Detector::Detector(JsonView jsonValue) :
m_detectorIdHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_eventTypeNameHasBeenSet(false),
m_lastUpdatedTimeHasBeenSet(false),
m_createdTimeHasBeenSet(false),
m_arnHasBeenSet(false)
{
*this = jsonValue;
}
Detector& Detector::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("detectorId"))
{
m_detectorId = jsonValue.GetString("detectorId");
m_detectorIdHasBeenSet = true;
}
if(jsonValue.ValueExists("description"))
{
m_description = jsonValue.GetString("description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("eventTypeName"))
{
m_eventTypeName = jsonValue.GetString("eventTypeName");
m_eventTypeNameHasBeenSet = true;
}
if(jsonValue.ValueExists("lastUpdatedTime"))
{
m_lastUpdatedTime = jsonValue.GetString("lastUpdatedTime");
m_lastUpdatedTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("createdTime"))
{
m_createdTime = jsonValue.GetString("createdTime");
m_createdTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
return *this;
}
JsonValue Detector::Jsonize() const
{
JsonValue payload;
if(m_detectorIdHasBeenSet)
{
payload.WithString("detectorId", m_detectorId);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
if(m_eventTypeNameHasBeenSet)
{
payload.WithString("eventTypeName", m_eventTypeName);
}
if(m_lastUpdatedTimeHasBeenSet)
{
payload.WithString("lastUpdatedTime", m_lastUpdatedTime);
}
if(m_createdTimeHasBeenSet)
{
payload.WithString("createdTime", m_createdTime);
}
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload;
}
} // namespace Model
} // namespace FraudDetector
} // namespace Aws