/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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