/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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; }