/** * 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 CodeBuild { namespace Model { ReportExportConfig::ReportExportConfig() : m_exportConfigType(ReportExportConfigType::NOT_SET), m_exportConfigTypeHasBeenSet(false), m_s3DestinationHasBeenSet(false) { } ReportExportConfig::ReportExportConfig(JsonView jsonValue) : m_exportConfigType(ReportExportConfigType::NOT_SET), m_exportConfigTypeHasBeenSet(false), m_s3DestinationHasBeenSet(false) { *this = jsonValue; } ReportExportConfig& ReportExportConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("exportConfigType")) { m_exportConfigType = ReportExportConfigTypeMapper::GetReportExportConfigTypeForName(jsonValue.GetString("exportConfigType")); m_exportConfigTypeHasBeenSet = true; } if(jsonValue.ValueExists("s3Destination")) { m_s3Destination = jsonValue.GetObject("s3Destination"); m_s3DestinationHasBeenSet = true; } return *this; } JsonValue ReportExportConfig::Jsonize() const { JsonValue payload; if(m_exportConfigTypeHasBeenSet) { payload.WithString("exportConfigType", ReportExportConfigTypeMapper::GetNameForReportExportConfigType(m_exportConfigType)); } if(m_s3DestinationHasBeenSet) { payload.WithObject("s3Destination", m_s3Destination.Jsonize()); } return payload; } } // namespace Model } // namespace CodeBuild } // namespace Aws