AWS SDK for C++  1.8.152
AWS SDK for C++
CommentsForPullRequest.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& GetPullRequestId() const{ return m_pullRequestId; }
48 
52  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
53 
57  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
58 
62  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
63 
67  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
68 
72  inline CommentsForPullRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
73 
77  inline CommentsForPullRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
78 
82  inline CommentsForPullRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
83 
84 
88  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
89 
93  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
94 
98  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
99 
103  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
104 
108  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
109 
113  inline CommentsForPullRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
114 
118  inline CommentsForPullRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
119 
123  inline CommentsForPullRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
124 
125 
132  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
133 
140  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
141 
148  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
149 
156  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
157 
164  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
165 
172  inline CommentsForPullRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
173 
180  inline CommentsForPullRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
181 
188  inline CommentsForPullRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
189 
190 
195  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
196 
201  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
202 
207  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
208 
213  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
214 
219  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
220 
225  inline CommentsForPullRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
226 
231  inline CommentsForPullRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
232 
237  inline CommentsForPullRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
238 
239 
244  inline const Aws::String& GetBeforeBlobId() const{ return m_beforeBlobId; }
245 
250  inline bool BeforeBlobIdHasBeenSet() const { return m_beforeBlobIdHasBeenSet; }
251 
256  inline void SetBeforeBlobId(const Aws::String& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = value; }
257 
262  inline void SetBeforeBlobId(Aws::String&& value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId = std::move(value); }
263 
268  inline void SetBeforeBlobId(const char* value) { m_beforeBlobIdHasBeenSet = true; m_beforeBlobId.assign(value); }
269 
274  inline CommentsForPullRequest& WithBeforeBlobId(const Aws::String& value) { SetBeforeBlobId(value); return *this;}
275 
280  inline CommentsForPullRequest& WithBeforeBlobId(Aws::String&& value) { SetBeforeBlobId(std::move(value)); return *this;}
281 
286  inline CommentsForPullRequest& WithBeforeBlobId(const char* value) { SetBeforeBlobId(value); return *this;}
287 
288 
293  inline const Aws::String& GetAfterBlobId() const{ return m_afterBlobId; }
294 
299  inline bool AfterBlobIdHasBeenSet() const { return m_afterBlobIdHasBeenSet; }
300 
305  inline void SetAfterBlobId(const Aws::String& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = value; }
306 
311  inline void SetAfterBlobId(Aws::String&& value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId = std::move(value); }
312 
317  inline void SetAfterBlobId(const char* value) { m_afterBlobIdHasBeenSet = true; m_afterBlobId.assign(value); }
318 
323  inline CommentsForPullRequest& WithAfterBlobId(const Aws::String& value) { SetAfterBlobId(value); return *this;}
324 
329  inline CommentsForPullRequest& WithAfterBlobId(Aws::String&& value) { SetAfterBlobId(std::move(value)); return *this;}
330 
335  inline CommentsForPullRequest& WithAfterBlobId(const char* value) { SetAfterBlobId(value); return *this;}
336 
337 
343  inline const Location& GetLocation() const{ return m_location; }
344 
350  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
351 
357  inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
358 
364  inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
365 
371  inline CommentsForPullRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
372 
378  inline CommentsForPullRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
379 
380 
385  inline const Aws::Vector<Comment>& GetComments() const{ return m_comments; }
386 
391  inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
392 
397  inline void SetComments(const Aws::Vector<Comment>& value) { m_commentsHasBeenSet = true; m_comments = value; }
398 
403  inline void SetComments(Aws::Vector<Comment>&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
404 
409  inline CommentsForPullRequest& WithComments(const Aws::Vector<Comment>& value) { SetComments(value); return *this;}
410 
415  inline CommentsForPullRequest& WithComments(Aws::Vector<Comment>&& value) { SetComments(std::move(value)); return *this;}
416 
421  inline CommentsForPullRequest& AddComments(const Comment& value) { m_commentsHasBeenSet = true; m_comments.push_back(value); return *this; }
422 
427  inline CommentsForPullRequest& AddComments(Comment&& value) { m_commentsHasBeenSet = true; m_comments.push_back(std::move(value)); return *this; }
428 
429  private:
430 
431  Aws::String m_pullRequestId;
432  bool m_pullRequestIdHasBeenSet;
433 
434  Aws::String m_repositoryName;
435  bool m_repositoryNameHasBeenSet;
436 
437  Aws::String m_beforeCommitId;
438  bool m_beforeCommitIdHasBeenSet;
439 
440  Aws::String m_afterCommitId;
441  bool m_afterCommitIdHasBeenSet;
442 
443  Aws::String m_beforeBlobId;
444  bool m_beforeBlobIdHasBeenSet;
445 
446  Aws::String m_afterBlobId;
447  bool m_afterBlobIdHasBeenSet;
448 
449  Location m_location;
450  bool m_locationHasBeenSet;
451 
452  Aws::Vector<Comment> m_comments;
453  bool m_commentsHasBeenSet;
454  };
455 
456 } // namespace Model
457 } // namespace CodeCommit
458 } // namespace Aws
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterBlobId
void SetAfterBlobId(Aws::String &&value)
Definition: CommentsForPullRequest.h:311
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterBlobId
CommentsForPullRequest & WithAfterBlobId(const char *value)
Definition: CommentsForPullRequest.h:335
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeCommitId
CommentsForPullRequest & WithBeforeCommitId(const char *value)
Definition: CommentsForPullRequest.h:188
Aws::CodeCommit::Model::CommentsForPullRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CommentsForPullRequest.h:93
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeCommitId
CommentsForPullRequest & WithBeforeCommitId(Aws::String &&value)
Definition: CommentsForPullRequest.h:180
Aws::CodeCommit::Model::CommentsForPullRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: CommentsForPullRequest.h:52
Aws::CodeCommit::Model::CommentsForPullRequest::WithPullRequestId
CommentsForPullRequest & WithPullRequestId(Aws::String &&value)
Definition: CommentsForPullRequest.h:77
Aws::CodeCommit::Model::Comment
Definition: Comment.h:35
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: CommentsForPullRequest.h:156
Aws::CodeCommit::Model::CommentsForPullRequest::WithRepositoryName
CommentsForPullRequest & WithRepositoryName(const Aws::String &value)
Definition: CommentsForPullRequest.h:113
Aws::CodeCommit::Model::CommentsForPullRequest::AfterBlobIdHasBeenSet
bool AfterBlobIdHasBeenSet() const
Definition: CommentsForPullRequest.h:299
Aws::CodeCommit::Model::CommentsForPullRequest::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: CommentsForPullRequest.h:140
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterBlobId
void SetAfterBlobId(const Aws::String &value)
Definition: CommentsForPullRequest.h:305
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: CommentsForPullRequest.h:219
Comment.h
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: CommentsForPullRequest.h:148
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::CommentsForPullRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: CommentsForPullRequest.h:57
Aws::CodeCommit::Model::CommentsForPullRequest::GetLocation
const Location & GetLocation() const
Definition: CommentsForPullRequest.h:343
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterBlobId
void SetAfterBlobId(const char *value)
Definition: CommentsForPullRequest.h:317
AWSVector.h
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeBlobId
CommentsForPullRequest & WithBeforeBlobId(Aws::String &&value)
Definition: CommentsForPullRequest.h:280
Aws::CodeCommit::Model::CommentsForPullRequest::WithPullRequestId
CommentsForPullRequest & WithPullRequestId(const char *value)
Definition: CommentsForPullRequest.h:82
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeBlobId
void SetBeforeBlobId(const char *value)
Definition: CommentsForPullRequest.h:268
Aws::CodeCommit::Model::CommentsForPullRequest::GetAfterBlobId
const Aws::String & GetAfterBlobId() const
Definition: CommentsForPullRequest.h:293
Aws::CodeCommit::Model::CommentsForPullRequest::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: CommentsForPullRequest.h:195
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeCommitId
CommentsForPullRequest & WithBeforeCommitId(const Aws::String &value)
Definition: CommentsForPullRequest.h:172
Aws::CodeCommit::Model::CommentsForPullRequest
Definition: CommentsForPullRequest.h:36
Aws::CodeCommit::Model::CommentsForPullRequest::WithRepositoryName
CommentsForPullRequest & WithRepositoryName(const char *value)
Definition: CommentsForPullRequest.h:123
Aws::CodeCommit::Model::CommentsForPullRequest::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: CommentsForPullRequest.h:132
Aws::CodeCommit::Model::CommentsForPullRequest::WithRepositoryName
CommentsForPullRequest & WithRepositoryName(Aws::String &&value)
Definition: CommentsForPullRequest.h:118
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterBlobId
CommentsForPullRequest & WithAfterBlobId(const Aws::String &value)
Definition: CommentsForPullRequest.h:323
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterCommitId
CommentsForPullRequest & WithAfterCommitId(const Aws::String &value)
Definition: CommentsForPullRequest.h:225
Aws::CodeCommit::Model::CommentsForPullRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: CommentsForPullRequest.h:47
Aws::CodeCommit::Model::CommentsForPullRequest::WithComments
CommentsForPullRequest & WithComments(const Aws::Vector< Comment > &value)
Definition: CommentsForPullRequest.h:409
Aws::CodeCommit::Model::CommentsForPullRequest::SetComments
void SetComments(Aws::Vector< Comment > &&value)
Definition: CommentsForPullRequest.h:403
Aws::CodeCommit::Model::CommentsForPullRequest::SetComments
void SetComments(const Aws::Vector< Comment > &value)
Definition: CommentsForPullRequest.h:397
Aws::CodeCommit::Model::CommentsForPullRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: CommentsForPullRequest.h:67
Aws::CodeCommit::Model::CommentsForPullRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: CommentsForPullRequest.h:213
Aws::CodeCommit::Model::CommentsForPullRequest::GetComments
const Aws::Vector< Comment > & GetComments() const
Definition: CommentsForPullRequest.h:385
Aws::CodeCommit::Model::CommentsForPullRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: CommentsForPullRequest.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::CommentsForPullRequest::WithPullRequestId
CommentsForPullRequest & WithPullRequestId(const Aws::String &value)
Definition: CommentsForPullRequest.h:72
AWSString.h
Aws::CodeCommit::Model::CommentsForPullRequest::CommentsHasBeenSet
bool CommentsHasBeenSet() const
Definition: CommentsForPullRequest.h:391
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::CommentsForPullRequest::CommentsForPullRequest
CommentsForPullRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Location
Definition: Location.h:34
Aws::CodeCommit::Model::CommentsForPullRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CommentsForPullRequest.h:350
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterCommitId
CommentsForPullRequest & WithAfterCommitId(Aws::String &&value)
Definition: CommentsForPullRequest.h:231
Aws::CodeCommit::Model::CommentsForPullRequest::GetBeforeBlobId
const Aws::String & GetBeforeBlobId() const
Definition: CommentsForPullRequest.h:244
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: CommentsForPullRequest.h:164
Aws::CodeCommit::Model::CommentsForPullRequest::BeforeBlobIdHasBeenSet
bool BeforeBlobIdHasBeenSet() const
Definition: CommentsForPullRequest.h:250
Aws::CodeCommit::Model::CommentsForPullRequest::WithComments
CommentsForPullRequest & WithComments(Aws::Vector< Comment > &&value)
Definition: CommentsForPullRequest.h:415
Aws::CodeCommit::Model::CommentsForPullRequest::WithLocation
CommentsForPullRequest & WithLocation(Location &&value)
Definition: CommentsForPullRequest.h:378
Aws::CodeCommit::Model::CommentsForPullRequest::AddComments
CommentsForPullRequest & AddComments(Comment &&value)
Definition: CommentsForPullRequest.h:427
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterCommitId
CommentsForPullRequest & WithAfterCommitId(const char *value)
Definition: CommentsForPullRequest.h:237
Aws::CodeCommit::Model::CommentsForPullRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CommentsForPullRequest.h:88
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeBlobId
void SetBeforeBlobId(const Aws::String &value)
Definition: CommentsForPullRequest.h:256
Aws::CodeCommit::Model::CommentsForPullRequest::WithAfterBlobId
CommentsForPullRequest & WithAfterBlobId(Aws::String &&value)
Definition: CommentsForPullRequest.h:329
Aws
Definition: AccessManagementClient.h:15
Location.h
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeBlobId
CommentsForPullRequest & WithBeforeBlobId(const char *value)
Definition: CommentsForPullRequest.h:286
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::CommentsForPullRequest::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: CommentsForPullRequest.h:207
Aws::CodeCommit::Model::CommentsForPullRequest::CommentsForPullRequest
CommentsForPullRequest()
Aws::CodeCommit::Model::CommentsForPullRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: CommentsForPullRequest.h:98
Aws::CodeCommit::Model::CommentsForPullRequest::WithLocation
CommentsForPullRequest & WithLocation(const Location &value)
Definition: CommentsForPullRequest.h:371
Aws::CodeCommit::Model::CommentsForPullRequest::operator=
CommentsForPullRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::CommentsForPullRequest::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: CommentsForPullRequest.h:201
Aws::CodeCommit::Model::CommentsForPullRequest::SetLocation
void SetLocation(Location &&value)
Definition: CommentsForPullRequest.h:364
Aws::CodeCommit::Model::CommentsForPullRequest::WithBeforeBlobId
CommentsForPullRequest & WithBeforeBlobId(const Aws::String &value)
Definition: CommentsForPullRequest.h:274
Aws::CodeCommit::Model::CommentsForPullRequest::SetBeforeBlobId
void SetBeforeBlobId(Aws::String &&value)
Definition: CommentsForPullRequest.h:262
Aws::CodeCommit::Model::CommentsForPullRequest::SetLocation
void SetLocation(const Location &value)
Definition: CommentsForPullRequest.h:357
Aws::CodeCommit::Model::CommentsForPullRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CommentsForPullRequest.h:108
Aws::CodeCommit::Model::CommentsForPullRequest::AddComments
CommentsForPullRequest & AddComments(const Comment &value)
Definition: CommentsForPullRequest.h:421
Aws::CodeCommit::Model::CommentsForPullRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CommentsForPullRequest.h:103