/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::IoTSiteWise::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws::Http; DeleteTimeSeriesRequest::DeleteTimeSeriesRequest() : m_aliasHasBeenSet(false), m_assetIdHasBeenSet(false), m_propertyIdHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String DeleteTimeSeriesRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } return payload.View().WriteReadable(); } void DeleteTimeSeriesRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_aliasHasBeenSet) { ss << m_alias; uri.AddQueryStringParameter("alias", ss.str()); ss.str(""); } if(m_assetIdHasBeenSet) { ss << m_assetId; uri.AddQueryStringParameter("assetId", ss.str()); ss.str(""); } if(m_propertyIdHasBeenSet) { ss << m_propertyId; uri.AddQueryStringParameter("propertyId", ss.str()); ss.str(""); } }