/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::IoTTwinMaker::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetPropertyValueRequest::GetPropertyValueRequest() : m_componentNameHasBeenSet(false), m_componentTypeIdHasBeenSet(false), m_entityIdHasBeenSet(false), m_selectedPropertiesHasBeenSet(false), m_workspaceIdHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_propertyGroupNameHasBeenSet(false), m_tabularConditionsHasBeenSet(false) { } Aws::String GetPropertyValueRequest::SerializePayload() const { JsonValue payload; if(m_componentNameHasBeenSet) { payload.WithString("componentName", m_componentName); } if(m_componentTypeIdHasBeenSet) { payload.WithString("componentTypeId", m_componentTypeId); } if(m_entityIdHasBeenSet) { payload.WithString("entityId", m_entityId); } if(m_selectedPropertiesHasBeenSet) { Aws::Utils::Array selectedPropertiesJsonList(m_selectedProperties.size()); for(unsigned selectedPropertiesIndex = 0; selectedPropertiesIndex < selectedPropertiesJsonList.GetLength(); ++selectedPropertiesIndex) { selectedPropertiesJsonList[selectedPropertiesIndex].AsString(m_selectedProperties[selectedPropertiesIndex]); } payload.WithArray("selectedProperties", std::move(selectedPropertiesJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_propertyGroupNameHasBeenSet) { payload.WithString("propertyGroupName", m_propertyGroupName); } if(m_tabularConditionsHasBeenSet) { payload.WithObject("tabularConditions", m_tabularConditions.Jsonize()); } return payload.View().WriteReadable(); }