AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OverridePullRequestApprovalRulesRequest.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/OverrideStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API OverridePullRequestApprovalRulesRequest() = 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 "OverridePullRequestApprovalRules"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
45 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
46 template<typename PullRequestIdT = Aws::String>
47 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
48 template<typename PullRequestIdT = Aws::String>
49 OverridePullRequestApprovalRulesRequest& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
51
53
58 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
59 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
60 template<typename RevisionIdT = Aws::String>
61 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
62 template<typename RevisionIdT = Aws::String>
63 OverridePullRequestApprovalRulesRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
65
67
72 inline OverrideStatus GetOverrideStatus() const { return m_overrideStatus; }
73 inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; }
74 inline void SetOverrideStatus(OverrideStatus value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = 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
86 bool m_overrideStatusHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodeCommit
91} // namespace Aws
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OverridePullRequestApprovalRulesRequest & WithPullRequestId(PullRequestIdT &&value)
OverridePullRequestApprovalRulesRequest & WithOverrideStatus(OverrideStatus value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
OverridePullRequestApprovalRulesRequest & WithRevisionId(RevisionIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String