/** * 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 EntityResolution { namespace Model { ResolutionTechniques::ResolutionTechniques() : m_resolutionType(ResolutionType::NOT_SET), m_resolutionTypeHasBeenSet(false), m_ruleBasedPropertiesHasBeenSet(false) { } ResolutionTechniques::ResolutionTechniques(JsonView jsonValue) : m_resolutionType(ResolutionType::NOT_SET), m_resolutionTypeHasBeenSet(false), m_ruleBasedPropertiesHasBeenSet(false) { *this = jsonValue; } ResolutionTechniques& ResolutionTechniques::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("resolutionType")) { m_resolutionType = ResolutionTypeMapper::GetResolutionTypeForName(jsonValue.GetString("resolutionType")); m_resolutionTypeHasBeenSet = true; } if(jsonValue.ValueExists("ruleBasedProperties")) { m_ruleBasedProperties = jsonValue.GetObject("ruleBasedProperties"); m_ruleBasedPropertiesHasBeenSet = true; } return *this; } JsonValue ResolutionTechniques::Jsonize() const { JsonValue payload; if(m_resolutionTypeHasBeenSet) { payload.WithString("resolutionType", ResolutionTypeMapper::GetNameForResolutionType(m_resolutionType)); } if(m_ruleBasedPropertiesHasBeenSet) { payload.WithObject("ruleBasedProperties", m_ruleBasedProperties.Jsonize()); } return payload; } } // namespace Model } // namespace EntityResolution } // namespace Aws