AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API MergeHunkDetail();
36 AWS_CODECOMMIT_API MergeHunkDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetStartLine() const{ return m_startLine; }
46 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
47 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
48 inline MergeHunkDetail& WithStartLine(int value) { SetStartLine(value); return *this;}
50
52
55 inline int GetEndLine() const{ return m_endLine; }
56 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
57 inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
58 inline MergeHunkDetail& WithEndLine(int value) { SetEndLine(value); return *this;}
60
62
66 inline const Aws::String& GetHunkContent() const{ return m_hunkContent; }
67 inline bool HunkContentHasBeenSet() const { return m_hunkContentHasBeenSet; }
68 inline void SetHunkContent(const Aws::String& value) { m_hunkContentHasBeenSet = true; m_hunkContent = value; }
69 inline void SetHunkContent(Aws::String&& value) { m_hunkContentHasBeenSet = true; m_hunkContent = std::move(value); }
70 inline void SetHunkContent(const char* value) { m_hunkContentHasBeenSet = true; m_hunkContent.assign(value); }
71 inline MergeHunkDetail& WithHunkContent(const Aws::String& value) { SetHunkContent(value); return *this;}
72 inline MergeHunkDetail& WithHunkContent(Aws::String&& value) { SetHunkContent(std::move(value)); return *this;}
73 inline MergeHunkDetail& WithHunkContent(const char* value) { SetHunkContent(value); return *this;}
75 private:
76
77 int m_startLine;
78 bool m_startLineHasBeenSet = false;
79
80 int m_endLine;
81 bool m_endLineHasBeenSet = false;
82
83 Aws::String m_hunkContent;
84 bool m_hunkContentHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CodeCommit
89} // namespace Aws
const Aws::String & GetHunkContent() const
MergeHunkDetail & WithHunkContent(const Aws::String &value)
MergeHunkDetail & WithStartLine(int value)
MergeHunkDetail & WithHunkContent(Aws::String &&value)
MergeHunkDetail & WithEndLine(int value)
void SetHunkContent(const Aws::String &value)
AWS_CODECOMMIT_API MergeHunkDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API MergeHunkDetail(Aws::Utils::Json::JsonView jsonValue)
MergeHunkDetail & WithHunkContent(const char *value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHunkContent(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue