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-codecommit/source/model/DeleteFileRequest.cpp

94 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codecommit/model/DeleteFileRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CodeCommit::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteFileRequest::DeleteFileRequest() :
m_repositoryNameHasBeenSet(false),
m_branchNameHasBeenSet(false),
m_filePathHasBeenSet(false),
m_parentCommitIdHasBeenSet(false),
m_keepEmptyFolders(false),
m_keepEmptyFoldersHasBeenSet(false),
m_commitMessageHasBeenSet(false),
m_nameHasBeenSet(false),
m_emailHasBeenSet(false)
{
}
Aws::String DeleteFileRequest::SerializePayload() const
{
JsonValue payload;
if(m_repositoryNameHasBeenSet)
{
payload.WithString("repositoryName", m_repositoryName);
}
if(m_branchNameHasBeenSet)
{
payload.WithString("branchName", m_branchName);
}
if(m_filePathHasBeenSet)
{
payload.WithString("filePath", m_filePath);
}
if(m_parentCommitIdHasBeenSet)
{
payload.WithString("parentCommitId", m_parentCommitId);
}
if(m_keepEmptyFoldersHasBeenSet)
{
payload.WithBool("keepEmptyFolders", m_keepEmptyFolders);
}
if(m_commitMessageHasBeenSet)
{
payload.WithString("commitMessage", m_commitMessage);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_emailHasBeenSet)
{
payload.WithString("email", m_email);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteFileRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "CodeCommit_20150413.DeleteFile"));
return headers;
}