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-dynamodb/source/model/FailureException.cpp

75 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dynamodb/model/FailureException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DynamoDB
{
namespace Model
{
FailureException::FailureException() :
m_exceptionNameHasBeenSet(false),
m_exceptionDescriptionHasBeenSet(false)
{
}
FailureException::FailureException(JsonView jsonValue) :
m_exceptionNameHasBeenSet(false),
m_exceptionDescriptionHasBeenSet(false)
{
*this = jsonValue;
}
FailureException& FailureException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ExceptionName"))
{
m_exceptionName = jsonValue.GetString("ExceptionName");
m_exceptionNameHasBeenSet = true;
}
if(jsonValue.ValueExists("ExceptionDescription"))
{
m_exceptionDescription = jsonValue.GetString("ExceptionDescription");
m_exceptionDescriptionHasBeenSet = true;
}
return *this;
}
JsonValue FailureException::Jsonize() const
{
JsonValue payload;
if(m_exceptionNameHasBeenSet)
{
payload.WithString("ExceptionName", m_exceptionName);
}
if(m_exceptionDescriptionHasBeenSet)
{
payload.WithString("ExceptionDescription", m_exceptionDescription);
}
return payload;
}
} // namespace Model
} // namespace DynamoDB
} // namespace Aws