/** * 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 CustomerProfiles { namespace Model { S3ExportingLocation::S3ExportingLocation() : m_s3BucketNameHasBeenSet(false), m_s3KeyNameHasBeenSet(false) { } S3ExportingLocation::S3ExportingLocation(JsonView jsonValue) : m_s3BucketNameHasBeenSet(false), m_s3KeyNameHasBeenSet(false) { *this = jsonValue; } S3ExportingLocation& S3ExportingLocation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("S3BucketName")) { m_s3BucketName = jsonValue.GetString("S3BucketName"); m_s3BucketNameHasBeenSet = true; } if(jsonValue.ValueExists("S3KeyName")) { m_s3KeyName = jsonValue.GetString("S3KeyName"); m_s3KeyNameHasBeenSet = true; } return *this; } JsonValue S3ExportingLocation::Jsonize() const { JsonValue payload; if(m_s3BucketNameHasBeenSet) { payload.WithString("S3BucketName", m_s3BucketName); } if(m_s3KeyNameHasBeenSet) { payload.WithString("S3KeyName", m_s3KeyName); } return payload; } } // namespace Model } // namespace CustomerProfiles } // namespace Aws