AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MergeHunk.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/MergeHunkDetail.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 MergeHunk();
36 AWS_CODECOMMIT_API MergeHunk(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API MergeHunk& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline bool GetIsConflict() const{ return m_isConflict; }
51 inline bool IsConflictHasBeenSet() const { return m_isConflictHasBeenSet; }
52 inline void SetIsConflict(bool value) { m_isConflictHasBeenSet = true; m_isConflict = value; }
53 inline MergeHunk& WithIsConflict(bool value) { SetIsConflict(value); return *this;}
55
57
61 inline const MergeHunkDetail& GetSource() const{ return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 inline void SetSource(const MergeHunkDetail& value) { m_sourceHasBeenSet = true; m_source = value; }
64 inline void SetSource(MergeHunkDetail&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
65 inline MergeHunk& WithSource(const MergeHunkDetail& value) { SetSource(value); return *this;}
66 inline MergeHunk& WithSource(MergeHunkDetail&& value) { SetSource(std::move(value)); return *this;}
68
70
74 inline const MergeHunkDetail& GetDestination() const{ return m_destination; }
75 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
76 inline void SetDestination(const MergeHunkDetail& value) { m_destinationHasBeenSet = true; m_destination = value; }
77 inline void SetDestination(MergeHunkDetail&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
78 inline MergeHunk& WithDestination(const MergeHunkDetail& value) { SetDestination(value); return *this;}
79 inline MergeHunk& WithDestination(MergeHunkDetail&& value) { SetDestination(std::move(value)); return *this;}
81
83
86 inline const MergeHunkDetail& GetBase() const{ return m_base; }
87 inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
88 inline void SetBase(const MergeHunkDetail& value) { m_baseHasBeenSet = true; m_base = value; }
89 inline void SetBase(MergeHunkDetail&& value) { m_baseHasBeenSet = true; m_base = std::move(value); }
90 inline MergeHunk& WithBase(const MergeHunkDetail& value) { SetBase(value); return *this;}
91 inline MergeHunk& WithBase(MergeHunkDetail&& value) { SetBase(std::move(value)); return *this;}
93 private:
94
95 bool m_isConflict;
96 bool m_isConflictHasBeenSet = false;
97
98 MergeHunkDetail m_source;
99 bool m_sourceHasBeenSet = false;
100
101 MergeHunkDetail m_destination;
102 bool m_destinationHasBeenSet = false;
103
104 MergeHunkDetail m_base;
105 bool m_baseHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CodeCommit
110} // namespace Aws
void SetBase(const MergeHunkDetail &value)
Definition MergeHunk.h:88
void SetDestination(MergeHunkDetail &&value)
Definition MergeHunk.h:77
MergeHunk & WithSource(const MergeHunkDetail &value)
Definition MergeHunk.h:65
void SetDestination(const MergeHunkDetail &value)
Definition MergeHunk.h:76
MergeHunk & WithDestination(const MergeHunkDetail &value)
Definition MergeHunk.h:78
void SetSource(MergeHunkDetail &&value)
Definition MergeHunk.h:64
AWS_CODECOMMIT_API MergeHunk()
const MergeHunkDetail & GetSource() const
Definition MergeHunk.h:61
const MergeHunkDetail & GetDestination() const
Definition MergeHunk.h:74
AWS_CODECOMMIT_API MergeHunk(Aws::Utils::Json::JsonView jsonValue)
MergeHunk & WithBase(const MergeHunkDetail &value)
Definition MergeHunk.h:90
MergeHunk & WithBase(MergeHunkDetail &&value)
Definition MergeHunk.h:91
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSource(const MergeHunkDetail &value)
Definition MergeHunk.h:63
MergeHunk & WithDestination(MergeHunkDetail &&value)
Definition MergeHunk.h:79
MergeHunk & WithSource(MergeHunkDetail &&value)
Definition MergeHunk.h:66
void SetBase(MergeHunkDetail &&value)
Definition MergeHunk.h:89
MergeHunk & WithIsConflict(bool value)
Definition MergeHunk.h:53
AWS_CODECOMMIT_API MergeHunk & operator=(Aws::Utils::Json::JsonView jsonValue)
const MergeHunkDetail & GetBase() const
Definition MergeHunk.h:86
Aws::Utils::Json::JsonValue JsonValue