/** * 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 CloudWatchEvidently { namespace Model { ProjectDataDelivery::ProjectDataDelivery() : m_cloudWatchLogsHasBeenSet(false), m_s3DestinationHasBeenSet(false) { } ProjectDataDelivery::ProjectDataDelivery(JsonView jsonValue) : m_cloudWatchLogsHasBeenSet(false), m_s3DestinationHasBeenSet(false) { *this = jsonValue; } ProjectDataDelivery& ProjectDataDelivery::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("cloudWatchLogs")) { m_cloudWatchLogs = jsonValue.GetObject("cloudWatchLogs"); m_cloudWatchLogsHasBeenSet = true; } if(jsonValue.ValueExists("s3Destination")) { m_s3Destination = jsonValue.GetObject("s3Destination"); m_s3DestinationHasBeenSet = true; } return *this; } JsonValue ProjectDataDelivery::Jsonize() const { JsonValue payload; if(m_cloudWatchLogsHasBeenSet) { payload.WithObject("cloudWatchLogs", m_cloudWatchLogs.Jsonize()); } if(m_s3DestinationHasBeenSet) { payload.WithObject("s3Destination", m_s3Destination.Jsonize()); } return payload; } } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws