This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codebuild/source/model/ReportExportConfig.cpp

76 lines
1.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codebuild/model/ReportExportConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
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