AWS SDK for C++  1.8.152
AWS SDK for C++
CommentsForComparedCommit.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
48 
52  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
53 
57  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
58 
62  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
63 
67  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
68 
72  inline CommentsForComparedCommit& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
73 
77  inline CommentsForComparedCommit& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
78 
82  inline CommentsForComparedCommit& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
83 
84 
89  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
90 
95  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
96 
101  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
102 
107  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
108 
113  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
114 
119  inline CommentsForComparedCommit& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
120 
125  inline CommentsForComparedCommit& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
126 
131  inline CommentsForComparedCommit& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
132 
133 
138  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
139 
144  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
145 
150  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
151 
156  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
157 
162  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
163 
168  inline CommentsForComparedCommit& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
169 
174  inline CommentsForComparedCommit& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
175 
180  inline CommentsForComparedCommit& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
181 
182 
187  inline const Aws::String& GetBeforeBlobId() const{ return m_beforeBlobId; }
188 
193  inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
194 
199  inline void SetBeforeBlobId(const Aws::String& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = value; }
200 
205  inline void SetBeforeBlobId(Aws::String&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::move(value); }
206 
211  inline void SetBeforeBlobId(const char* value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId.assign(value); }
212 
217  inline CommentsForComparedCommit& WithBeforeBlobId(const Aws::String& value) { SetBeforeBlobId(value); return *this;}
218 
223  inline CommentsForComparedCommit& WithBeforeBlobId(Aws::String&& value) { SetBeforeBlobId(std::move(value)); return *this;}
224 
229  inline CommentsForComparedCommit& WithBeforeBlobId(const char* value) { SetBeforeBlobId(value); return *this;}
230 
231 
236  inline const Aws::String& GetAfterBlobId() const{ return m_afterBlobId; }
237 
242  inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
243 
248  inline void SetAfterBlobId(const Aws::String& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = value; }
249 
254  inline void SetAfterBlobId(Aws::String&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::move(value); }
255 
260  inline void SetAfterBlobId(const char* value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId.assign(value); }
261 
266  inline CommentsForComparedCommit& WithAfterBlobId(const Aws::String& value) { SetAfterBlobId(value); return *this;}
267 
272  inline CommentsForComparedCommit& WithAfterBlobId(Aws::String&& value) { SetAfterBlobId(std::move(value)); return *this;}
273 
278  inline CommentsForComparedCommit& WithAfterBlobId(const char* value) { SetAfterBlobId(value); return *this;}
279 
280 
286  inline const Location& GetLocation() const{ return m_location; }
287 
293  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
294 
300  inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
301 
307  inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
308 
314  inline CommentsForComparedCommit& WithLocation(const Location& value) { SetLocation(value); return *this;}
315 
321  inline CommentsForComparedCommit& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
322 
323 
328  inline const Aws::Vector<Comment>& GetComments() const{ return m_comments; }
329 
334  inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
335 
340  inline void SetComments(const Aws::Vector<Comment>& value) { m_commentsHasBeenSet = true; m_comments = value; }
341 
346  inline void SetComments(Aws::Vector<Comment>&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
347 
352  inline CommentsForComparedCommit& WithComments(const Aws::Vector<Comment>& value) { SetComments(value); return *this;}
353 
358  inline CommentsForComparedCommit& WithComments(Aws::Vector<Comment>&& value) { SetComments(std::move(value)); return *this;}
359 
364  inline CommentsForComparedCommit& AddComments(const Comment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; }
365 
370  inline CommentsForComparedCommit& AddComments(Comment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; }
371 
372  private:
373 
374  Aws::String m_repositoryName;
375  bool m_repositoryNameHasBeenSet;
376 
377  Aws::String m_beforeCommitId;
378  bool m_beforeCommitIdHasBeenSet;
379 
380  Aws::String m_afterCommitId;
381  bool m_afterCommitIdHasBeenSet;
382 
383  Aws::String m_beforeBlobId;
384  bool m_beforeBlobIdHasBeenSet;
385 
386  Aws::String m_afterBlobId;
387  bool m_afterBlobIdHasBeenSet;
388 
389  Location m_location;
390  bool m_locationHasBeenSet;
391 
392  Aws::Vector<Comment> m_comments;
393  bool m_commentsHasBeenSet;
394  };
395 
396 } // namespace Model
397 } // namespace CodeCommit
398 } // namespace Aws
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterBlobId
CommentsForComparedCommit & WithAfterBlobId(const char *value)
Definition: CommentsForComparedCommit.h:278
Aws::CodeCommit::Model::CommentsForComparedCommit::GetBeforeBlobId
const Aws::String & GetBeforeBlobId() const
Definition: CommentsForComparedCommit.h:187
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterBlobId
CommentsForComparedCommit & WithAfterBlobId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:266
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::CommentsForComparedCommit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterCommitId
CommentsForComparedCommit & WithAfterCommitId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:168
Aws::CodeCommit::Model::CommentsForComparedCommit::operator=
CommentsForComparedCommit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeBlobId
CommentsForComparedCommit & WithBeforeBlobId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:223
Aws::CodeCommit::Model::CommentsForComparedCommit::SetComments
void SetComments(const Aws::Vector< Comment > &value)
Definition: CommentsForComparedCommit.h:340
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:101
Aws::CodeCommit::Model::CommentsForComparedCommit::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CommentsForComparedCommit.h:62
Aws::CodeCommit::Model::CommentsForComparedCommit::WithComments
CommentsForComparedCommit & WithComments(const Aws::Vector< Comment > &value)
Definition: CommentsForComparedCommit.h:352
Aws::CodeCommit::Model::Comment
Definition: Comment.h:35
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: CommentsForComparedCommit.h:162
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:107
Aws::CodeCommit::Model::CommentsForComparedCommit::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CommentsForComparedCommit.h:47
Aws::CodeCommit::Model::CommentsForComparedCommit::GetComments
const Aws::Vector< Comment > & GetComments() const
Definition: CommentsForComparedCommit.h:328
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeBlobId
CommentsForComparedCommit & WithBeforeBlobId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:217
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeBlobId
CommentsForComparedCommit & WithBeforeBlobId(const char *value)
Definition: CommentsForComparedCommit.h:229
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterBlobId
void SetAfterBlobId(const char *value)
Definition: CommentsForComparedCommit.h:260
Aws::CodeCommit::Model::CommentsForComparedCommit::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: CommentsForComparedCommit.h:57
Aws::CodeCommit::Model::CommentsForComparedCommit::GetAfterBlobId
const Aws::String & GetAfterBlobId() const
Definition: CommentsForComparedCommit.h:236
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeCommitId
CommentsForComparedCommit & WithBeforeCommitId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:119
Comment.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterBlobId
void SetAfterBlobId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:248
Aws::CodeCommit::Model::CommentsForComparedCommit::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: CommentsForComparedCommit.h:138
Aws::CodeCommit::Model::CommentsForComparedCommit::CommentsForComparedCommit
CommentsForComparedCommit()
AWSVector.h
Aws::CodeCommit::Model::CommentsForComparedCommit::WithLocation
CommentsForComparedCommit & WithLocation(Location &&value)
Definition: CommentsForComparedCommit.h:321
Aws::CodeCommit::Model::CommentsForComparedCommit::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: CommentsForComparedCommit.h:89
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterCommitId
CommentsForComparedCommit & WithAfterCommitId(const char *value)
Definition: CommentsForComparedCommit.h:180
Aws::CodeCommit::Model::CommentsForComparedCommit::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CommentsForComparedCommit.h:52
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeCommitId
CommentsForComparedCommit & WithBeforeCommitId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:125
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeBlobId
void SetBeforeBlobId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:205
Aws::CodeCommit::Model::CommentsForComparedCommit::WithComments
CommentsForComparedCommit & WithComments(Aws::Vector< Comment > &&value)
Definition: CommentsForComparedCommit.h:358
Aws::CodeCommit::Model::CommentsForComparedCommit::AddComments
CommentsForComparedCommit & AddComments(Comment &&value)
Definition: CommentsForComparedCommit.h:370
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:150
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterCommitId
CommentsForComparedCommit & WithAfterCommitId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:174
Aws::CodeCommit::Model::CommentsForComparedCommit::CommentsHasBeenSet
bool CommentsHasBeenSet() const
Definition: CommentsForComparedCommit.h:334
Aws::CodeCommit::Model::CommentsForComparedCommit::BeforeBlobIdHasBeenSet
bool BeforeBlobIdHasBeenSet() const
Definition: CommentsForComparedCommit.h:193
Aws::CodeCommit::Model::CommentsForComparedCommit::SetLocation
void SetLocation(const Location &value)
Definition: CommentsForComparedCommit.h:300
Aws::CodeCommit::Model::CommentsForComparedCommit::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: CommentsForComparedCommit.h:144
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:156
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::CommentsForComparedCommit::WithBeforeCommitId
CommentsForComparedCommit & WithBeforeCommitId(const char *value)
Definition: CommentsForComparedCommit.h:131
AWSString.h
Aws::CodeCommit::Model::CommentsForComparedCommit::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: CommentsForComparedCommit.h:95
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: CommentsForComparedCommit.h:113
Aws::CodeCommit::Model::CommentsForComparedCommit::SetLocation
void SetLocation(Location &&value)
Definition: CommentsForComparedCommit.h:307
Aws::CodeCommit::Model::Location
Definition: Location.h:34
Aws::CodeCommit::Model::CommentsForComparedCommit::AddComments
CommentsForComparedCommit & AddComments(const Comment &value)
Definition: CommentsForComparedCommit.h:364
Aws::CodeCommit::Model::CommentsForComparedCommit
Definition: CommentsForComparedCommit.h:36
Aws::CodeCommit::Model::CommentsForComparedCommit::AfterBlobIdHasBeenSet
bool AfterBlobIdHasBeenSet() const
Definition: CommentsForComparedCommit.h:242
Aws::CodeCommit::Model::CommentsForComparedCommit::SetAfterBlobId
void SetAfterBlobId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:254
Aws::CodeCommit::Model::CommentsForComparedCommit::WithRepositoryName
CommentsForComparedCommit & WithRepositoryName(const Aws::String &value)
Definition: CommentsForComparedCommit.h:72
Aws::CodeCommit::Model::CommentsForComparedCommit::WithRepositoryName
CommentsForComparedCommit & WithRepositoryName(const char *value)
Definition: CommentsForComparedCommit.h:82
Aws::CodeCommit::Model::CommentsForComparedCommit::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CommentsForComparedCommit.h:293
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeBlobId
void SetBeforeBlobId(const Aws::String &value)
Definition: CommentsForComparedCommit.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::CommentsForComparedCommit::GetLocation
const Location & GetLocation() const
Definition: CommentsForComparedCommit.h:286
Aws::CodeCommit::Model::CommentsForComparedCommit::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CommentsForComparedCommit.h:67
Location.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::CommentsForComparedCommit::SetComments
void SetComments(Aws::Vector< Comment > &&value)
Definition: CommentsForComparedCommit.h:346
Aws::CodeCommit::Model::CommentsForComparedCommit::WithRepositoryName
CommentsForComparedCommit & WithRepositoryName(Aws::String &&value)
Definition: CommentsForComparedCommit.h:77
Aws::CodeCommit::Model::CommentsForComparedCommit::CommentsForComparedCommit
CommentsForComparedCommit(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::CommentsForComparedCommit::SetBeforeBlobId
void SetBeforeBlobId(const char *value)
Definition: CommentsForComparedCommit.h:211
Aws::CodeCommit::Model::CommentsForComparedCommit::WithLocation
CommentsForComparedCommit & WithLocation(const Location &value)
Definition: CommentsForComparedCommit.h:314
Aws::CodeCommit::Model::CommentsForComparedCommit::WithAfterBlobId
CommentsForComparedCommit & WithAfterBlobId(Aws::String &&value)
Definition: CommentsForComparedCommit.h:272