/** * 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 GreengrassV2 { namespace Model { ComponentVersionListItem::ComponentVersionListItem() : m_componentNameHasBeenSet(false), m_componentVersionHasBeenSet(false), m_arnHasBeenSet(false) { } ComponentVersionListItem::ComponentVersionListItem(JsonView jsonValue) : m_componentNameHasBeenSet(false), m_componentVersionHasBeenSet(false), m_arnHasBeenSet(false) { *this = jsonValue; } ComponentVersionListItem& ComponentVersionListItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("componentName")) { m_componentName = jsonValue.GetString("componentName"); m_componentNameHasBeenSet = true; } if(jsonValue.ValueExists("componentVersion")) { m_componentVersion = jsonValue.GetString("componentVersion"); m_componentVersionHasBeenSet = true; } if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } return *this; } JsonValue ComponentVersionListItem::Jsonize() const { JsonValue payload; if(m_componentNameHasBeenSet) { payload.WithString("componentName", m_componentName); } if(m_componentVersionHasBeenSet) { payload.WithString("componentVersion", m_componentVersion); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } return payload; } } // namespace Model } // namespace GreengrassV2 } // namespace Aws