/** * 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 AppSync { namespace Model { LambdaDataSourceConfig::LambdaDataSourceConfig() : m_lambdaFunctionArnHasBeenSet(false) { } LambdaDataSourceConfig::LambdaDataSourceConfig(JsonView jsonValue) : m_lambdaFunctionArnHasBeenSet(false) { *this = jsonValue; } LambdaDataSourceConfig& LambdaDataSourceConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("lambdaFunctionArn")) { m_lambdaFunctionArn = jsonValue.GetString("lambdaFunctionArn"); m_lambdaFunctionArnHasBeenSet = true; } return *this; } JsonValue LambdaDataSourceConfig::Jsonize() const { JsonValue payload; if(m_lambdaFunctionArnHasBeenSet) { payload.WithString("lambdaFunctionArn", m_lambdaFunctionArn); } return payload; } } // namespace Model } // namespace AppSync } // namespace Aws