AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePullRequestStatusRequest.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/PullRequestStatusEnum.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API UpdatePullRequestStatusRequest();
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 "UpdatePullRequestStatus"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
44 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
45 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
46 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
47 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
49 inline UpdatePullRequestStatusRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
50 inline UpdatePullRequestStatusRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
52
54
59 inline const PullRequestStatusEnum& GetPullRequestStatus() const{ return m_pullRequestStatus; }
60 inline bool PullRequestStatusHasBeenSet() const { return m_pullRequestStatusHasBeenSet; }
61 inline void SetPullRequestStatus(const PullRequestStatusEnum& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = value; }
62 inline void SetPullRequestStatus(PullRequestStatusEnum&& value) { m_pullRequestStatusHasBeenSet = true; m_pullRequestStatus = std::move(value); }
66 private:
67
68 Aws::String m_pullRequestId;
69 bool m_pullRequestIdHasBeenSet = false;
70
71 PullRequestStatusEnum m_pullRequestStatus;
72 bool m_pullRequestStatusHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CodeCommit
77} // namespace Aws
UpdatePullRequestStatusRequest & WithPullRequestId(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePullRequestStatusRequest & WithPullRequestId(const char *value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
UpdatePullRequestStatusRequest & WithPullRequestId(const Aws::String &value)
UpdatePullRequestStatusRequest & WithPullRequestStatus(PullRequestStatusEnum &&value)
UpdatePullRequestStatusRequest & WithPullRequestStatus(const PullRequestStatusEnum &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String