AWS SDK for C++  1.9.16
AWS SDK for C++
DeletePullRequestApprovalRuleRequest.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 "DeletePullRequestApprovalRule"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
42 
47  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
48 
53  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
54 
59  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
60 
65  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
66 
71  inline DeletePullRequestApprovalRuleRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
72 
77  inline DeletePullRequestApprovalRuleRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
78 
83  inline DeletePullRequestApprovalRuleRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
84 
85 
89  inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
90 
94  inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
95 
99  inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
100 
104  inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
105 
109  inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
110 
114  inline DeletePullRequestApprovalRuleRequest& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;}
115 
119  inline DeletePullRequestApprovalRuleRequest& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
120 
124  inline DeletePullRequestApprovalRuleRequest& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
125 
126  private:
127 
128  Aws::String m_pullRequestId;
129  bool m_pullRequestIdHasBeenSet;
130 
131  Aws::String m_approvalRuleName;
132  bool m_approvalRuleNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace CodeCommit
137 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetApprovalRuleName
void SetApprovalRuleName(const char *value)
Definition: DeletePullRequestApprovalRuleRequest.h:109
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: DeletePullRequestApprovalRuleRequest.h:59
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetApprovalRuleName
void SetApprovalRuleName(Aws::String &&value)
Definition: DeletePullRequestApprovalRuleRequest.h:104
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SerializePayload
Aws::String SerializePayload() const override
CodeCommitRequest.h
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeletePullRequestApprovalRuleRequest.h:30
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: DeletePullRequestApprovalRuleRequest.h:65
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::ApprovalRuleNameHasBeenSet
bool ApprovalRuleNameHasBeenSet() const
Definition: DeletePullRequestApprovalRuleRequest.h:94
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::GetApprovalRuleName
const Aws::String & GetApprovalRuleName() const
Definition: DeletePullRequestApprovalRuleRequest.h:89
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithApprovalRuleName
DeletePullRequestApprovalRuleRequest & WithApprovalRuleName(Aws::String &&value)
Definition: DeletePullRequestApprovalRuleRequest.h:119
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithPullRequestId
DeletePullRequestApprovalRuleRequest & WithPullRequestId(Aws::String &&value)
Definition: DeletePullRequestApprovalRuleRequest.h:77
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithPullRequestId
DeletePullRequestApprovalRuleRequest & WithPullRequestId(const Aws::String &value)
Definition: DeletePullRequestApprovalRuleRequest.h:71
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithPullRequestId
DeletePullRequestApprovalRuleRequest & WithPullRequestId(const char *value)
Definition: DeletePullRequestApprovalRuleRequest.h:83
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithApprovalRuleName
DeletePullRequestApprovalRuleRequest & WithApprovalRuleName(const char *value)
Definition: DeletePullRequestApprovalRuleRequest.h:124
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: DeletePullRequestApprovalRuleRequest.h:41
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: DeletePullRequestApprovalRuleRequest.h:47
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::DeletePullRequestApprovalRuleRequest
DeletePullRequestApprovalRuleRequest()
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: DeletePullRequestApprovalRuleRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::SetApprovalRuleName
void SetApprovalRuleName(const Aws::String &value)
Definition: DeletePullRequestApprovalRuleRequest.h:99
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest
Definition: DeletePullRequestApprovalRuleRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::DeletePullRequestApprovalRuleRequest::WithApprovalRuleName
DeletePullRequestApprovalRuleRequest & WithApprovalRuleName(const Aws::String &value)
Definition: DeletePullRequestApprovalRuleRequest.h:114