AWS SDK for C++  1.9.19
AWS SDK for C++
MergeHunkDetail.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline int GetStartLine() const{ return m_startLine; }
45 
49  inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
50 
54  inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
55 
59  inline MergeHunkDetail& WithStartLine(int value) { SetStartLine(value); return *this;}
60 
61 
65  inline int GetEndLine() const{ return m_endLine; }
66 
70  inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
71 
75  inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
76 
80  inline MergeHunkDetail& WithEndLine(int value) { SetEndLine(value); return *this;}
81 
82 
87  inline const Aws::String& GetHunkContent() const{ return m_hunkContent; }
88 
93  inline bool HunkContentHasBeenSet() const { return m_hunkContentHasBeenSet; }
94 
99  inline void SetHunkContent(const Aws::String& value) { m_hunkContentHasBeenSet = true; m_hunkContent = value; }
100 
105  inline void SetHunkContent(Aws::String&& value) { m_hunkContentHasBeenSet = true; m_hunkContent = std::move(value); }
106 
111  inline void SetHunkContent(const char* value) { m_hunkContentHasBeenSet = true; m_hunkContent.assign(value); }
112 
117  inline MergeHunkDetail& WithHunkContent(const Aws::String& value) { SetHunkContent(value); return *this;}
118 
123  inline MergeHunkDetail& WithHunkContent(Aws::String&& value) { SetHunkContent(std::move(value)); return *this;}
124 
129  inline MergeHunkDetail& WithHunkContent(const char* value) { SetHunkContent(value); return *this;}
130 
131  private:
132 
133  int m_startLine;
134  bool m_startLineHasBeenSet;
135 
136  int m_endLine;
137  bool m_endLineHasBeenSet;
138 
139  Aws::String m_hunkContent;
140  bool m_hunkContentHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CodeCommit
145 } // namespace Aws
Aws::CodeCommit::Model::MergeHunkDetail::GetStartLine
int GetStartLine() const
Definition: MergeHunkDetail.h:44
Aws::CodeCommit::Model::MergeHunkDetail::SetHunkContent
void SetHunkContent(const Aws::String &value)
Definition: MergeHunkDetail.h:99
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeHunkDetail::MergeHunkDetail
MergeHunkDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeHunkDetail::SetHunkContent
void SetHunkContent(Aws::String &&value)
Definition: MergeHunkDetail.h:105
Aws::CodeCommit::Model::MergeHunkDetail::SetStartLine
void SetStartLine(int value)
Definition: MergeHunkDetail.h:54
Aws::CodeCommit::Model::MergeHunkDetail::WithHunkContent
MergeHunkDetail & WithHunkContent(Aws::String &&value)
Definition: MergeHunkDetail.h:123
Aws::CodeCommit::Model::MergeHunkDetail::HunkContentHasBeenSet
bool HunkContentHasBeenSet() const
Definition: MergeHunkDetail.h:93
Aws::CodeCommit::Model::MergeHunkDetail::WithStartLine
MergeHunkDetail & WithStartLine(int value)
Definition: MergeHunkDetail.h:59
Aws::CodeCommit::Model::MergeHunkDetail::StartLineHasBeenSet
bool StartLineHasBeenSet() const
Definition: MergeHunkDetail.h:49
Aws::CodeCommit::Model::MergeHunkDetail::WithHunkContent
MergeHunkDetail & WithHunkContent(const Aws::String &value)
Definition: MergeHunkDetail.h:117
Aws::CodeCommit::Model::MergeHunkDetail::GetHunkContent
const Aws::String & GetHunkContent() const
Definition: MergeHunkDetail.h:87
Aws::CodeCommit::Model::MergeHunkDetail::SetEndLine
void SetEndLine(int value)
Definition: MergeHunkDetail.h:75
Aws::CodeCommit::Model::MergeHunkDetail
Definition: MergeHunkDetail.h:33
Aws::CodeCommit::Model::MergeHunkDetail::operator=
MergeHunkDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeHunkDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeHunkDetail::WithHunkContent
MergeHunkDetail & WithHunkContent(const char *value)
Definition: MergeHunkDetail.h:129
Aws::CodeCommit::Model::MergeHunkDetail::GetEndLine
int GetEndLine() const
Definition: MergeHunkDetail.h:65
Aws::CodeCommit::Model::MergeHunkDetail::MergeHunkDetail
MergeHunkDetail()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::MergeHunkDetail::EndLineHasBeenSet
bool EndLineHasBeenSet() const
Definition: MergeHunkDetail.h:70
Aws::CodeCommit::Model::MergeHunkDetail::SetHunkContent
void SetHunkContent(const char *value)
Definition: MergeHunkDetail.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::MergeHunkDetail::WithEndLine
MergeHunkDetail & WithEndLine(int value)
Definition: MergeHunkDetail.h:80