/** * 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 Textract { namespace Model { DocumentMetadata::DocumentMetadata() : m_pages(0), m_pagesHasBeenSet(false) { } DocumentMetadata::DocumentMetadata(JsonView jsonValue) : m_pages(0), m_pagesHasBeenSet(false) { *this = jsonValue; } DocumentMetadata& DocumentMetadata::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Pages")) { m_pages = jsonValue.GetInteger("Pages"); m_pagesHasBeenSet = true; } return *this; } JsonValue DocumentMetadata::Jsonize() const { JsonValue payload; if(m_pagesHasBeenSet) { payload.WithInteger("Pages", m_pages); } return payload; } } // namespace Model } // namespace Textract } // namespace Aws