/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::MarketplaceCommerceAnalytics::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartSupportDataExportRequest::StartSupportDataExportRequest() : m_dataSetType(SupportDataSetType::NOT_SET), m_dataSetTypeHasBeenSet(false), m_fromDateHasBeenSet(false), m_roleNameArnHasBeenSet(false), m_destinationS3BucketNameHasBeenSet(false), m_destinationS3PrefixHasBeenSet(false), m_snsTopicArnHasBeenSet(false), m_customerDefinedValuesHasBeenSet(false) { } Aws::String StartSupportDataExportRequest::SerializePayload() const { JsonValue payload; if(m_dataSetTypeHasBeenSet) { payload.WithString("dataSetType", SupportDataSetTypeMapper::GetNameForSupportDataSetType(m_dataSetType)); } if(m_fromDateHasBeenSet) { payload.WithDouble("fromDate", m_fromDate.SecondsWithMSPrecision()); } if(m_roleNameArnHasBeenSet) { payload.WithString("roleNameArn", m_roleNameArn); } if(m_destinationS3BucketNameHasBeenSet) { payload.WithString("destinationS3BucketName", m_destinationS3BucketName); } if(m_destinationS3PrefixHasBeenSet) { payload.WithString("destinationS3Prefix", m_destinationS3Prefix); } if(m_snsTopicArnHasBeenSet) { payload.WithString("snsTopicArn", m_snsTopicArn); } if(m_customerDefinedValuesHasBeenSet) { JsonValue customerDefinedValuesJsonMap; for(auto& customerDefinedValuesItem : m_customerDefinedValues) { customerDefinedValuesJsonMap.WithString(customerDefinedValuesItem.first, customerDefinedValuesItem.second); } payload.WithObject("customerDefinedValues", std::move(customerDefinedValuesJsonMap)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection StartSupportDataExportRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MarketplaceCommerceAnalytics20150701.StartSupportDataExport")); return headers; }