AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePullRequestApprovalStateRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/ApprovalState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API UpdatePullRequestApprovalStateRequest() = default;
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_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
43 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
44 template<typename PullRequestIdT = Aws::String>
45 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
46 template<typename PullRequestIdT = Aws::String>
47 UpdatePullRequestApprovalStateRequest& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
55 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
56 template<typename RevisionIdT = Aws::String>
57 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
58 template<typename RevisionIdT = Aws::String>
59 UpdatePullRequestApprovalStateRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
61
63
66 inline ApprovalState GetApprovalState() const { return m_approvalState; }
67 inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; }
68 inline void SetApprovalState(ApprovalState value) { m_approvalStateHasBeenSet = true; m_approvalState = value; }
71 private:
72
73 Aws::String m_pullRequestId;
74 bool m_pullRequestIdHasBeenSet = false;
75
76 Aws::String m_revisionId;
77 bool m_revisionIdHasBeenSet = false;
78
80 bool m_approvalStateHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CodeCommit
85} // namespace Aws
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
UpdatePullRequestApprovalStateRequest & WithPullRequestId(PullRequestIdT &&value)
UpdatePullRequestApprovalStateRequest & WithApprovalState(ApprovalState value)
UpdatePullRequestApprovalStateRequest & WithRevisionId(RevisionIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String