AWS SDK for C++  1.8.152
AWS SDK for C++
MergeHunk.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 
49  inline bool GetIsConflict() const{ return m_isConflict; }
50 
59  inline bool IsConflictHasBeenSet() const { return m_isConflictHasBeenSet; }
60 
69  inline void SetIsConflict(bool value) { m_isConflictHasBeenSet = true; m_isConflict = value; }
70 
79  inline MergeHunk& WithIsConflict(bool value) { SetIsConflict(value); return *this;}
80 
81 
86  inline const MergeHunkDetail& GetSource() const{ return m_source; }
87 
92  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
93 
98  inline void SetSource(const MergeHunkDetail& value) { m_sourceHasBeenSet = true; m_source = value; }
99 
104  inline void SetSource(MergeHunkDetail&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
105 
110  inline MergeHunk& WithSource(const MergeHunkDetail& value) { SetSource(value); return *this;}
111 
116  inline MergeHunk& WithSource(MergeHunkDetail&& value) { SetSource(std::move(value)); return *this;}
117 
118 
123  inline const MergeHunkDetail& GetDestination() const{ return m_destination; }
124 
129  inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
130 
135  inline void SetDestination(const MergeHunkDetail& value) { m_destinationHasBeenSet = true; m_destination = value; }
136 
141  inline void SetDestination(MergeHunkDetail&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
142 
147  inline MergeHunk& WithDestination(const MergeHunkDetail& value) { SetDestination(value); return *this;}
148 
153  inline MergeHunk& WithDestination(MergeHunkDetail&& value) { SetDestination(std::move(value)); return *this;}
154 
155 
159  inline const MergeHunkDetail& GetBase() const{ return m_base; }
160 
164  inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; }
165 
169  inline void SetBase(const MergeHunkDetail& value) { m_baseHasBeenSet = true; m_base = value; }
170 
174  inline void SetBase(MergeHunkDetail&& value) { m_baseHasBeenSet = true; m_base = std::move(value); }
175 
179  inline MergeHunk& WithBase(const MergeHunkDetail& value) { SetBase(value); return *this;}
180 
184  inline MergeHunk& WithBase(MergeHunkDetail&& value) { SetBase(std::move(value)); return *this;}
185 
186  private:
187 
188  bool m_isConflict;
189  bool m_isConflictHasBeenSet;
190 
191  MergeHunkDetail m_source;
192  bool m_sourceHasBeenSet;
193 
194  MergeHunkDetail m_destination;
195  bool m_destinationHasBeenSet;
196 
197  MergeHunkDetail m_base;
198  bool m_baseHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace CodeCommit
203 } // namespace Aws
MergeHunkDetail.h
Aws::CodeCommit::Model::MergeHunk::BaseHasBeenSet
bool BaseHasBeenSet() const
Definition: MergeHunk.h:164
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::MergeHunk::SetBase
void SetBase(const MergeHunkDetail &value)
Definition: MergeHunk.h:169
Aws::CodeCommit::Model::MergeHunk::SetSource
void SetSource(MergeHunkDetail &&value)
Definition: MergeHunk.h:104
Aws::CodeCommit::Model::MergeHunk::DestinationHasBeenSet
bool DestinationHasBeenSet() const
Definition: MergeHunk.h:129
Aws::CodeCommit::Model::MergeHunk::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::MergeHunk::WithIsConflict
MergeHunk & WithIsConflict(bool value)
Definition: MergeHunk.h:79
Aws::CodeCommit::Model::MergeHunk::MergeHunk
MergeHunk(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeHunk::GetDestination
const MergeHunkDetail & GetDestination() const
Definition: MergeHunk.h:123
Aws::CodeCommit::Model::MergeHunk::SetDestination
void SetDestination(const MergeHunkDetail &value)
Definition: MergeHunk.h:135
Aws::CodeCommit::Model::MergeHunk::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: MergeHunk.h:92
Aws::CodeCommit::Model::MergeHunk::IsConflictHasBeenSet
bool IsConflictHasBeenSet() const
Definition: MergeHunk.h:59
Aws::CodeCommit::Model::MergeHunk::WithSource
MergeHunk & WithSource(MergeHunkDetail &&value)
Definition: MergeHunk.h:116
Aws::CodeCommit::Model::MergeHunk::SetDestination
void SetDestination(MergeHunkDetail &&value)
Definition: MergeHunk.h:141
Aws::CodeCommit::Model::MergeHunk::MergeHunk
MergeHunk()
Aws::CodeCommit::Model::MergeHunkDetail
Definition: MergeHunkDetail.h:33
Aws::CodeCommit::Model::MergeHunk::WithDestination
MergeHunk & WithDestination(MergeHunkDetail &&value)
Definition: MergeHunk.h:153
Aws::CodeCommit::Model::MergeHunk::operator=
MergeHunk & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::MergeHunk::WithBase
MergeHunk & WithBase(const MergeHunkDetail &value)
Definition: MergeHunk.h:179
Aws::CodeCommit::Model::MergeHunk::WithDestination
MergeHunk & WithDestination(const MergeHunkDetail &value)
Definition: MergeHunk.h:147
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::MergeHunk::WithBase
MergeHunk & WithBase(MergeHunkDetail &&value)
Definition: MergeHunk.h:184
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::MergeHunk::SetSource
void SetSource(const MergeHunkDetail &value)
Definition: MergeHunk.h:98
Aws::CodeCommit::Model::MergeHunk::WithSource
MergeHunk & WithSource(const MergeHunkDetail &value)
Definition: MergeHunk.h:110
Aws::CodeCommit::Model::MergeHunk::GetSource
const MergeHunkDetail & GetSource() const
Definition: MergeHunk.h:86
Aws::CodeCommit::Model::MergeHunk
Definition: MergeHunk.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::MergeHunk::GetBase
const MergeHunkDetail & GetBase() const
Definition: MergeHunk.h:159
Aws::CodeCommit::Model::MergeHunk::SetIsConflict
void SetIsConflict(bool value)
Definition: MergeHunk.h:69
Aws::CodeCommit::Model::MergeHunk::SetBase
void SetBase(MergeHunkDetail &&value)
Definition: MergeHunk.h:174
Aws::CodeCommit::Model::MergeHunk::GetIsConflict
bool GetIsConflict() const
Definition: MergeHunk.h:49