AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DescribePullRequestEventsRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/codecommit/model/PullRequestEventType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeCommit {
16namespace Model {
17
21 public:
22 AWS_CODECOMMIT_API DescribePullRequestEventsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribePullRequestEvents"; }
29
30 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
40 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
41 template <typename PullRequestIdT = Aws::String>
42 void SetPullRequestId(PullRequestIdT&& value) {
43 m_pullRequestIdHasBeenSet = true;
44 m_pullRequestId = std::forward<PullRequestIdT>(value);
45 }
46 template <typename PullRequestIdT = Aws::String>
48 SetPullRequestId(std::forward<PullRequestIdT>(value));
49 return *this;
50 }
52
54
58 inline PullRequestEventType GetPullRequestEventType() const { return m_pullRequestEventType; }
59 inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; }
61 m_pullRequestEventTypeHasBeenSet = true;
62 m_pullRequestEventType = value;
63 }
66 return *this;
67 }
69
71
76 inline const Aws::String& GetActorArn() const { return m_actorArn; }
77 inline bool ActorArnHasBeenSet() const { return m_actorArnHasBeenSet; }
78 template <typename ActorArnT = Aws::String>
79 void SetActorArn(ActorArnT&& value) {
80 m_actorArnHasBeenSet = true;
81 m_actorArn = std::forward<ActorArnT>(value);
82 }
83 template <typename ActorArnT = Aws::String>
85 SetActorArn(std::forward<ActorArnT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template <typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) {
99 m_nextTokenHasBeenSet = true;
100 m_nextToken = std::forward<NextTokenT>(value);
101 }
102 template <typename NextTokenT = Aws::String>
104 SetNextToken(std::forward<NextTokenT>(value));
105 return *this;
106 }
108
110
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::String m_pullRequestId;
128
130
131 Aws::String m_actorArn;
132
133 Aws::String m_nextToken;
134
135 int m_maxResults{0};
136 bool m_pullRequestIdHasBeenSet = false;
137 bool m_pullRequestEventTypeHasBeenSet = false;
138 bool m_actorArnHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CodeCommit
145} // namespace Aws
DescribePullRequestEventsRequest & WithPullRequestId(PullRequestIdT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribePullRequestEventsRequest & WithPullRequestEventType(PullRequestEventType value)
AWS_CODECOMMIT_API DescribePullRequestEventsRequest()=default
DescribePullRequestEventsRequest & WithActorArn(ActorArnT &&value)
DescribePullRequestEventsRequest & WithNextToken(NextTokenT &&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