/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::AlexaForBusiness::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateBusinessReportScheduleRequest::UpdateBusinessReportScheduleRequest() : m_scheduleArnHasBeenSet(false), m_s3BucketNameHasBeenSet(false), m_s3KeyPrefixHasBeenSet(false), m_format(BusinessReportFormat::NOT_SET), m_formatHasBeenSet(false), m_scheduleNameHasBeenSet(false), m_recurrenceHasBeenSet(false) { } Aws::String UpdateBusinessReportScheduleRequest::SerializePayload() const { JsonValue payload; if(m_scheduleArnHasBeenSet) { payload.WithString("ScheduleArn", m_scheduleArn); } if(m_s3BucketNameHasBeenSet) { payload.WithString("S3BucketName", m_s3BucketName); } if(m_s3KeyPrefixHasBeenSet) { payload.WithString("S3KeyPrefix", m_s3KeyPrefix); } if(m_formatHasBeenSet) { payload.WithString("Format", BusinessReportFormatMapper::GetNameForBusinessReportFormat(m_format)); } if(m_scheduleNameHasBeenSet) { payload.WithString("ScheduleName", m_scheduleName); } if(m_recurrenceHasBeenSet) { payload.WithObject("Recurrence", m_recurrence.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateBusinessReportScheduleRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AlexaForBusiness.UpdateBusinessReportSchedule")); return headers; }