AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
45 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
46 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
48 inline UpdatePullRequestApprovalStateRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
49 inline UpdatePullRequestApprovalStateRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
51
53
56 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
57 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
58 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
59 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
60 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
62 inline UpdatePullRequestApprovalStateRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
63 inline UpdatePullRequestApprovalStateRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
65
67
70 inline const ApprovalState& GetApprovalState() const{ return m_approvalState; }
71 inline bool ApprovalStateHasBeenSet() const { return m_approvalStateHasBeenSet; }
72 inline void SetApprovalState(const ApprovalState& value) { m_approvalStateHasBeenSet = true; m_approvalState = value; }
73 inline void SetApprovalState(ApprovalState&& value) { m_approvalStateHasBeenSet = true; m_approvalState = std::move(value); }
77 private:
78
79 Aws::String m_pullRequestId;
80 bool m_pullRequestIdHasBeenSet = false;
81
82 Aws::String m_revisionId;
83 bool m_revisionIdHasBeenSet = false;
84
85 ApprovalState m_approvalState;
86 bool m_approvalStateHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodeCommit
91} // namespace Aws
UpdatePullRequestApprovalStateRequest & WithRevisionId(Aws::String &&value)
UpdatePullRequestApprovalStateRequest & WithPullRequestId(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
UpdatePullRequestApprovalStateRequest & WithRevisionId(const char *value)
UpdatePullRequestApprovalStateRequest & WithPullRequestId(Aws::String &&value)
UpdatePullRequestApprovalStateRequest & WithApprovalState(const ApprovalState &value)
UpdatePullRequestApprovalStateRequest & WithPullRequestId(const Aws::String &value)
UpdatePullRequestApprovalStateRequest & WithApprovalState(ApprovalState &&value)
UpdatePullRequestApprovalStateRequest & WithRevisionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String