AWS SDK for C++  1.9.129
AWS SDK for C++
UpdatePullRequestApprovalStateRequest.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 "UpdatePullRequestApprovalState"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
42 
46  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
47 
51  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
52 
56  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
57 
61  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
62 
66  inline UpdatePullRequestApprovalStateRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
67 
71  inline UpdatePullRequestApprovalStateRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
72 
76  inline UpdatePullRequestApprovalStateRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
77 
78 
82  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
83 
87  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
88 
92  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
93 
97  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
98 
102  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
103 
107  inline UpdatePullRequestApprovalStateRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
108 
112  inline UpdatePullRequestApprovalStateRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
113 
117  inline UpdatePullRequestApprovalStateRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
118 
119 
123  inline const ApprovalState& GetApprovalState() const{ return m_approvalState; }
124 
128  inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; }
129 
133  inline void SetApprovalState(const ApprovalState& value) { m_approvalStateHasBeenSet = true; m_approvalState = value; }
134 
138  inline void SetApprovalState(ApprovalState&& value) { m_approvalStateHasBeenSet = true; m_approvalState = std::move(value); }
139 
143  inline UpdatePullRequestApprovalStateRequest& WithApprovalState(const ApprovalState& value) { SetApprovalState(value); return *this;}
144 
148  inline UpdatePullRequestApprovalStateRequest& WithApprovalState(ApprovalState&& value) { SetApprovalState(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_pullRequestId;
153  bool m_pullRequestIdHasBeenSet;
154 
155  Aws::String m_revisionId;
156  bool m_revisionIdHasBeenSet;
157 
158  ApprovalState m_approvalState;
159  bool m_approvalStateHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace CodeCommit
164 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePullRequestApprovalStateRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithApprovalState
UpdatePullRequestApprovalStateRequest & WithApprovalState(const ApprovalState &value)
Definition: UpdatePullRequestApprovalStateRequest.h:143
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetApprovalState
void SetApprovalState(const ApprovalState &value)
Definition: UpdatePullRequestApprovalStateRequest.h:133
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: UpdatePullRequestApprovalStateRequest.h:87
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithRevisionId
UpdatePullRequestApprovalStateRequest & WithRevisionId(Aws::String &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:112
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithPullRequestId
UpdatePullRequestApprovalStateRequest & WithPullRequestId(const Aws::String &value)
Definition: UpdatePullRequestApprovalStateRequest.h:66
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithPullRequestId
UpdatePullRequestApprovalStateRequest & WithPullRequestId(const char *value)
Definition: UpdatePullRequestApprovalStateRequest.h:76
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:56
CodeCommitRequest.h
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: UpdatePullRequestApprovalStateRequest.h:51
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: UpdatePullRequestApprovalStateRequest.h:92
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithPullRequestId
UpdatePullRequestApprovalStateRequest & WithPullRequestId(Aws::String &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:71
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::UpdatePullRequestApprovalStateRequest
UpdatePullRequestApprovalStateRequest()
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: UpdatePullRequestApprovalStateRequest.h:61
ApprovalState.h
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: UpdatePullRequestApprovalStateRequest.h:82
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithRevisionId
UpdatePullRequestApprovalStateRequest & WithRevisionId(const Aws::String &value)
Definition: UpdatePullRequestApprovalStateRequest.h:107
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithApprovalState
UpdatePullRequestApprovalStateRequest & WithApprovalState(ApprovalState &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:148
Aws::CodeCommit::Model::ApprovalState
ApprovalState
Definition: ApprovalState.h:17
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::ApprovalStateHasBeenSet
bool ApprovalStateHasBeenSet() const
Definition: UpdatePullRequestApprovalStateRequest.h:128
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: UpdatePullRequestApprovalStateRequest.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetApprovalState
void SetApprovalState(ApprovalState &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:138
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: UpdatePullRequestApprovalStateRequest.h:46
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::GetApprovalState
const ApprovalState & GetApprovalState() const
Definition: UpdatePullRequestApprovalStateRequest.h:123
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest
Definition: UpdatePullRequestApprovalStateRequest.h:23
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::WithRevisionId
UpdatePullRequestApprovalStateRequest & WithRevisionId(const char *value)
Definition: UpdatePullRequestApprovalStateRequest.h:117
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: UpdatePullRequestApprovalStateRequest.h:97
Aws::CodeCommit::Model::UpdatePullRequestApprovalStateRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: UpdatePullRequestApprovalStateRequest.h:41