AWS SDK for C++  1.9.131
AWS SDK for C++
GetPullRequestApprovalStatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetPullRequestApprovalStates"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
41 
45  inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
46 
50  inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
51 
55  inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
56 
60  inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
61 
65  inline GetPullRequestApprovalStatesRequest& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
66 
70  inline GetPullRequestApprovalStatesRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
71 
75  inline GetPullRequestApprovalStatesRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
76 
77 
81  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
82 
86  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
87 
91  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
92 
96  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
97 
101  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
102 
106  inline GetPullRequestApprovalStatesRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
107 
111  inline GetPullRequestApprovalStatesRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
112 
116  inline GetPullRequestApprovalStatesRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
117 
118  private:
119 
120  Aws::String m_pullRequestId;
121  bool m_pullRequestIdHasBeenSet;
122 
123  Aws::String m_revisionId;
124  bool m_revisionIdHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace CodeCommit
129 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: GetPullRequestApprovalStatesRequest.h:96
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPullRequestApprovalStatesRequest.h:30
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetPullRequestId
void SetPullRequestId(const char *value)
Definition: GetPullRequestApprovalStatesRequest.h:60
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: GetPullRequestApprovalStatesRequest.h:91
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: GetPullRequestApprovalStatesRequest.h:101
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetPullRequestId
void SetPullRequestId(Aws::String &&value)
Definition: GetPullRequestApprovalStatesRequest.h:55
CodeCommitRequest.h
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::GetPullRequestApprovalStatesRequest
GetPullRequestApprovalStatesRequest()
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: GetPullRequestApprovalStatesRequest.h:81
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::PullRequestIdHasBeenSet
bool PullRequestIdHasBeenSet() const
Definition: GetPullRequestApprovalStatesRequest.h:45
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::GetPullRequestId
const Aws::String & GetPullRequestId() const
Definition: GetPullRequestApprovalStatesRequest.h:40
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SetPullRequestId
void SetPullRequestId(const Aws::String &value)
Definition: GetPullRequestApprovalStatesRequest.h:50
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithRevisionId
GetPullRequestApprovalStatesRequest & WithRevisionId(const char *value)
Definition: GetPullRequestApprovalStatesRequest.h:116
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest
Definition: GetPullRequestApprovalStatesRequest.h:22
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithPullRequestId
GetPullRequestApprovalStatesRequest & WithPullRequestId(Aws::String &&value)
Definition: GetPullRequestApprovalStatesRequest.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithPullRequestId
GetPullRequestApprovalStatesRequest & WithPullRequestId(const Aws::String &value)
Definition: GetPullRequestApprovalStatesRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: GetPullRequestApprovalStatesRequest.h:86
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithRevisionId
GetPullRequestApprovalStatesRequest & WithRevisionId(Aws::String &&value)
Definition: GetPullRequestApprovalStatesRequest.h:111
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithRevisionId
GetPullRequestApprovalStatesRequest & WithRevisionId(const Aws::String &value)
Definition: GetPullRequestApprovalStatesRequest.h:106
Aws::CodeCommit::Model::GetPullRequestApprovalStatesRequest::WithPullRequestId
GetPullRequestApprovalStatesRequest & WithPullRequestId(const char *value)
Definition: GetPullRequestApprovalStatesRequest.h:75