/** * 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 { StreamProcessorOutput::StreamProcessorOutput() : m_kinesisDataStreamHasBeenSet(false), m_s3DestinationHasBeenSet(false) { } StreamProcessorOutput::StreamProcessorOutput(JsonView jsonValue) : m_kinesisDataStreamHasBeenSet(false), m_s3DestinationHasBeenSet(false) { *this = jsonValue; } StreamProcessorOutput& StreamProcessorOutput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("KinesisDataStream")) { m_kinesisDataStream = jsonValue.GetObject("KinesisDataStream"); m_kinesisDataStreamHasBeenSet = true; } if(jsonValue.ValueExists("S3Destination")) { m_s3Destination = jsonValue.GetObject("S3Destination"); m_s3DestinationHasBeenSet = true; } return *this; } JsonValue StreamProcessorOutput::Jsonize() const { JsonValue payload; if(m_kinesisDataStreamHasBeenSet) { payload.WithObject("KinesisDataStream", m_kinesisDataStream.Jsonize()); } if(m_s3DestinationHasBeenSet) { payload.WithObject("S3Destination", m_s3Destination.Jsonize()); } return payload; } } // namespace Model } // namespace Rekognition } // namespace Aws