/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a file added or updated as part of a commit.See
* Also:
AWS
* API Reference
The full path to the file in the repository, including the name of the * file.
*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *The full path to the file in the repository, including the name of the * file.
*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *The full path to the file in the repository, including the name of the * file.
*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *The full path to the file in the repository, including the name of the * file.
*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *The full path to the file in the repository, including the name of the * file.
*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *The full path to the file in the repository, including the name of the * file.
*/ inline PutFileEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *The full path to the file in the repository, including the name of the * file.
*/ inline PutFileEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *The full path to the file in the repository, including the name of the * file.
*/ inline PutFileEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; } /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; } /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; } /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); } /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline PutFileEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;} /** *The extrapolated file mode permissions for the file. Valid values include * EXECUTABLE and NORMAL.
*/ inline PutFileEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;} /** *The content of the file, if a source file is not specified.
*/ inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; } /** *The content of the file, if a source file is not specified.
*/ inline bool FileContentHasBeenSet() const { return m_fileContentHasBeenSet; } /** *The content of the file, if a source file is not specified.
*/ inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContentHasBeenSet = true; m_fileContent = value; } /** *The content of the file, if a source file is not specified.
*/ inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContentHasBeenSet = true; m_fileContent = std::move(value); } /** *The content of the file, if a source file is not specified.
*/ inline PutFileEntry& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;} /** *The content of the file, if a source file is not specified.
*/ inline PutFileEntry& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;} /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline const SourceFileSpecifier& GetSourceFile() const{ return m_sourceFile; } /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline bool SourceFileHasBeenSet() const { return m_sourceFileHasBeenSet; } /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline void SetSourceFile(const SourceFileSpecifier& value) { m_sourceFileHasBeenSet = true; m_sourceFile = value; } /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline void SetSourceFile(SourceFileSpecifier&& value) { m_sourceFileHasBeenSet = true; m_sourceFile = std::move(value); } /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline PutFileEntry& WithSourceFile(const SourceFileSpecifier& value) { SetSourceFile(value); return *this;} /** *The name and full path of the file that contains the changes you want to make * as part of the commit, if you are not providing the file content directly.
*/ inline PutFileEntry& WithSourceFile(SourceFileSpecifier&& value) { SetSourceFile(std::move(value)); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet = false; FileModeTypeEnum m_fileMode; bool m_fileModeHasBeenSet = false; Aws::Utils::ByteBuffer m_fileContent; bool m_fileContentHasBeenSet = false; SourceFileSpecifier m_sourceFile; bool m_sourceFileHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws