AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConflictResolution.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codecommit/model/ReplaceContentEntry.h>
10#include <aws/codecommit/model/DeleteFileEntry.h>
11#include <aws/codecommit/model/SetFileModeEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODECOMMIT_API ConflictResolution();
39 AWS_CODECOMMIT_API ConflictResolution(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<ReplaceContentEntry>& GetReplaceContents() const{ return m_replaceContents; }
49 inline bool ReplaceContentsHasBeenSet() const { return m_replaceContentsHasBeenSet; }
50 inline void SetReplaceContents(const Aws::Vector<ReplaceContentEntry>& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = value; }
51 inline void SetReplaceContents(Aws::Vector<ReplaceContentEntry>&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = std::move(value); }
54 inline ConflictResolution& AddReplaceContents(const ReplaceContentEntry& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(value); return *this; }
55 inline ConflictResolution& AddReplaceContents(ReplaceContentEntry&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::Vector<DeleteFileEntry>& GetDeleteFiles() const{ return m_deleteFiles; }
63 inline bool DeleteFilesHasBeenSet() const { return m_deleteFilesHasBeenSet; }
64 inline void SetDeleteFiles(const Aws::Vector<DeleteFileEntry>& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = value; }
65 inline void SetDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = std::move(value); }
67 inline ConflictResolution& WithDeleteFiles(Aws::Vector<DeleteFileEntry>&& value) { SetDeleteFiles(std::move(value)); return *this;}
68 inline ConflictResolution& AddDeleteFiles(const DeleteFileEntry& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(value); return *this; }
69 inline ConflictResolution& AddDeleteFiles(DeleteFileEntry&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<SetFileModeEntry>& GetSetFileModes() const{ return m_setFileModes; }
77 inline bool SetFileModesHasBeenSet() const { return m_setFileModesHasBeenSet; }
78 inline void SetSetFileModes(const Aws::Vector<SetFileModeEntry>& value) { m_setFileModesHasBeenSet = true; m_setFileModes = value; }
79 inline void SetSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { m_setFileModesHasBeenSet = true; m_setFileModes = std::move(value); }
81 inline ConflictResolution& WithSetFileModes(Aws::Vector<SetFileModeEntry>&& value) { SetSetFileModes(std::move(value)); return *this;}
82 inline ConflictResolution& AddSetFileModes(const SetFileModeEntry& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(value); return *this; }
83 inline ConflictResolution& AddSetFileModes(SetFileModeEntry&& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::Vector<ReplaceContentEntry> m_replaceContents;
88 bool m_replaceContentsHasBeenSet = false;
89
90 Aws::Vector<DeleteFileEntry> m_deleteFiles;
91 bool m_deleteFilesHasBeenSet = false;
92
93 Aws::Vector<SetFileModeEntry> m_setFileModes;
94 bool m_setFileModesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodeCommit
99} // namespace Aws
void SetSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
AWS_CODECOMMIT_API ConflictResolution & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictResolution & AddDeleteFiles(const DeleteFileEntry &value)
const Aws::Vector< ReplaceContentEntry > & GetReplaceContents() const
ConflictResolution & AddSetFileModes(const SetFileModeEntry &value)
ConflictResolution & AddDeleteFiles(DeleteFileEntry &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictResolution & WithSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
void SetDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
void SetReplaceContents(Aws::Vector< ReplaceContentEntry > &&value)
const Aws::Vector< SetFileModeEntry > & GetSetFileModes() const
ConflictResolution & AddSetFileModes(SetFileModeEntry &&value)
AWS_CODECOMMIT_API ConflictResolution(Aws::Utils::Json::JsonView jsonValue)
void SetReplaceContents(const Aws::Vector< ReplaceContentEntry > &value)
void SetSetFileModes(Aws::Vector< SetFileModeEntry > &&value)
ConflictResolution & WithDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
ConflictResolution & AddReplaceContents(const ReplaceContentEntry &value)
ConflictResolution & WithSetFileModes(const Aws::Vector< SetFileModeEntry > &value)
ConflictResolution & AddReplaceContents(ReplaceContentEntry &&value)
ConflictResolution & WithReplaceContents(Aws::Vector< ReplaceContentEntry > &&value)
ConflictResolution & WithReplaceContents(const Aws::Vector< ReplaceContentEntry > &value)
ConflictResolution & WithDeleteFiles(Aws::Vector< DeleteFileEntry > &&value)
void SetDeleteFiles(const Aws::Vector< DeleteFileEntry > &value)
const Aws::Vector< DeleteFileEntry > & GetDeleteFiles() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue