AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
MergeHunkDetail.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCommit {
20namespace Model {
21
29 public:
30 AWS_CODECOMMIT_API MergeHunkDetail() = default;
31 AWS_CODECOMMIT_API MergeHunkDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetStartLine() const { return m_startLine; }
40 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
41 inline void SetStartLine(int value) {
42 m_startLineHasBeenSet = true;
43 m_startLine = value;
44 }
45 inline MergeHunkDetail& WithStartLine(int value) {
46 SetStartLine(value);
47 return *this;
48 }
50
52
55 inline int GetEndLine() const { return m_endLine; }
56 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
57 inline void SetEndLine(int value) {
58 m_endLineHasBeenSet = true;
59 m_endLine = value;
60 }
61 inline MergeHunkDetail& WithEndLine(int value) {
62 SetEndLine(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetHunkContent() const { return m_hunkContent; }
73 inline bool HunkContentHasBeenSet() const { return m_hunkContentHasBeenSet; }
74 template <typename HunkContentT = Aws::String>
75 void SetHunkContent(HunkContentT&& value) {
76 m_hunkContentHasBeenSet = true;
77 m_hunkContent = std::forward<HunkContentT>(value);
78 }
79 template <typename HunkContentT = Aws::String>
80 MergeHunkDetail& WithHunkContent(HunkContentT&& value) {
81 SetHunkContent(std::forward<HunkContentT>(value));
82 return *this;
83 }
85 private:
86 int m_startLine{0};
87
88 int m_endLine{0};
89
90 Aws::String m_hunkContent;
91 bool m_startLineHasBeenSet = false;
92 bool m_endLineHasBeenSet = false;
93 bool m_hunkContentHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeCommit
98} // namespace Aws
const Aws::String & GetHunkContent() const
MergeHunkDetail & WithStartLine(int value)
MergeHunkDetail & WithEndLine(int value)
AWS_CODECOMMIT_API MergeHunkDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHunkContent(HunkContentT &&value)
AWS_CODECOMMIT_API MergeHunkDetail()=default
MergeHunkDetail & WithHunkContent(HunkContentT &&value)
AWS_CODECOMMIT_API MergeHunkDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue