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-macie2/source/model/CustomDetection.cpp

92 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/macie2/model/CustomDetection.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Macie2
{
namespace Model
{
CustomDetection::CustomDetection() :
m_arnHasBeenSet(false),
m_count(0),
m_countHasBeenSet(false),
m_nameHasBeenSet(false)
{
}
CustomDetection::CustomDetection(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_count(0),
m_countHasBeenSet(false),
m_nameHasBeenSet(false)
{
*this = jsonValue;
}
CustomDetection& CustomDetection::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("count"))
{
m_count = jsonValue.GetInt64("count");
m_countHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
return *this;
}
JsonValue CustomDetection::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_countHasBeenSet)
{
payload.WithInt64("count", m_count);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
return payload;
}
} // namespace Model
} // namespace Macie2
} // namespace Aws