AWS SDK for C++  1.8.126
AWS SDK for C++
PostCommentForPullRequestRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace CodeCommit
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PostCommentForPullRequest"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
44 
49  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
50 
55  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
56 
61  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
62 
67  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
68 
73  inline PostCommentForPullRequestRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
74 
79  inline PostCommentForPullRequestRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
80 
85  inline PostCommentForPullRequestRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
86 
87 
92  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
93 
98  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
99 
104  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
105 
110  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
111 
116  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
117 
122  inline PostCommentForPullRequestRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
128  inline PostCommentForPullRequestRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
129 
134  inline PostCommentForPullRequestRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
135 
136 
141  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
142 
147  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
148 
153  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
154 
159  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
160 
165  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
166 
171  inline PostCommentForPullRequestRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
172 
177  inline PostCommentForPullRequestRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
178 
183  inline PostCommentForPullRequestRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
184 
185 
190  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
191 
196  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
197 
202  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
203 
208  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
209 
214  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
215 
220  inline PostCommentForPullRequestRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
221 
226  inline PostCommentForPullRequestRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
227 
232  inline PostCommentForPullRequestRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
233 
234 
240  inline const Location& GetLocation() const{ return m_location; }
241 
247  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
248 
254  inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
255 
261  inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
262 
268  inline PostCommentForPullRequestRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
269 
275  inline PostCommentForPullRequestRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
276 
277 
281  inline const Aws::String& GetContent() const{ return m_content; }
282 
286  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
287 
291  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
292 
296  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
297 
301  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
302 
306  inline PostCommentForPullRequestRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
307 
311  inline PostCommentForPullRequestRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
312 
316  inline PostCommentForPullRequestRequest& WithContent(const char* value) { SetContent(value); return *this;}
317 
318 
325  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
326 
333  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
334 
341  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
342 
349  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
350 
357  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
358 
365  inline PostCommentForPullRequestRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
366 
373  inline PostCommentForPullRequestRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
374 
381  inline PostCommentForPullRequestRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
382 
383  private:
384 
385  Aws::String m_pullRequestId;
386  bool m_pullRequestIdHasBeenSet;
387 
388  Aws::String m_repositoryName;
389  bool m_repositoryNameHasBeenSet;
390 
391  Aws::String m_beforeCommitId;
392  bool m_beforeCommitIdHasBeenSet;
393 
394  Aws::String m_afterCommitId;
395  bool m_afterCommitIdHasBeenSet;
396 
397  Location m_location;
398  bool m_locationHasBeenSet;
399 
400  Aws::String m_content;
401  bool m_contentHasBeenSet;
402 
403  Aws::String m_clientRequestToken;
404  bool m_clientRequestTokenHasBeenSet;
405  };
406 
407 } // namespace Model
408 } // namespace CodeCommit
409 } // namespace Aws
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetContent
void SetContent(const char *value)
Definition: PostCommentForPullRequestRequest.h:301
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithRepositoryName
PostCommentForPullRequestRequest & WithRepositoryName(const char *value)
Definition: PostCommentForPullRequestRequest.h:134
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PostCommentForPullRequestRequest
Definition: PostCommentForPullRequestRequest.h:24
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: PostCommentForPullRequestRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithClientRequestToken
PostCommentForPullRequestRequest & WithClientRequestToken(const char *value)
Definition: PostCommentForPullRequestRequest.h:381
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: PostCommentForPullRequestRequest.h:325
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetContent
void SetContent(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:291
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: PostCommentForPullRequestRequest.h:190
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithPullRequestId
PostCommentForPullRequestRequest & WithPullRequestId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:79
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithAfterCommitId
PostCommentForPullRequestRequest & WithAfterCommitId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:226
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:208
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:49
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:110
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: PostCommentForPullRequestRequest.h:141
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SerializePayload
Aws::String SerializePayload() const override
CodeCommitRequest.h
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithClientRequestToken
PostCommentForPullRequestRequest & WithClientRequestToken(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:373
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithLocation
PostCommentForPullRequestRequest & WithLocation(Location &&value)
Definition: PostCommentForPullRequestRequest.h:275
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: PostCommentForPullRequestRequest.h:214
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetLocation
void SetLocation(Location &&value)
Definition: PostCommentForPullRequestRequest.h:261
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:202
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetContent
void SetContent(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:296
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithClientRequestToken
PostCommentForPullRequestRequest & WithClientRequestToken(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:365
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetLocation
const Location & GetLocation() const
Definition: PostCommentForPullRequestRequest.h:240
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: PostCommentForPullRequestRequest.h:165
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PostCommentForPullRequestRequest.h:32
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithRepositoryName
PostCommentForPullRequestRequest & WithRepositoryName(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:128
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithBeforeCommitId
PostCommentForPullRequestRequest & WithBeforeCommitId(const char *value)
Definition: PostCommentForPullRequestRequest.h:183
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:341
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: PostCommentForPullRequestRequest.h:357
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: PostCommentForPullRequestRequest.h:67
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:196
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithBeforeCommitId
PostCommentForPullRequestRequest & WithBeforeCommitId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:171
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithAfterCommitId
PostCommentForPullRequestRequest & WithAfterCommitId(const char *value)
Definition: PostCommentForPullRequestRequest.h:232
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PostCommentForPullRequestRequest.h:92
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::PostCommentForPullRequestRequest
PostCommentForPullRequestRequest()
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:55
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithPullRequestId
PostCommentForPullRequestRequest & WithPullRequestId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:73
AWSString.h
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:153
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:104
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:61
Aws::CodeCommit::Model::Location
Definition: Location.h:34
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithContent
PostCommentForPullRequestRequest & WithContent(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:311
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:333
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:98
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetLocation
void SetLocation(const Location &value)
Definition: PostCommentForPullRequestRequest.h:254
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithAfterCommitId
PostCommentForPullRequestRequest & WithAfterCommitId(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:220
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PostCommentForPullRequestRequest.h:116
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithLocation
PostCommentForPullRequestRequest & WithLocation(const Location &value)
Definition: PostCommentForPullRequestRequest.h:268
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:247
Location.h
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:159
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithContent
PostCommentForPullRequestRequest & WithContent(const char *value)
Definition: PostCommentForPullRequestRequest.h:316
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithContent
PostCommentForPullRequestRequest & WithContent(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:306
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:286
UUID.h
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: PostCommentForPullRequestRequest.h:147
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:349
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithRepositoryName
PostCommentForPullRequestRequest & WithRepositoryName(const Aws::String &value)
Definition: PostCommentForPullRequestRequest.h:122
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithBeforeCommitId
PostCommentForPullRequestRequest & WithBeforeCommitId(Aws::String &&value)
Definition: PostCommentForPullRequestRequest.h:177
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::GetContent
const Aws::String & GetContent() const
Definition: PostCommentForPullRequestRequest.h:281
Aws::CodeCommit::Model::PostCommentForPullRequestRequest::WithPullRequestId
PostCommentForPullRequestRequest & WithPullRequestId(const char *value)
Definition: PostCommentForPullRequestRequest.h:85