/** * 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 { /** *

Returns information about the location of a change or comment in the * comparison between two commits or a pull request.

See Also:

AWS * API Reference

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

The name of the file being compared, including its extension and * subdirectory, if any.

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

The name of the file being compared, including its extension and * subdirectory, if any.

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

The name of the file being compared, including its extension and * subdirectory, if any.

*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

The name of the file being compared, including its extension and * subdirectory, if any.

*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

The name of the file being compared, including its extension and * subdirectory, if any.

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

The name of the file being compared, including its extension and * subdirectory, if any.

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

The name of the file being compared, including its extension and * subdirectory, if any.

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

The name of the file being compared, including its extension and * subdirectory, if any.

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

The position of a change in a compared file, in line number format.

*/ inline long long GetFilePosition() const{ return m_filePosition; } /** *

The position of a change in a compared file, in line number format.

*/ inline bool FilePositionHasBeenSet() const { return m_filePositionHasBeenSet; } /** *

The position of a change in a compared file, in line number format.

*/ inline void SetFilePosition(long long value) { m_filePositionHasBeenSet = true; m_filePosition = value; } /** *

The position of a change in a compared file, in line number format.

*/ inline Location& WithFilePosition(long long value) { SetFilePosition(value); return *this;} /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline const RelativeFileVersionEnum& GetRelativeFileVersion() const{ return m_relativeFileVersion; } /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline bool RelativeFileVersionHasBeenSet() const { return m_relativeFileVersionHasBeenSet; } /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline void SetRelativeFileVersion(const RelativeFileVersionEnum& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = value; } /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline void SetRelativeFileVersion(RelativeFileVersionEnum&& value) { m_relativeFileVersionHasBeenSet = true; m_relativeFileVersion = std::move(value); } /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline Location& WithRelativeFileVersion(const RelativeFileVersionEnum& value) { SetRelativeFileVersion(value); return *this;} /** *

In a comparison of commits or a pull request, whether the change is in the * before or after of that comparison.

*/ inline Location& WithRelativeFileVersion(RelativeFileVersionEnum&& value) { SetRelativeFileVersion(std::move(value)); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet = false; long long m_filePosition; bool m_filePositionHasBeenSet = false; RelativeFileVersionEnum m_relativeFileVersion; bool m_relativeFileVersionHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws