AWS SDK for C++  1.9.125
AWS SDK for C++
PostCommentForComparedCommitRequest.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 "PostCommentForComparedCommit"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
44 
49  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 
55  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
56 
61  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
62 
67  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
68 
73  inline PostCommentForComparedCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
74 
79  inline PostCommentForComparedCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
80 
85  inline PostCommentForComparedCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
86 
87 
93  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
94 
100  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
101 
107  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
108 
114  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
115 
121  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
122 
128  inline PostCommentForComparedCommitRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
129 
135  inline PostCommentForComparedCommitRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
136 
142  inline PostCommentForComparedCommitRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
143 
144 
149  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
150 
155  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
156 
161  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
162 
167  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
168 
173  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
174 
179  inline PostCommentForComparedCommitRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
180 
185  inline PostCommentForComparedCommitRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
186 
191  inline PostCommentForComparedCommitRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
192 
193 
197  inline const Location& GetLocation() const{ return m_location; }
198 
202  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
203 
207  inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
208 
212  inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
213 
217  inline PostCommentForComparedCommitRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
218 
222  inline PostCommentForComparedCommitRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
223 
224 
228  inline const Aws::String& GetContent() const{ return m_content; }
229 
233  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
234 
238  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
239 
243  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
244 
248  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
249 
253  inline PostCommentForComparedCommitRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
254 
258  inline PostCommentForComparedCommitRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
259 
263  inline PostCommentForComparedCommitRequest& WithContent(const char* value) { SetContent(value); return *this;}
264 
265 
272  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
273 
280  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
281 
288  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
289 
296  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
297 
304  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
305 
312  inline PostCommentForComparedCommitRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
313 
320  inline PostCommentForComparedCommitRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
321 
328  inline PostCommentForComparedCommitRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
329 
330  private:
331 
332  Aws::String m_repositoryName;
333  bool m_repositoryNameHasBeenSet;
334 
335  Aws::String m_beforeCommitId;
336  bool m_beforeCommitIdHasBeenSet;
337 
338  Aws::String m_afterCommitId;
339  bool m_afterCommitIdHasBeenSet;
340 
341  Location m_location;
342  bool m_locationHasBeenSet;
343 
344  Aws::String m_content;
345  bool m_contentHasBeenSet;
346 
347  Aws::String m_clientRequestToken;
348  bool m_clientRequestTokenHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace CodeCommit
353 } // namespace Aws
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:161
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PostCommentForComparedCommitRequest.h:67
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithClientRequestToken
PostCommentForComparedCommitRequest & WithClientRequestToken(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:312
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:100
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithClientRequestToken
PostCommentForComparedCommitRequest & WithClientRequestToken(const char *value)
Definition: PostCommentForComparedCommitRequest.h:328
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:49
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: PostCommentForComparedCommitRequest.h:272
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PostCommentForComparedCommitRequest.h:43
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetContent
void SetContent(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:238
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithContent
PostCommentForComparedCommitRequest & WithContent(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:258
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: PostCommentForComparedCommitRequest.h:304
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:107
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: PostCommentForComparedCommitRequest.h:173
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: PostCommentForComparedCommitRequest.h:121
CodeCommitRequest.h
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithAfterCommitId
PostCommentForComparedCommitRequest & WithAfterCommitId(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:179
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithBeforeCommitId
PostCommentForComparedCommitRequest & WithBeforeCommitId(const char *value)
Definition: PostCommentForComparedCommitRequest.h:142
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:202
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetLocation
void SetLocation(const Location &value)
Definition: PostCommentForComparedCommitRequest.h:207
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetContent
void SetContent(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:243
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:55
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:280
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:296
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetLocation
const Location & GetLocation() const
Definition: PostCommentForComparedCommitRequest.h:197
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithRepositoryName
PostCommentForComparedCommitRequest & WithRepositoryName(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:79
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: PostCommentForComparedCommitRequest.h:149
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetContent
void SetContent(const char *value)
Definition: PostCommentForComparedCommitRequest.h:248
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithLocation
PostCommentForComparedCommitRequest & WithLocation(Location &&value)
Definition: PostCommentForComparedCommitRequest.h:222
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithRepositoryName
PostCommentForComparedCommitRequest & WithRepositoryName(const char *value)
Definition: PostCommentForComparedCommitRequest.h:85
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithBeforeCommitId
PostCommentForComparedCommitRequest & WithBeforeCommitId(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:128
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithContent
PostCommentForComparedCommitRequest & WithContent(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:253
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:155
Aws::CodeCommit::Model::Location
Definition: Location.h:34
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: PostCommentForComparedCommitRequest.h:93
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: PostCommentForComparedCommitRequest.h:233
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::PostCommentForComparedCommitRequest
PostCommentForComparedCommitRequest()
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetContent
const Aws::String & GetContent() const
Definition: PostCommentForComparedCommitRequest.h:228
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithClientRequestToken
PostCommentForComparedCommitRequest & WithClientRequestToken(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:320
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PostCommentForComparedCommitRequest.h:32
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest
Definition: PostCommentForComparedCommitRequest.h:24
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithRepositoryName
PostCommentForComparedCommitRequest & WithRepositoryName(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: PostCommentForComparedCommitRequest.h:288
Location.h
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithAfterCommitId
PostCommentForComparedCommitRequest & WithAfterCommitId(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetLocation
void SetLocation(Location &&value)
Definition: PostCommentForComparedCommitRequest.h:212
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:61
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithAfterCommitId
PostCommentForComparedCommitRequest & WithAfterCommitId(const char *value)
Definition: PostCommentForComparedCommitRequest.h:191
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithLocation
PostCommentForComparedCommitRequest & WithLocation(const Location &value)
Definition: PostCommentForComparedCommitRequest.h:217
UUID.h
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithContent
PostCommentForComparedCommitRequest & WithContent(const char *value)
Definition: PostCommentForComparedCommitRequest.h:263
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:167
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:114
Aws::CodeCommit::Model::PostCommentForComparedCommitRequest::WithBeforeCommitId
PostCommentForComparedCommitRequest & WithBeforeCommitId(Aws::String &&value)
Definition: PostCommentForComparedCommitRequest.h:135