AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateCodeReviewRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
59 inline const Aws::String& GetRepositoryAssociationArn() const { return m_repositoryAssociationArn; }
60 inline bool RepositoryAssociationArnHasBeenSet() const { return m_repositoryAssociationArnHasBeenSet; }
61 template<typename RepositoryAssociationArnT = Aws::String>
62 void SetRepositoryAssociationArn(RepositoryAssociationArnT&& value) { m_repositoryAssociationArnHasBeenSet = true; m_repositoryAssociationArn = std::forward<RepositoryAssociationArnT>(value); }
63 template<typename RepositoryAssociationArnT = Aws::String>
64 CreateCodeReviewRequest& WithRepositoryAssociationArn(RepositoryAssociationArnT&& value) { SetRepositoryAssociationArn(std::forward<RepositoryAssociationArnT>(value)); return *this;}
66
68
74 inline const CodeReviewType& GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 template<typename TypeT = CodeReviewType>
77 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
78 template<typename TypeT = CodeReviewType>
79 CreateCodeReviewRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
81
83
87 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
88 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
89 template<typename ClientRequestTokenT = Aws::String>
90 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
91 template<typename ClientRequestTokenT = Aws::String>
92 CreateCodeReviewRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_repositoryAssociationArn;
100 bool m_repositoryAssociationArnHasBeenSet = false;
101
102 CodeReviewType m_type;
103 bool m_typeHasBeenSet = false;
104
105 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
106 bool m_clientRequestTokenHasBeenSet = true;
107 };
108
109} // namespace Model
110} // namespace CodeGuruReviewer
111} // 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