/** * 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 LookoutMetrics { namespace Model { LambdaConfiguration::LambdaConfiguration() : m_roleArnHasBeenSet(false), m_lambdaArnHasBeenSet(false) { } LambdaConfiguration::LambdaConfiguration(JsonView jsonValue) : m_roleArnHasBeenSet(false), m_lambdaArnHasBeenSet(false) { *this = jsonValue; } LambdaConfiguration& LambdaConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("RoleArn")) { m_roleArn = jsonValue.GetString("RoleArn"); m_roleArnHasBeenSet = true; } if(jsonValue.ValueExists("LambdaArn")) { m_lambdaArn = jsonValue.GetString("LambdaArn"); m_lambdaArnHasBeenSet = true; } return *this; } JsonValue LambdaConfiguration::Jsonize() const { JsonValue payload; if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } if(m_lambdaArnHasBeenSet) { payload.WithString("LambdaArn", m_lambdaArn); } return payload; } } // namespace Model } // namespace LookoutMetrics } // namespace Aws