AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
47 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
48 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
51 inline OverridePullRequestApprovalRulesRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
53
55
60 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
61 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
62 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
63 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
64 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
66 inline OverridePullRequestApprovalRulesRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
67 inline OverridePullRequestApprovalRulesRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
69
71
76 inline const OverrideStatus& GetOverrideStatus() const{ return m_overrideStatus; }
77 inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; }
78 inline void SetOverrideStatus(const OverrideStatus& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = value; }
79 inline void SetOverrideStatus(OverrideStatus&& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = std::move(value); }
83 private:
84
85 Aws::String m_pullRequestId;
86 bool m_pullRequestIdHasBeenSet = false;
87
88 Aws::String m_revisionId;
89 bool m_revisionIdHasBeenSet = false;
90
91 OverrideStatus m_overrideStatus;
92 bool m_overrideStatusHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCommit
97} // namespace Aws
OverridePullRequestApprovalRulesRequest & WithRevisionId(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
OverridePullRequestApprovalRulesRequest & WithPullRequestId(const Aws::String &value)
OverridePullRequestApprovalRulesRequest & WithRevisionId(const Aws::String &value)
OverridePullRequestApprovalRulesRequest & WithPullRequestId(const char *value)
OverridePullRequestApprovalRulesRequest & WithPullRequestId(Aws::String &&value)
OverridePullRequestApprovalRulesRequest & WithOverrideStatus(OverrideStatus &&value)
OverridePullRequestApprovalRulesRequest & WithOverrideStatus(const OverrideStatus &value)
OverridePullRequestApprovalRulesRequest & WithRevisionId(Aws::String &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String