AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribePullRequestEventsRequest.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/PullRequestEventType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODECOMMIT_API DescribePullRequestEventsRequest() = 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 "DescribePullRequestEvents"; }
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 template<typename PullRequestIdT = Aws::String>
46 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
47 template<typename PullRequestIdT = Aws::String>
48 DescribePullRequestEventsRequest& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
50
52
56 inline PullRequestEventType GetPullRequestEventType() const { return m_pullRequestEventType; }
57 inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; }
58 inline void SetPullRequestEventType(PullRequestEventType value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = value; }
61
63
68 inline const Aws::String& GetActorArn() const { return m_actorArn; }
69 inline bool ActorArnHasBeenSet() const { return m_actorArnHasBeenSet; }
70 template<typename ActorArnT = Aws::String>
71 void SetActorArn(ActorArnT&& value) { m_actorArnHasBeenSet = true; m_actorArn = std::forward<ActorArnT>(value); }
72 template<typename ActorArnT = Aws::String>
73 DescribePullRequestEventsRequest& WithActorArn(ActorArnT&& value) { SetActorArn(std::forward<ActorArnT>(value)); return *this;}
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template<typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
85 template<typename NextTokenT = Aws::String>
86 DescribePullRequestEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
88
90
95 inline int GetMaxResults() const { return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline DescribePullRequestEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 private:
101
102 Aws::String m_pullRequestId;
103 bool m_pullRequestIdHasBeenSet = false;
104
106 bool m_pullRequestEventTypeHasBeenSet = false;
107
108 Aws::String m_actorArn;
109 bool m_actorArnHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CodeCommit
120} // 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