AWS SDK for C++  1.8.152
AWS SDK for C++
CreateCommitResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeCommit
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::String& GetCommitId() const{ return m_commitId; }
42 
47  inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
48 
53  inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
54 
59  inline void SetCommitId(const char* value) { m_commitId.assign(value); }
60 
65  inline CreateCommitResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
66 
71  inline CreateCommitResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
72 
77  inline CreateCommitResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
78 
79 
84  inline const Aws::String& GetTreeId() const{ return m_treeId; }
85 
90  inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
91 
96  inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
97 
102  inline void SetTreeId(const char* value) { m_treeId.assign(value); }
103 
108  inline CreateCommitResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
109 
114  inline CreateCommitResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
115 
120  inline CreateCommitResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
121 
122 
126  inline const Aws::Vector<FileMetadata>& GetFilesAdded() const{ return m_filesAdded; }
127 
131  inline void SetFilesAdded(const Aws::Vector<FileMetadata>& value) { m_filesAdded = value; }
132 
136  inline void SetFilesAdded(Aws::Vector<FileMetadata>&& value) { m_filesAdded = std::move(value); }
137 
141  inline CreateCommitResult& WithFilesAdded(const Aws::Vector<FileMetadata>& value) { SetFilesAdded(value); return *this;}
142 
146  inline CreateCommitResult& WithFilesAdded(Aws::Vector<FileMetadata>&& value) { SetFilesAdded(std::move(value)); return *this;}
147 
151  inline CreateCommitResult& AddFilesAdded(const FileMetadata& value) { m_filesAdded.push_back(value); return *this; }
152 
156  inline CreateCommitResult& AddFilesAdded(FileMetadata&& value) { m_filesAdded.push_back(std::move(value)); return *this; }
157 
158 
162  inline const Aws::Vector<FileMetadata>& GetFilesUpdated() const{ return m_filesUpdated; }
163 
167  inline void SetFilesUpdated(const Aws::Vector<FileMetadata>& value) { m_filesUpdated = value; }
168 
172  inline void SetFilesUpdated(Aws::Vector<FileMetadata>&& value) { m_filesUpdated = std::move(value); }
173 
177  inline CreateCommitResult& WithFilesUpdated(const Aws::Vector<FileMetadata>& value) { SetFilesUpdated(value); return *this;}
178 
182  inline CreateCommitResult& WithFilesUpdated(Aws::Vector<FileMetadata>&& value) { SetFilesUpdated(std::move(value)); return *this;}
183 
187  inline CreateCommitResult& AddFilesUpdated(const FileMetadata& value) { m_filesUpdated.push_back(value); return *this; }
188 
192  inline CreateCommitResult& AddFilesUpdated(FileMetadata&& value) { m_filesUpdated.push_back(std::move(value)); return *this; }
193 
194 
198  inline const Aws::Vector<FileMetadata>& GetFilesDeleted() const{ return m_filesDeleted; }
199 
203  inline void SetFilesDeleted(const Aws::Vector<FileMetadata>& value) { m_filesDeleted = value; }
204 
208  inline void SetFilesDeleted(Aws::Vector<FileMetadata>&& value) { m_filesDeleted = std::move(value); }
209 
213  inline CreateCommitResult& WithFilesDeleted(const Aws::Vector<FileMetadata>& value) { SetFilesDeleted(value); return *this;}
214 
218  inline CreateCommitResult& WithFilesDeleted(Aws::Vector<FileMetadata>&& value) { SetFilesDeleted(std::move(value)); return *this;}
219 
223  inline CreateCommitResult& AddFilesDeleted(const FileMetadata& value) { m_filesDeleted.push_back(value); return *this; }
224 
228  inline CreateCommitResult& AddFilesDeleted(FileMetadata&& value) { m_filesDeleted.push_back(std::move(value)); return *this; }
229 
230  private:
231 
232  Aws::String m_commitId;
233 
234  Aws::String m_treeId;
235 
236  Aws::Vector<FileMetadata> m_filesAdded;
237 
238  Aws::Vector<FileMetadata> m_filesUpdated;
239 
240  Aws::Vector<FileMetadata> m_filesDeleted;
241  };
242 
243 } // namespace Model
244 } // namespace CodeCommit
245 } // namespace Aws
Aws::CodeCommit::Model::CreateCommitResult::WithFilesDeleted
CreateCommitResult & WithFilesDeleted(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:213
Aws::CodeCommit::Model::CreateCommitResult::AddFilesUpdated
CreateCommitResult & AddFilesUpdated(const FileMetadata &value)
Definition: CreateCommitResult.h:187
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::CreateCommitResult::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: CreateCommitResult.h:47
Aws::CodeCommit::Model::CreateCommitResult::WithFilesAdded
CreateCommitResult & WithFilesAdded(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:146
Aws::CodeCommit::Model::CreateCommitResult::operator=
CreateCommitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::CreateCommitResult::GetTreeId
const Aws::String & GetTreeId() const
Definition: CreateCommitResult.h:84
Aws::CodeCommit::Model::CreateCommitResult::AddFilesDeleted
CreateCommitResult & AddFilesDeleted(const FileMetadata &value)
Definition: CreateCommitResult.h:223
Aws::CodeCommit::Model::CreateCommitResult::WithCommitId
CreateCommitResult & WithCommitId(const Aws::String &value)
Definition: CreateCommitResult.h:65
Aws::CodeCommit::Model::CreateCommitResult::GetFilesUpdated
const Aws::Vector< FileMetadata > & GetFilesUpdated() const
Definition: CreateCommitResult.h:162
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::CreateCommitResult::AddFilesAdded
CreateCommitResult & AddFilesAdded(FileMetadata &&value)
Definition: CreateCommitResult.h:156
Aws::CodeCommit::Model::CreateCommitResult::CreateCommitResult
CreateCommitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::CreateCommitResult::CreateCommitResult
CreateCommitResult()
Aws::CodeCommit::Model::CreateCommitResult::WithTreeId
CreateCommitResult & WithTreeId(Aws::String &&value)
Definition: CreateCommitResult.h:114
AWSVector.h
Aws::CodeCommit::Model::CreateCommitResult::WithFilesDeleted
CreateCommitResult & WithFilesDeleted(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:218
Aws::CodeCommit::Model::CreateCommitResult::AddFilesUpdated
CreateCommitResult & AddFilesUpdated(FileMetadata &&value)
Definition: CreateCommitResult.h:192
Aws::CodeCommit::Model::CreateCommitResult::AddFilesDeleted
CreateCommitResult & AddFilesDeleted(FileMetadata &&value)
Definition: CreateCommitResult.h:228
Aws::CodeCommit::Model::CreateCommitResult::GetCommitId
const Aws::String & GetCommitId() const
Definition: CreateCommitResult.h:41
Aws::CodeCommit::Model::CreateCommitResult::WithTreeId
CreateCommitResult & WithTreeId(const char *value)
Definition: CreateCommitResult.h:120
Aws::CodeCommit::Model::CreateCommitResult::WithCommitId
CreateCommitResult & WithCommitId(Aws::String &&value)
Definition: CreateCommitResult.h:71
Aws::CodeCommit::Model::CreateCommitResult::WithFilesUpdated
CreateCommitResult & WithFilesUpdated(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:177
Aws::CodeCommit::Model::CreateCommitResult::SetFilesDeleted
void SetFilesDeleted(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:208
Aws::CodeCommit::Model::CreateCommitResult::SetFilesUpdated
void SetFilesUpdated(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:172
Aws::CodeCommit::Model::CreateCommitResult::WithTreeId
CreateCommitResult & WithTreeId(const Aws::String &value)
Definition: CreateCommitResult.h:108
Aws::CodeCommit::Model::CreateCommitResult::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: CreateCommitResult.h:96
Aws::CodeCommit::Model::CreateCommitResult::SetFilesDeleted
void SetFilesDeleted(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:203
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::CreateCommitResult::SetFilesAdded
void SetFilesAdded(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:131
Aws::CodeCommit::Model::CreateCommitResult::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: CreateCommitResult.h:90
Aws::CodeCommit::Model::FileMetadata
Definition: FileMetadata.h:34
Aws::CodeCommit::Model::CreateCommitResult::AddFilesAdded
CreateCommitResult & AddFilesAdded(const FileMetadata &value)
Definition: CreateCommitResult.h:151
Aws::CodeCommit::Model::CreateCommitResult::SetTreeId
void SetTreeId(const char *value)
Definition: CreateCommitResult.h:102
Aws::CodeCommit::Model::CreateCommitResult::SetFilesAdded
void SetFilesAdded(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:136
Aws::CodeCommit::Model::CreateCommitResult::SetFilesUpdated
void SetFilesUpdated(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:167
FileMetadata.h
Aws::CodeCommit::Model::CreateCommitResult::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: CreateCommitResult.h:53
Aws::CodeCommit::Model::CreateCommitResult::WithFilesAdded
CreateCommitResult & WithFilesAdded(const Aws::Vector< FileMetadata > &value)
Definition: CreateCommitResult.h:141
Aws::CodeCommit::Model::CreateCommitResult::GetFilesAdded
const Aws::Vector< FileMetadata > & GetFilesAdded() const
Definition: CreateCommitResult.h:126
Aws::CodeCommit::Model::CreateCommitResult::WithFilesUpdated
CreateCommitResult & WithFilesUpdated(Aws::Vector< FileMetadata > &&value)
Definition: CreateCommitResult.h:182
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::CreateCommitResult::SetCommitId
void SetCommitId(const char *value)
Definition: CreateCommitResult.h:59
Aws::CodeCommit::Model::CreateCommitResult::GetFilesDeleted
const Aws::Vector< FileMetadata > & GetFilesDeleted() const
Definition: CreateCommitResult.h:198
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::CreateCommitResult::WithCommitId
CreateCommitResult & WithCommitId(const char *value)
Definition: CreateCommitResult.h:77
Aws::CodeCommit::Model::CreateCommitResult
Definition: CreateCommitResult.h:30