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-qldb/source/model/S3ExportConfiguration.cpp

90 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/qldb/model/S3ExportConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace QLDB
{
namespace Model
{
S3ExportConfiguration::S3ExportConfiguration() :
m_bucketHasBeenSet(false),
m_prefixHasBeenSet(false),
m_encryptionConfigurationHasBeenSet(false)
{
}
S3ExportConfiguration::S3ExportConfiguration(JsonView jsonValue) :
m_bucketHasBeenSet(false),
m_prefixHasBeenSet(false),
m_encryptionConfigurationHasBeenSet(false)
{
*this = jsonValue;
}
S3ExportConfiguration& S3ExportConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Bucket"))
{
m_bucket = jsonValue.GetString("Bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("Prefix"))
{
m_prefix = jsonValue.GetString("Prefix");
m_prefixHasBeenSet = true;
}
if(jsonValue.ValueExists("EncryptionConfiguration"))
{
m_encryptionConfiguration = jsonValue.GetObject("EncryptionConfiguration");
m_encryptionConfigurationHasBeenSet = true;
}
return *this;
}
JsonValue S3ExportConfiguration::Jsonize() const
{
JsonValue payload;
if(m_bucketHasBeenSet)
{
payload.WithString("Bucket", m_bucket);
}
if(m_prefixHasBeenSet)
{
payload.WithString("Prefix", m_prefix);
}
if(m_encryptionConfigurationHasBeenSet)
{
payload.WithObject("EncryptionConfiguration", m_encryptionConfiguration.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace QLDB
} // namespace Aws