/** * 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 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