/** * 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 { DocumentLocation::DocumentLocation() : m_s3ObjectHasBeenSet(false) { } DocumentLocation::DocumentLocation(JsonView jsonValue) : m_s3ObjectHasBeenSet(false) { *this = jsonValue; } DocumentLocation& DocumentLocation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("S3Object")) { m_s3Object = jsonValue.GetObject("S3Object"); m_s3ObjectHasBeenSet = true; } return *this; } JsonValue DocumentLocation::Jsonize() const { JsonValue payload; if(m_s3ObjectHasBeenSet) { payload.WithObject("S3Object", m_s3Object.Jsonize()); } return payload; } } // namespace Model } // namespace Textract } // namespace Aws