/** * 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 Rekognition { namespace Model { RegionOfInterest::RegionOfInterest() : m_boundingBoxHasBeenSet(false) { } RegionOfInterest::RegionOfInterest(JsonView jsonValue) : m_boundingBoxHasBeenSet(false) { *this = jsonValue; } RegionOfInterest& RegionOfInterest::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("BoundingBox")) { m_boundingBox = jsonValue.GetObject("BoundingBox"); m_boundingBoxHasBeenSet = true; } return *this; } JsonValue RegionOfInterest::Jsonize() const { JsonValue payload; if(m_boundingBoxHasBeenSet) { payload.WithObject("BoundingBox", m_boundingBox.Jsonize()); } return payload; } } // namespace Model } // namespace Rekognition } // namespace Aws