/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::WorkMail::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CancelMailboxExportJobRequest::CancelMailboxExportJobRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_jobIdHasBeenSet(false), m_organizationIdHasBeenSet(false) { } Aws::String CancelMailboxExportJobRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("ClientToken", m_clientToken); } if(m_jobIdHasBeenSet) { payload.WithString("JobId", m_jobId); } if(m_organizationIdHasBeenSet) { payload.WithString("OrganizationId", m_organizationId); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CancelMailboxExportJobRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "WorkMailService.CancelMailboxExportJob")); return headers; }