This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-alexaforbusiness/source/model/UpdateBusinessReportScheduleRequest.cpp

79 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/alexaforbusiness/model/UpdateBusinessReportScheduleRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
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;
}