/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LookoutEquipment::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartDataIngestionJobRequest::StartDataIngestionJobRequest() : m_datasetNameHasBeenSet(false), m_ingestionInputConfigurationHasBeenSet(false), m_roleArnHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String StartDataIngestionJobRequest::SerializePayload() const { JsonValue payload; if(m_datasetNameHasBeenSet) { payload.WithString("DatasetName", m_datasetName); } if(m_ingestionInputConfigurationHasBeenSet) { payload.WithObject("IngestionInputConfiguration", m_ingestionInputConfiguration.Jsonize()); } if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartDataIngestionJobRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSLookoutEquipmentFrontendService.StartDataIngestionJob")); return headers; }