/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ForecastService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateForecastExportJobRequest::CreateForecastExportJobRequest() : m_forecastExportJobNameHasBeenSet(false), m_forecastArnHasBeenSet(false), m_destinationHasBeenSet(false), m_tagsHasBeenSet(false), m_formatHasBeenSet(false) { } Aws::String CreateForecastExportJobRequest::SerializePayload() const { JsonValue payload; if(m_forecastExportJobNameHasBeenSet) { payload.WithString("ForecastExportJobName", m_forecastExportJobName); } if(m_forecastArnHasBeenSet) { payload.WithString("ForecastArn", m_forecastArn); } if(m_destinationHasBeenSet) { payload.WithObject("Destination", m_destination.Jsonize()); } if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("Tags", std::move(tagsJsonList)); } if(m_formatHasBeenSet) { payload.WithString("Format", m_format); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateForecastExportJobRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonForecast.CreateForecastExportJob")); return headers; }