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

Information about the details of a merge hunk that contains a conflict in a * merge or pull request operation.

See Also:

AWS * API Reference

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

The start position of the hunk in the merge result.

*/ inline int GetStartLine() const{ return m_startLine; } /** *

The start position of the hunk in the merge result.

*/ inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; } /** *

The start position of the hunk in the merge result.

*/ inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; } /** *

The start position of the hunk in the merge result.

*/ inline MergeHunkDetail& WithStartLine(int value) { SetStartLine(value); return *this;} /** *

The end position of the hunk in the merge result.

*/ inline int GetEndLine() const{ return m_endLine; } /** *

The end position of the hunk in the merge result.

*/ inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; } /** *

The end position of the hunk in the merge result.

*/ inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; } /** *

The end position of the hunk in the merge result.

*/ inline MergeHunkDetail& WithEndLine(int value) { SetEndLine(value); return *this;} /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline const Aws::String& GetHunkContent() const{ return m_hunkContent; } /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline bool HunkContentHasBeenSet() const { return m_hunkContentHasBeenSet; } /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline void SetHunkContent(const Aws::String& value) { m_hunkContentHasBeenSet = true; m_hunkContent = value; } /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline void SetHunkContent(Aws::String&& value) { m_hunkContentHasBeenSet = true; m_hunkContent = std::move(value); } /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline void SetHunkContent(const char* value) { m_hunkContentHasBeenSet = true; m_hunkContent.assign(value); } /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline MergeHunkDetail& WithHunkContent(const Aws::String& value) { SetHunkContent(value); return *this;} /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline MergeHunkDetail& WithHunkContent(Aws::String&& value) { SetHunkContent(std::move(value)); return *this;} /** *

The base-64 encoded content of the hunk merged region that might contain a * conflict.

*/ inline MergeHunkDetail& WithHunkContent(const char* value) { SetHunkContent(value); return *this;} private: int m_startLine; bool m_startLineHasBeenSet; int m_endLine; bool m_endLineHasBeenSet; Aws::String m_hunkContent; bool m_hunkContentHasBeenSet; }; } // namespace Model } // namespace CodeCommit } // namespace Aws