AWS SDK for C++  1.9.16
AWS SDK for C++
OverridePullRequestApprovalRulesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeCommit
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "OverridePullRequestApprovalRules"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
44 
50  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
51 
57  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
58 
64  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
65 
71  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
72 
78  inline OverridePullRequestApprovalRulesRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
79 
85  inline OverridePullRequestApprovalRulesRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
86 
92  inline OverridePullRequestApprovalRulesRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
93 
94 
100  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
101 
107  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
108 
114  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
115 
121  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
122 
128  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
129 
135  inline OverridePullRequestApprovalRulesRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
136 
142  inline OverridePullRequestApprovalRulesRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
143 
149  inline OverridePullRequestApprovalRulesRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
150 
151 
157  inline const OverrideStatus& GetOverrideStatus() const{ return m_overrideStatus; }
158 
164  inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; }
165 
171  inline void SetOverrideStatus(const OverrideStatus& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = value; }
172 
178  inline void SetOverrideStatus(OverrideStatus&& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = std::move(value); }
179 
185  inline OverridePullRequestApprovalRulesRequest& WithOverrideStatus(const OverrideStatus& value) { SetOverrideStatus(value); return *this;}
186 
192  inline OverridePullRequestApprovalRulesRequest& WithOverrideStatus(OverrideStatus&& value) { SetOverrideStatus(std::move(value)); return *this;}
193 
194  private:
195 
196  Aws::String m_pullRequestId;
197  bool m_pullRequestIdHasBeenSet;
198 
199  Aws::String m_revisionId;
200  bool m_revisionIdHasBeenSet;
201 
202  OverrideStatus m_overrideStatus;
203  bool m_overrideStatusHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace CodeCommit
208 } // namespace Aws
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetOverrideStatus
void SetOverrideStatus(OverrideStatus &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:178
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithRevisionId
OverridePullRequestApprovalRulesRequest & WithRevisionId(const Aws::String &value)
Definition: OverridePullRequestApprovalRulesRequest.h:135
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::GetOverrideStatus
const OverrideStatus & GetOverrideStatus() const
Definition: OverridePullRequestApprovalRulesRequest.h:157
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithRevisionId
OverridePullRequestApprovalRulesRequest & WithRevisionId(const char *value)
Definition: OverridePullRequestApprovalRulesRequest.h:149
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithRevisionId
OverridePullRequestApprovalRulesRequest & WithRevisionId(Aws::String &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:142
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithPullRequestId
OverridePullRequestApprovalRulesRequest & WithPullRequestId(Aws::String &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:85
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: OverridePullRequestApprovalRulesRequest.h:71
OverrideStatus.h
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: OverridePullRequestApprovalRulesRequest.h:114
CodeCommitRequest.h
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:121
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithOverrideStatus
OverridePullRequestApprovalRulesRequest & WithOverrideStatus(const OverrideStatus &value)
Definition: OverridePullRequestApprovalRulesRequest.h:185
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: OverridePullRequestApprovalRulesRequest.h:57
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::OverrideStatusHasBeenSet
bool OverrideStatusHasBeenSet() const
Definition: OverridePullRequestApprovalRulesRequest.h:164
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithOverrideStatus
OverridePullRequestApprovalRulesRequest & WithOverrideStatus(OverrideStatus &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:192
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: OverridePullRequestApprovalRulesRequest.h:31
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetOverrideStatus
void SetOverrideStatus(const OverrideStatus &value)
Definition: OverridePullRequestApprovalRulesRequest.h:171
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithPullRequestId
OverridePullRequestApprovalRulesRequest & WithPullRequestId(const char *value)
Definition: OverridePullRequestApprovalRulesRequest.h:92
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: OverridePullRequestApprovalRulesRequest.h:50
AWSString.h
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::OverrideStatus
OverrideStatus
Definition: OverrideStatus.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: OverridePullRequestApprovalRulesRequest.h:100
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: OverridePullRequestApprovalRulesRequest.h:107
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: OverridePullRequestApprovalRulesRequest.h:128
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest
Definition: OverridePullRequestApprovalRulesRequest.h:23
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: OverridePullRequestApprovalRulesRequest.h:43
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::WithPullRequestId
OverridePullRequestApprovalRulesRequest & WithPullRequestId(const Aws::String &value)
Definition: OverridePullRequestApprovalRulesRequest.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: OverridePullRequestApprovalRulesRequest.h:64
Aws::CodeCommit::Model::OverridePullRequestApprovalRulesRequest::OverridePullRequestApprovalRulesRequest
OverridePullRequestApprovalRulesRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97