/** * 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 AmplifyUIBuilder { namespace Model { ComponentSummary::ComponentSummary() : m_appIdHasBeenSet(false), m_environmentNameHasBeenSet(false), m_idHasBeenSet(false), m_nameHasBeenSet(false), m_componentTypeHasBeenSet(false) { } ComponentSummary::ComponentSummary(JsonView jsonValue) : m_appIdHasBeenSet(false), m_environmentNameHasBeenSet(false), m_idHasBeenSet(false), m_nameHasBeenSet(false), m_componentTypeHasBeenSet(false) { *this = jsonValue; } ComponentSummary& ComponentSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("appId")) { m_appId = jsonValue.GetString("appId"); m_appIdHasBeenSet = true; } if(jsonValue.ValueExists("environmentName")) { m_environmentName = jsonValue.GetString("environmentName"); m_environmentNameHasBeenSet = true; } if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("componentType")) { m_componentType = jsonValue.GetString("componentType"); m_componentTypeHasBeenSet = true; } return *this; } JsonValue ComponentSummary::Jsonize() const { JsonValue payload; if(m_appIdHasBeenSet) { payload.WithString("appId", m_appId); } if(m_environmentNameHasBeenSet) { payload.WithString("environmentName", m_environmentName); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_componentTypeHasBeenSet) { payload.WithString("componentType", m_componentType); } return payload; } } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws