AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCodeReviewRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeguru-reviewer/model/CodeReviewType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace CodeGuruReviewer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEGURUREVIEWER_API CreateCodeReviewRequest();
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_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateCodeReviewRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateCodeReviewRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateCodeReviewRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
61 inline const Aws::String& GetRepositoryAssociationArn() const{ return m_repositoryAssociationArn; }
62 inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; }
63 inline void SetRepositoryAssociationArn(const Aws::String& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = value; }
64 inline void SetRepositoryAssociationArn(Aws::String&& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = std::move(value); }
65 inline void SetRepositoryAssociationArn(const char* value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn.assign(value); }
68 inline CreateCodeReviewRequest& WithRepositoryAssociationArn(const char* value) { SetRepositoryAssociationArn(value); return *this;}
70
72
78 inline const CodeReviewType& GetType() const{ return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(const CodeReviewType& value) { m_typeHasBeenSet = true; m_type = value; }
81 inline void SetType(CodeReviewType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
82 inline CreateCodeReviewRequest& WithType(const CodeReviewType& value) { SetType(value); return *this;}
83 inline CreateCodeReviewRequest& WithType(CodeReviewType&& value) { SetType(std::move(value)); return *this;}
85
87
91 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
92 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
93 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
94 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
95 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
97 inline CreateCodeReviewRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
98 inline CreateCodeReviewRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_repositoryAssociationArn;
106 bool m_repositoryAssociationArnHasBeenSet = false;
107
108 CodeReviewType m_type;
109 bool m_typeHasBeenSet = false;
110
111 Aws::String m_clientRequestToken;
112 bool m_clientRequestTokenHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CodeGuruReviewer
117} // namespace Aws
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