AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CreateCodeReviewRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
9#include <aws/codeguru-reviewer/model/CodeReviewType.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeGuruReviewer {
17namespace Model {
18
22 public:
23 AWS_CODEGURUREVIEWER_API CreateCodeReviewRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateCodeReview"; }
30
31 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
61 inline const Aws::String& GetRepositoryAssociationArn() const { return m_repositoryAssociationArn; }
62 inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; }
63 template <typename RepositoryAssociationArnT = Aws::String>
64 void SetRepositoryAssociationArn(RepositoryAssociationArnT&& value) {
65 m_repositoryAssociationArnHasBeenSet = true;
66 m_repositoryAssociationArn = std::forward<RepositoryAssociationArnT>(value);
67 }
68 template <typename RepositoryAssociationArnT = Aws::String>
69 CreateCodeReviewRequest& WithRepositoryAssociationArn(RepositoryAssociationArnT&& value) {
70 SetRepositoryAssociationArn(std::forward<RepositoryAssociationArnT>(value));
71 return *this;
72 }
74
76
82 inline const CodeReviewType& GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 template <typename TypeT = CodeReviewType>
85 void SetType(TypeT&& value) {
86 m_typeHasBeenSet = true;
87 m_type = std::forward<TypeT>(value);
88 }
89 template <typename TypeT = CodeReviewType>
91 SetType(std::forward<TypeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
102 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
103 template <typename ClientRequestTokenT = Aws::String>
104 void SetClientRequestToken(ClientRequestTokenT&& value) {
105 m_clientRequestTokenHasBeenSet = true;
106 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
107 }
108 template <typename ClientRequestTokenT = Aws::String>
109 CreateCodeReviewRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
110 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116
117 Aws::String m_repositoryAssociationArn;
118
119 CodeReviewType m_type;
120
121 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
122 bool m_nameHasBeenSet = false;
123 bool m_repositoryAssociationArnHasBeenSet = false;
124 bool m_typeHasBeenSet = false;
125 bool m_clientRequestTokenHasBeenSet = true;
126};
127
128} // namespace Model
129} // namespace CodeGuruReviewer
130} // namespace Aws
AWS_CODEGURUREVIEWER_API CreateCodeReviewRequest()=default
CreateCodeReviewRequest & WithRepositoryAssociationArn(RepositoryAssociationArnT &&value)
CreateCodeReviewRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetRepositoryAssociationArn(RepositoryAssociationArnT &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String