AWS SDK for C++  1.8.129
AWS SDK for C++
EvaluatePullRequestApprovalRulesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "EvaluatePullRequestApprovalRules"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
41 
45  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
46 
50  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
51 
55  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
56 
60  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
61 
65  inline EvaluatePullRequestApprovalRulesRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
66 
70  inline EvaluatePullRequestApprovalRulesRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
71 
75  inline EvaluatePullRequestApprovalRulesRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
76 
77 
82  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
83 
88  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
89 
94  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
95 
100  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
101 
106  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
107 
112  inline EvaluatePullRequestApprovalRulesRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
113 
118  inline EvaluatePullRequestApprovalRulesRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
119 
124  inline EvaluatePullRequestApprovalRulesRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
125 
126  private:
127 
128  Aws::String m_pullRequestId;
129  bool m_pullRequestIdHasBeenSet;
130 
131  Aws::String m_revisionId;
132  bool m_revisionIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace CodeCommit
137 } // namespace Aws
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithPullRequestId
EvaluatePullRequestApprovalRulesRequest & WithPullRequestId(const char *value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:75
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithRevisionId
EvaluatePullRequestApprovalRulesRequest & WithRevisionId(const char *value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:94
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:50
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithPullRequestId
EvaluatePullRequestApprovalRulesRequest & WithPullRequestId(const Aws::String &value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:65
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
CodeCommitRequest.h
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: EvaluatePullRequestApprovalRulesRequest.h:82
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest
Definition: EvaluatePullRequestApprovalRulesRequest.h:22
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: EvaluatePullRequestApprovalRulesRequest.h:88
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:60
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: EvaluatePullRequestApprovalRulesRequest.h:45
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EvaluatePullRequestApprovalRulesRequest.h:30
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:100
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithPullRequestId
EvaluatePullRequestApprovalRulesRequest & WithPullRequestId(Aws::String &&value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:70
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: EvaluatePullRequestApprovalRulesRequest.h:40
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:55
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithRevisionId
EvaluatePullRequestApprovalRulesRequest & WithRevisionId(const Aws::String &value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::WithRevisionId
EvaluatePullRequestApprovalRulesRequest & WithRevisionId(Aws::String &&value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:118
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::EvaluatePullRequestApprovalRulesRequest
EvaluatePullRequestApprovalRulesRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::EvaluatePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: EvaluatePullRequestApprovalRulesRequest.h:106