AWS SDK for C++  1.8.152
AWS SDK for C++
Commit.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace CodeCommit
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  Commit();
40 
41 
45  inline const Aws::String& GetCommitId() const{ return m_commitId; }
46 
50  inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
51 
55  inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
56 
60  inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
61 
65  inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
66 
70  inline Commit& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
71 
75  inline Commit& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
76 
80  inline Commit& WithCommitId(const char* value) { SetCommitId(value); return *this;}
81 
82 
86  inline const Aws::String& GetTreeId() const{ return m_treeId; }
87 
91  inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; }
92 
96  inline void SetTreeId(const Aws::String& value) { m_treeIdHasBeenSet = true; m_treeId = value; }
97 
101  inline void SetTreeId(Aws::String&& value) { m_treeIdHasBeenSet = true; m_treeId = std::move(value); }
102 
106  inline void SetTreeId(const char* value) { m_treeIdHasBeenSet = true; m_treeId.assign(value); }
107 
111  inline Commit& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
112 
116  inline Commit& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
117 
121  inline Commit& WithTreeId(const char* value) { SetTreeId(value); return *this;}
122 
123 
128  inline const Aws::Vector<Aws::String>& GetParents() const{ return m_parents; }
129 
134  inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
135 
140  inline void SetParents(const Aws::Vector<Aws::String>& value) { m_parentsHasBeenSet = true; m_parents = value; }
141 
146  inline void SetParents(Aws::Vector<Aws::String>&& value) { m_parentsHasBeenSet = true; m_parents = std::move(value); }
147 
152  inline Commit& WithParents(const Aws::Vector<Aws::String>& value) { SetParents(value); return *this;}
153 
158  inline Commit& WithParents(Aws::Vector<Aws::String>&& value) { SetParents(std::move(value)); return *this;}
159 
164  inline Commit& AddParents(const Aws::String& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
165 
170  inline Commit& AddParents(Aws::String&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; }
171 
176  inline Commit& AddParents(const char* value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
177 
178 
182  inline const Aws::String& GetMessage() const{ return m_message; }
183 
187  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
188 
192  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
193 
197  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
198 
202  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
203 
207  inline Commit& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
208 
212  inline Commit& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
213 
217  inline Commit& WithMessage(const char* value) { SetMessage(value); return *this;}
218 
219 
225  inline const UserInfo& GetAuthor() const{ return m_author; }
226 
232  inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
233 
239  inline void SetAuthor(const UserInfo& value) { m_authorHasBeenSet = true; m_author = value; }
240 
246  inline void SetAuthor(UserInfo&& value) { m_authorHasBeenSet = true; m_author = std::move(value); }
247 
253  inline Commit& WithAuthor(const UserInfo& value) { SetAuthor(value); return *this;}
254 
260  inline Commit& WithAuthor(UserInfo&& value) { SetAuthor(std::move(value)); return *this;}
261 
262 
272  inline const UserInfo& GetCommitter() const{ return m_committer; }
273 
283  inline bool CommitterHasBeenSet() const { return m_committerHasBeenSet; }
284 
294  inline void SetCommitter(const UserInfo& value) { m_committerHasBeenSet = true; m_committer = value; }
295 
305  inline void SetCommitter(UserInfo&& value) { m_committerHasBeenSet = true; m_committer = std::move(value); }
306 
316  inline Commit& WithCommitter(const UserInfo& value) { SetCommitter(value); return *this;}
317 
327  inline Commit& WithCommitter(UserInfo&& value) { SetCommitter(std::move(value)); return *this;}
328 
329 
333  inline const Aws::String& GetAdditionalData() const{ return m_additionalData; }
334 
338  inline bool AdditionalDataHasBeenSet() const { return m_additionalDataHasBeenSet; }
339 
343  inline void SetAdditionalData(const Aws::String& value) { m_additionalDataHasBeenSet = true; m_additionalData = value; }
344 
348  inline void SetAdditionalData(Aws::String&& value) { m_additionalDataHasBeenSet = true; m_additionalData = std::move(value); }
349 
353  inline void SetAdditionalData(const char* value) { m_additionalDataHasBeenSet = true; m_additionalData.assign(value); }
354 
358  inline Commit& WithAdditionalData(const Aws::String& value) { SetAdditionalData(value); return *this;}
359 
363  inline Commit& WithAdditionalData(Aws::String&& value) { SetAdditionalData(std::move(value)); return *this;}
364 
368  inline Commit& WithAdditionalData(const char* value) { SetAdditionalData(value); return *this;}
369 
370  private:
371 
372  Aws::String m_commitId;
373  bool m_commitIdHasBeenSet;
374 
375  Aws::String m_treeId;
376  bool m_treeIdHasBeenSet;
377 
378  Aws::Vector<Aws::String> m_parents;
379  bool m_parentsHasBeenSet;
380 
381  Aws::String m_message;
382  bool m_messageHasBeenSet;
383 
384  UserInfo m_author;
385  bool m_authorHasBeenSet;
386 
387  UserInfo m_committer;
388  bool m_committerHasBeenSet;
389 
390  Aws::String m_additionalData;
391  bool m_additionalDataHasBeenSet;
392  };
393 
394 } // namespace Model
395 } // namespace CodeCommit
396 } // namespace Aws
Aws::CodeCommit::Model::Commit::WithAdditionalData
Commit & WithAdditionalData(Aws::String &&value)
Definition: Commit.h:363
Aws::CodeCommit::Model::Commit::WithParents
Commit & WithParents(const Aws::Vector< Aws::String > &value)
Definition: Commit.h:152
Aws::CodeCommit::Model::Commit::GetTreeId
const Aws::String & GetTreeId() const
Definition: Commit.h:86
Aws::CodeCommit::Model::Commit::WithCommitId
Commit & WithCommitId(const Aws::String &value)
Definition: Commit.h:70
Aws::CodeCommit::Model::Commit::WithAdditionalData
Commit & WithAdditionalData(const char *value)
Definition: Commit.h:368
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Commit::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: Commit.h:101
Aws::CodeCommit::Model::Commit::SetMessage
void SetMessage(Aws::String &&value)
Definition: Commit.h:197
Aws::CodeCommit::Model::Commit::WithTreeId
Commit & WithTreeId(Aws::String &&value)
Definition: Commit.h:116
Aws::CodeCommit::Model::Commit::WithMessage
Commit & WithMessage(const char *value)
Definition: Commit.h:217
Aws::CodeCommit::Model::Commit::SetAdditionalData
void SetAdditionalData(Aws::String &&value)
Definition: Commit.h:348
Aws::CodeCommit::Model::Commit::Commit
Commit()
Aws::CodeCommit::Model::Commit::WithParents
Commit & WithParents(Aws::Vector< Aws::String > &&value)
Definition: Commit.h:158
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::Commit
Definition: Commit.h:34
Aws::CodeCommit::Model::Commit::ParentsHasBeenSet
bool ParentsHasBeenSet() const
Definition: Commit.h:134
Aws::CodeCommit::Model::Commit::WithCommitter
Commit & WithCommitter(const UserInfo &value)
Definition: Commit.h:316
Aws::CodeCommit::Model::Commit::SetCommitter
void SetCommitter(UserInfo &&value)
Definition: Commit.h:305
Aws::CodeCommit::Model::Commit::SetAuthor
void SetAuthor(const UserInfo &value)
Definition: Commit.h:239
AWSVector.h
Aws::CodeCommit::Model::Commit::GetAdditionalData
const Aws::String & GetAdditionalData() const
Definition: Commit.h:333
Aws::CodeCommit::Model::Commit::CommitIdHasBeenSet
bool CommitIdHasBeenSet() const
Definition: Commit.h:50
Aws::CodeCommit::Model::Commit::CommitterHasBeenSet
bool CommitterHasBeenSet() const
Definition: Commit.h:283
Aws::CodeCommit::Model::Commit::WithCommitId
Commit & WithCommitId(Aws::String &&value)
Definition: Commit.h:75
Aws::CodeCommit::Model::Commit::SetParents
void SetParents(Aws::Vector< Aws::String > &&value)
Definition: Commit.h:146
Aws::CodeCommit::Model::Commit::AddParents
Commit & AddParents(const char *value)
Definition: Commit.h:176
Aws::CodeCommit::Model::Commit::operator=
Commit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Commit::AddParents
Commit & AddParents(Aws::String &&value)
Definition: Commit.h:170
Aws::CodeCommit::Model::Commit::SetAdditionalData
void SetAdditionalData(const char *value)
Definition: Commit.h:353
Aws::CodeCommit::Model::Commit::AuthorHasBeenSet
bool AuthorHasBeenSet() const
Definition: Commit.h:232
Aws::CodeCommit::Model::Commit::WithTreeId
Commit & WithTreeId(const char *value)
Definition: Commit.h:121
Aws::CodeCommit::Model::Commit::WithAdditionalData
Commit & WithAdditionalData(const Aws::String &value)
Definition: Commit.h:358
Aws::CodeCommit::Model::Commit::WithCommitter
Commit & WithCommitter(UserInfo &&value)
Definition: Commit.h:327
Aws::CodeCommit::Model::Commit::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: Commit.h:55
Aws::CodeCommit::Model::Commit::GetAuthor
const UserInfo & GetAuthor() const
Definition: Commit.h:225
Aws::CodeCommit::Model::Commit::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: Commit.h:96
Aws::CodeCommit::Model::Commit::TreeIdHasBeenSet
bool TreeIdHasBeenSet() const
Definition: Commit.h:91
Aws::CodeCommit::Model::Commit::AdditionalDataHasBeenSet
bool AdditionalDataHasBeenSet() const
Definition: Commit.h:338
Aws::CodeCommit::Model::Commit::WithCommitId
Commit & WithCommitId(const char *value)
Definition: Commit.h:80
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::CodeCommit::Model::Commit::SetAdditionalData
void SetAdditionalData(const Aws::String &value)
Definition: Commit.h:343
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Commit::GetParents
const Aws::Vector< Aws::String > & GetParents() const
Definition: Commit.h:128
Aws::CodeCommit::Model::Commit::SetCommitter
void SetCommitter(const UserInfo &value)
Definition: Commit.h:294
Aws::CodeCommit::Model::Commit::WithTreeId
Commit & WithTreeId(const Aws::String &value)
Definition: Commit.h:111
Aws::CodeCommit::Model::Commit::WithAuthor
Commit & WithAuthor(UserInfo &&value)
Definition: Commit.h:260
Aws::CodeCommit::Model::Commit::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Commit.h:187
Aws::CodeCommit::Model::Commit::SetAuthor
void SetAuthor(UserInfo &&value)
Definition: Commit.h:246
Aws::CodeCommit::Model::Commit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::Commit::WithMessage
Commit & WithMessage(const Aws::String &value)
Definition: Commit.h:207
Aws::CodeCommit::Model::Commit::Commit
Commit(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Commit::GetCommitId
const Aws::String & GetCommitId() const
Definition: Commit.h:45
Aws::CodeCommit::Model::Commit::SetMessage
void SetMessage(const char *value)
Definition: Commit.h:202
Aws::CodeCommit::Model::Commit::SetCommitId
void SetCommitId(const char *value)
Definition: Commit.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::Commit::AddParents
Commit & AddParents(const Aws::String &value)
Definition: Commit.h:164
UserInfo.h
Aws::CodeCommit::Model::Commit::SetParents
void SetParents(const Aws::Vector< Aws::String > &value)
Definition: Commit.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::UserInfo
Definition: UserInfo.h:33
Aws::CodeCommit::Model::Commit::WithAuthor
Commit & WithAuthor(const UserInfo &value)
Definition: Commit.h:253
Aws::CodeCommit::Model::Commit::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: Commit.h:60
Aws::CodeCommit::Model::Commit::SetTreeId
void SetTreeId(const char *value)
Definition: Commit.h:106
Aws::CodeCommit::Model::Commit::WithMessage
Commit & WithMessage(Aws::String &&value)
Definition: Commit.h:212
Aws::CodeCommit::Model::Commit::SetMessage
void SetMessage(const Aws::String &value)
Definition: Commit.h:192
Aws::CodeCommit::Model::Commit::GetMessage
const Aws::String & GetMessage() const
Definition: Commit.h:182
Aws::CodeCommit::Model::Commit::GetCommitter
const UserInfo & GetCommitter() const
Definition: Commit.h:272