AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Conflict.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/ConflictMetadata.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codecommit/model/MergeHunk.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODECOMMIT_API Conflict();
38 AWS_CODECOMMIT_API Conflict(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Conflict& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ConflictMetadata& GetConflictMetadata() const{ return m_conflictMetadata; }
48 inline bool ConflictMetadataHasBeenSet() const { return m_conflictMetadataHasBeenSet; }
49 inline void SetConflictMetadata(const ConflictMetadata& value) { m_conflictMetadataHasBeenSet = true; m_conflictMetadata = value; }
50 inline void SetConflictMetadata(ConflictMetadata&& value) { m_conflictMetadataHasBeenSet = true; m_conflictMetadata = std::move(value); }
51 inline Conflict& WithConflictMetadata(const ConflictMetadata& value) { SetConflictMetadata(value); return *this;}
52 inline Conflict& WithConflictMetadata(ConflictMetadata&& value) { SetConflictMetadata(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<MergeHunk>& GetMergeHunks() const{ return m_mergeHunks; }
61 inline bool MergeHunksHasBeenSet() const { return m_mergeHunksHasBeenSet; }
62 inline void SetMergeHunks(const Aws::Vector<MergeHunk>& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks = value; }
63 inline void SetMergeHunks(Aws::Vector<MergeHunk>&& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks = std::move(value); }
64 inline Conflict& WithMergeHunks(const Aws::Vector<MergeHunk>& value) { SetMergeHunks(value); return *this;}
65 inline Conflict& WithMergeHunks(Aws::Vector<MergeHunk>&& value) { SetMergeHunks(std::move(value)); return *this;}
66 inline Conflict& AddMergeHunks(const MergeHunk& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks.push_back(value); return *this; }
67 inline Conflict& AddMergeHunks(MergeHunk&& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks.push_back(std::move(value)); return *this; }
69 private:
70
71 ConflictMetadata m_conflictMetadata;
72 bool m_conflictMetadataHasBeenSet = false;
73
74 Aws::Vector<MergeHunk> m_mergeHunks;
75 bool m_mergeHunksHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeCommit
80} // namespace Aws
const ConflictMetadata & GetConflictMetadata() const
Definition Conflict.h:47
void SetMergeHunks(const Aws::Vector< MergeHunk > &value)
Definition Conflict.h:62
bool ConflictMetadataHasBeenSet() const
Definition Conflict.h:48
Conflict & AddMergeHunks(const MergeHunk &value)
Definition Conflict.h:66
void SetConflictMetadata(ConflictMetadata &&value)
Definition Conflict.h:50
AWS_CODECOMMIT_API Conflict()
void SetConflictMetadata(const ConflictMetadata &value)
Definition Conflict.h:49
void SetMergeHunks(Aws::Vector< MergeHunk > &&value)
Definition Conflict.h:63
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API Conflict & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MergeHunk > & GetMergeHunks() const
Definition Conflict.h:60
AWS_CODECOMMIT_API Conflict(Aws::Utils::Json::JsonView jsonValue)
Conflict & WithConflictMetadata(ConflictMetadata &&value)
Definition Conflict.h:52
Conflict & WithMergeHunks(Aws::Vector< MergeHunk > &&value)
Definition Conflict.h:65
Conflict & WithConflictMetadata(const ConflictMetadata &value)
Definition Conflict.h:51
Conflict & WithMergeHunks(const Aws::Vector< MergeHunk > &value)
Definition Conflict.h:64
Conflict & AddMergeHunks(MergeHunk &&value)
Definition Conflict.h:67
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue