AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 DescribePullRequestEventsRequest& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
50 inline DescribePullRequestEventsRequest& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
52
54
58 inline const PullRequestEventType& GetPullRequestEventType() const{ return m_pullRequestEventType; }
59 inline bool PullRequestEventTypeHasBeenSet() const { return m_pullRequestEventTypeHasBeenSet; }
60 inline void SetPullRequestEventType(const PullRequestEventType& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = value; }
61 inline void SetPullRequestEventType(PullRequestEventType&& value) { m_pullRequestEventTypeHasBeenSet = true; m_pullRequestEventType = std::move(value); }
65
67
72 inline const Aws::String& GetActorArn() const{ return m_actorArn; }
73 inline bool ActorArnHasBeenSet() const { return m_actorArnHasBeenSet; }
74 inline void SetActorArn(const Aws::String& value) { m_actorArnHasBeenSet = true; m_actorArn = value; }
75 inline void SetActorArn(Aws::String&& value) { m_actorArnHasBeenSet = true; m_actorArn = std::move(value); }
76 inline void SetActorArn(const char* value) { m_actorArnHasBeenSet = true; m_actorArn.assign(value); }
77 inline DescribePullRequestEventsRequest& WithActorArn(const Aws::String& value) { SetActorArn(value); return *this;}
78 inline DescribePullRequestEventsRequest& WithActorArn(Aws::String&& value) { SetActorArn(std::move(value)); return *this;}
79 inline DescribePullRequestEventsRequest& WithActorArn(const char* value) { SetActorArn(value); return *this;}
81
83
87 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
90 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
91 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 inline DescribePullRequestEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
93 inline DescribePullRequestEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
94 inline DescribePullRequestEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96
98
103 inline int GetMaxResults() const{ return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 inline DescribePullRequestEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
108 private:
109
110 Aws::String m_pullRequestId;
111 bool m_pullRequestIdHasBeenSet = false;
112
113 PullRequestEventType m_pullRequestEventType;
114 bool m_pullRequestEventTypeHasBeenSet = false;
115
116 Aws::String m_actorArn;
117 bool m_actorArnHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 int m_maxResults;
123 bool m_maxResultsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CodeCommit
128} // namespace Aws
DescribePullRequestEventsRequest & WithPullRequestId(const char *value)
DescribePullRequestEventsRequest & WithActorArn(const Aws::String &value)
DescribePullRequestEventsRequest & WithActorArn(const char *value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribePullRequestEventsRequest & WithActorArn(Aws::String &&value)
DescribePullRequestEventsRequest & WithPullRequestId(const Aws::String &value)
DescribePullRequestEventsRequest & WithPullRequestId(Aws::String &&value)
DescribePullRequestEventsRequest & WithPullRequestEventType(const PullRequestEventType &value)
DescribePullRequestEventsRequest & WithNextToken(const Aws::String &value)
DescribePullRequestEventsRequest & WithPullRequestEventType(PullRequestEventType &&value)
DescribePullRequestEventsRequest & WithNextToken(Aws::String &&value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
DescribePullRequestEventsRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String