/** * 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 IoTSiteWise { namespace Model { BatchGetAssetPropertyValueEntry::BatchGetAssetPropertyValueEntry() : m_entryIdHasBeenSet(false), m_assetIdHasBeenSet(false), m_propertyIdHasBeenSet(false), m_propertyAliasHasBeenSet(false) { } BatchGetAssetPropertyValueEntry::BatchGetAssetPropertyValueEntry(JsonView jsonValue) : m_entryIdHasBeenSet(false), m_assetIdHasBeenSet(false), m_propertyIdHasBeenSet(false), m_propertyAliasHasBeenSet(false) { *this = jsonValue; } BatchGetAssetPropertyValueEntry& BatchGetAssetPropertyValueEntry::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("entryId")) { m_entryId = jsonValue.GetString("entryId"); m_entryIdHasBeenSet = true; } if(jsonValue.ValueExists("assetId")) { m_assetId = jsonValue.GetString("assetId"); m_assetIdHasBeenSet = true; } if(jsonValue.ValueExists("propertyId")) { m_propertyId = jsonValue.GetString("propertyId"); m_propertyIdHasBeenSet = true; } if(jsonValue.ValueExists("propertyAlias")) { m_propertyAlias = jsonValue.GetString("propertyAlias"); m_propertyAliasHasBeenSet = true; } return *this; } JsonValue BatchGetAssetPropertyValueEntry::Jsonize() const { JsonValue payload; if(m_entryIdHasBeenSet) { payload.WithString("entryId", m_entryId); } if(m_assetIdHasBeenSet) { payload.WithString("assetId", m_assetId); } if(m_propertyIdHasBeenSet) { payload.WithString("propertyId", m_propertyId); } if(m_propertyAliasHasBeenSet) { payload.WithString("propertyAlias", m_propertyAlias); } return payload; } } // namespace Model } // namespace IoTSiteWise } // namespace Aws