/** * 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 MigrationHubStrategyRecommendations { namespace Model { Group::Group() : m_name(GroupName::NOT_SET), m_nameHasBeenSet(false), m_valueHasBeenSet(false) { } Group::Group(JsonView jsonValue) : m_name(GroupName::NOT_SET), m_nameHasBeenSet(false), m_valueHasBeenSet(false) { *this = jsonValue; } Group& Group::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = GroupNameMapper::GetGroupNameForName(jsonValue.GetString("name")); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("value")) { m_value = jsonValue.GetString("value"); m_valueHasBeenSet = true; } return *this; } JsonValue Group::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", GroupNameMapper::GetNameForGroupName(m_name)); } if(m_valueHasBeenSet) { payload.WithString("value", m_value); } return payload; } } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws