/** * 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 Personalize { namespace Model { S3DataConfig::S3DataConfig() : m_pathHasBeenSet(false), m_kmsKeyArnHasBeenSet(false) { } S3DataConfig::S3DataConfig(JsonView jsonValue) : m_pathHasBeenSet(false), m_kmsKeyArnHasBeenSet(false) { *this = jsonValue; } S3DataConfig& S3DataConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("path")) { m_path = jsonValue.GetString("path"); m_pathHasBeenSet = true; } if(jsonValue.ValueExists("kmsKeyArn")) { m_kmsKeyArn = jsonValue.GetString("kmsKeyArn"); m_kmsKeyArnHasBeenSet = true; } return *this; } JsonValue S3DataConfig::Jsonize() const { JsonValue payload; if(m_pathHasBeenSet) { payload.WithString("path", m_path); } if(m_kmsKeyArnHasBeenSet) { payload.WithString("kmsKeyArn", m_kmsKeyArn); } return payload; } } // namespace Model } // namespace Personalize } // namespace Aws