/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/cloudsearchdomain/model/DocumentServiceException.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace CloudSearchDomain { namespace Model { DocumentServiceException::DocumentServiceException() : m_statusHasBeenSet(false), m_messageHasBeenSet(false) { } DocumentServiceException::DocumentServiceException(JsonView jsonValue) : m_statusHasBeenSet(false), m_messageHasBeenSet(false) { *this = jsonValue; } DocumentServiceException& DocumentServiceException::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("status")) { m_status = jsonValue.GetString("status"); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("message")) { m_message = jsonValue.GetString("message"); m_messageHasBeenSet = true; } return *this; } JsonValue DocumentServiceException::Jsonize() const { JsonValue payload; if(m_statusHasBeenSet) { payload.WithString("status", m_status); } if(m_messageHasBeenSet) { payload.WithString("message", m_message); } return payload; } } // namespace Model } // namespace CloudSearchDomain } // namespace Aws