AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateCodeReviewRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace CodeGuruReviewer
17{
18namespace 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 "CreateCodeReview"; }
33
35
36
41 inline const Aws::String& GetName() const{ return m_name; }
42
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66
71 inline CreateCodeReviewRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
72
77 inline CreateCodeReviewRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78
83 inline CreateCodeReviewRequest& WithName(const char* value) { SetName(value); return *this;}
84
85
94 inline const Aws::String& GetRepositoryAssociationArn() const{ return m_repositoryAssociationArn; }
95
104 inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; }
105
114 inline void SetRepositoryAssociationArn(const Aws::String& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = value; }
115
124 inline void SetRepositoryAssociationArn(Aws::String&& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = std::move(value); }
125
134 inline void SetRepositoryAssociationArn(const char* value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn.assign(value); }
135
145
155
164 inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const char* value) { SetRepositoryAssociationArn(value); return *this;}
165
166
173 inline const CodeReviewType& GetType() const{ return m_type; }
174
181 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
182
189 inline void SetType(const CodeReviewType& value) { m_typeHasBeenSet = true; m_type = value; }
190
197 inline void SetType(CodeReviewType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
198
205 inline CreateCodeReviewRequest& WithType(const CodeReviewType& value) { SetType(value); return *this;}
206
213 inline CreateCodeReviewRequest& WithType(CodeReviewType&& value) { SetType(std::move(value)); return *this;}
214
215
220 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
221
226 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
227
232 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
233
238 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
239
244 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
245
251
256 inline CreateCodeReviewRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
257
262 inline CreateCodeReviewRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
263
264 private:
265
266 Aws::String m_name;
267 bool m_nameHasBeenSet = false;
268
269 Aws::String m_repositoryAssociationArn;
270 bool m_repositoryAssociationArnHasBeenSet = false;
271
272 CodeReviewType m_type;
273 bool m_typeHasBeenSet = false;
274
275 Aws::String m_clientRequestToken;
276 bool m_clientRequestTokenHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace CodeGuruReviewer
281} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
CreateCodeReviewRequest & WithRepositoryAssociationArn(Aws::String &&value)
CreateCodeReviewRequest & WithClientRequestToken(const char *value)
CreateCodeReviewRequest & WithType(const CodeReviewType &value)
CreateCodeReviewRequest & WithType(CodeReviewType &&value)
CreateCodeReviewRequest & WithRepositoryAssociationArn(const Aws::String &value)
CreateCodeReviewRequest & WithRepositoryAssociationArn(const char *value)
CreateCodeReviewRequest & WithClientRequestToken(const Aws::String &value)
CreateCodeReviewRequest & WithName(const char *value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
CreateCodeReviewRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateCodeReviewRequest & WithClientRequestToken(Aws::String &&value)
CreateCodeReviewRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String