/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Information about the file mode changes.

See Also:

AWS * API Reference

*/ class SetFileModeEntry { public: AWS_CODECOMMIT_API SetFileModeEntry(); AWS_CODECOMMIT_API SetFileModeEntry(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API SetFileModeEntry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The full path to the file, including the name of the file.

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

The full path to the file, including the name of the file.

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

The full path to the file, 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, 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, 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, including the name of the file.

*/ inline SetFileModeEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

The full path to the file, including the name of the file.

*/ inline SetFileModeEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

The full path to the file, including the name of the file.

*/ inline SetFileModeEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The file mode for the file.

*/ inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; } /** *

The file mode for the file.

*/ inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; } /** *

The file mode for the file.

*/ inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; } /** *

The file mode for the file.

*/ inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); } /** *

The file mode for the file.

*/ inline SetFileModeEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;} /** *

The file mode for the file.

*/ inline SetFileModeEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet = false; FileModeTypeEnum m_fileMode; bool m_fileModeHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws