AWS SDK for C++  1.9.1
AWS SDK for C++
CreateCodeReviewRequest.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 CodeGuruReviewer
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 "CreateCodeReview"; }
33 
34  Aws::String SerializePayload() const override;
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 
96  inline const Aws::String& GetRepositoryAssociationArn() const{ return m_repositoryAssociationArn; }
97 
108  inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; }
109 
120  inline void SetRepositoryAssociationArn(const Aws::String& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = value; }
121 
132  inline void SetRepositoryAssociationArn(Aws::String&& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = std::move(value); }
133 
144  inline void SetRepositoryAssociationArn(const char* value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn.assign(value); }
145 
156  inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const Aws::String& value) { SetRepositoryAssociationArn(value); return *this;}
157 
168  inline CreateCodeReviewRequest& WithRepositoryAssociationArn(Aws::String&& value) { SetRepositoryAssociationArn(std::move(value)); return *this;}
169 
180  inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const char* value) { SetRepositoryAssociationArn(value); return *this;}
181 
182 
189  inline const CodeReviewType& GetType() const{ return m_type; }
190 
197  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
198 
205  inline void SetType(const CodeReviewType& value) { m_typeHasBeenSet = true; m_type = value; }
206 
213  inline void SetType(CodeReviewType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
214 
221  inline CreateCodeReviewRequest& WithType(const CodeReviewType& value) { SetType(value); return *this;}
222 
229  inline CreateCodeReviewRequest& WithType(CodeReviewType&& value) { SetType(std::move(value)); return *this;}
230 
231 
236  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
237 
242  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
243 
248  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
249 
254  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
255 
260  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
261 
266  inline CreateCodeReviewRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
267 
272  inline CreateCodeReviewRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
273 
278  inline CreateCodeReviewRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
279 
280  private:
281 
282  Aws::String m_name;
283  bool m_nameHasBeenSet;
284 
285  Aws::String m_repositoryAssociationArn;
286  bool m_repositoryAssociationArnHasBeenSet;
287 
288  CodeReviewType m_type;
289  bool m_typeHasBeenSet;
290 
291  Aws::String m_clientRequestToken;
292  bool m_clientRequestTokenHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace CodeGuruReviewer
297 } // namespace Aws
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateCodeReviewRequest.h:47
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::RepositoryAssociationArnHasBeenSet
bool RepositoryAssociationArnHasBeenSet() const
Definition: CreateCodeReviewRequest.h:108
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithRepositoryAssociationArn
CreateCodeReviewRequest & WithRepositoryAssociationArn(const char *value)
Definition: CreateCodeReviewRequest.h:180
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithRepositoryAssociationArn
CreateCodeReviewRequest & WithRepositoryAssociationArn(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:168
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateCodeReviewRequest.h:260
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:248
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetRepositoryAssociationArn
void SetRepositoryAssociationArn(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:132
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::GetType
const CodeReviewType & GetType() const
Definition: CreateCodeReviewRequest.h:189
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetName
void SetName(const char *value)
Definition: CreateCodeReviewRequest.h:65
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithName
CreateCodeReviewRequest & WithName(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:77
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:254
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithName
CreateCodeReviewRequest & WithName(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:71
Aws::CodeGuruReviewer::Model::CodeReviewType
Definition: CodeReviewType.h:42
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest
Definition: CreateCodeReviewRequest.h:24
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithClientRequestToken
CreateCodeReviewRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:272
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetRepositoryAssociationArn
void SetRepositoryAssociationArn(const char *value)
Definition: CreateCodeReviewRequest.h:144
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateCodeReviewRequest.h:242
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithRepositoryAssociationArn
CreateCodeReviewRequest & WithRepositoryAssociationArn(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:156
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithClientRequestToken
CreateCodeReviewRequest & WithClientRequestToken(const char *value)
Definition: CreateCodeReviewRequest.h:278
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCodeReviewRequest.h:32
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithName
CreateCodeReviewRequest & WithName(const char *value)
Definition: CreateCodeReviewRequest.h:83
CodeReviewType.h
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithClientRequestToken
CreateCodeReviewRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:266
AWSString.h
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateCodeReviewRequest.h:236
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetRepositoryAssociationArn
void SetRepositoryAssociationArn(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:120
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetType
void SetType(CodeReviewType &&value)
Definition: CreateCodeReviewRequest.h:213
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithType
CreateCodeReviewRequest & WithType(CodeReviewType &&value)
Definition: CreateCodeReviewRequest.h:229
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::CreateCodeReviewRequest
CreateCodeReviewRequest()
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetType
void SetType(const CodeReviewType &value)
Definition: CreateCodeReviewRequest.h:205
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateCodeReviewRequest.h:53
UUID.h
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateCodeReviewRequest.h:59
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateCodeReviewRequest.h:197
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::WithType
CreateCodeReviewRequest & WithType(const CodeReviewType &value)
Definition: CreateCodeReviewRequest.h:221
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::GetName
const Aws::String & GetName() const
Definition: CreateCodeReviewRequest.h:41
Aws::CodeGuruReviewer::Model::CreateCodeReviewRequest::GetRepositoryAssociationArn
const Aws::String & GetRepositoryAssociationArn() const
Definition: CreateCodeReviewRequest.h:96