/** * 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 CloudTrail { namespace Model { ImportSource::ImportSource() : m_s3HasBeenSet(false) { } ImportSource::ImportSource(JsonView jsonValue) : m_s3HasBeenSet(false) { *this = jsonValue; } ImportSource& ImportSource::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("S3")) { m_s3 = jsonValue.GetObject("S3"); m_s3HasBeenSet = true; } return *this; } JsonValue ImportSource::Jsonize() const { JsonValue payload; if(m_s3HasBeenSet) { payload.WithObject("S3", m_s3.Jsonize()); } return payload; } } // namespace Model } // namespace CloudTrail } // namespace Aws