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

120 lines
2.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/frauddetector/model/FieldValidationMessage.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
{
FieldValidationMessage::FieldValidationMessage() :
m_fieldNameHasBeenSet(false),
m_identifierHasBeenSet(false),
m_titleHasBeenSet(false),
m_contentHasBeenSet(false),
m_typeHasBeenSet(false)
{
}
FieldValidationMessage::FieldValidationMessage(JsonView jsonValue) :
m_fieldNameHasBeenSet(false),
m_identifierHasBeenSet(false),
m_titleHasBeenSet(false),
m_contentHasBeenSet(false),
m_typeHasBeenSet(false)
{
*this = jsonValue;
}
FieldValidationMessage& FieldValidationMessage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("fieldName"))
{
m_fieldName = jsonValue.GetString("fieldName");
m_fieldNameHasBeenSet = true;
}
if(jsonValue.ValueExists("identifier"))
{
m_identifier = jsonValue.GetString("identifier");
m_identifierHasBeenSet = true;
}
if(jsonValue.ValueExists("title"))
{
m_title = jsonValue.GetString("title");
m_titleHasBeenSet = true;
}
if(jsonValue.ValueExists("content"))
{
m_content = jsonValue.GetString("content");
m_contentHasBeenSet = true;
}
if(jsonValue.ValueExists("type"))
{
m_type = jsonValue.GetString("type");
m_typeHasBeenSet = true;
}
return *this;
}
JsonValue FieldValidationMessage::Jsonize() const
{
JsonValue payload;
if(m_fieldNameHasBeenSet)
{
payload.WithString("fieldName", m_fieldName);
}
if(m_identifierHasBeenSet)
{
payload.WithString("identifier", m_identifier);
}
if(m_titleHasBeenSet)
{
payload.WithString("title", m_title);
}
if(m_contentHasBeenSet)
{
payload.WithString("content", m_content);
}
if(m_typeHasBeenSet)
{
payload.WithString("type", m_type);
}
return payload;
}
} // namespace Model
} // namespace FraudDetector
} // namespace Aws