AWS SDK for C++  1.9.15
AWS SDK for C++
DescribePullRequestEventsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeCommit
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<PullRequestEvent>& GetPullRequestEvents() const{ return m_pullRequestEvents; }
41 
45  inline void SetPullRequestEvents(const Aws::Vector<PullRequestEvent>& value) { m_pullRequestEvents = value; }
46 
50  inline void SetPullRequestEvents(Aws::Vector<PullRequestEvent>&& value) { m_pullRequestEvents = std::move(value); }
51 
55  inline DescribePullRequestEventsResult& WithPullRequestEvents(const Aws::Vector<PullRequestEvent>& value) { SetPullRequestEvents(value); return *this;}
56 
60  inline DescribePullRequestEventsResult& WithPullRequestEvents(Aws::Vector<PullRequestEvent>&& value) { SetPullRequestEvents(std::move(value)); return *this;}
61 
65  inline DescribePullRequestEventsResult& AddPullRequestEvents(const PullRequestEvent& value) { m_pullRequestEvents.push_back(value); return *this; }
66 
70  inline DescribePullRequestEventsResult& AddPullRequestEvents(PullRequestEvent&& value) { m_pullRequestEvents.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline DescribePullRequestEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline DescribePullRequestEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline DescribePullRequestEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<PullRequestEvent> m_pullRequestEvents;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace CodeCommit
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::DescribePullRequestEventsResult::WithNextToken
DescribePullRequestEventsResult & WithNextToken(Aws::String &&value)
Definition: DescribePullRequestEventsResult.h:107
Aws::CodeCommit::Model::DescribePullRequestEventsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribePullRequestEventsResult.h:89
Aws::CodeCommit::Model::DescribePullRequestEventsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribePullRequestEventsResult.h:95
Aws::CodeCommit::Model::DescribePullRequestEventsResult::operator=
DescribePullRequestEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::DescribePullRequestEventsResult::GetPullRequestEvents
const Aws::Vector< PullRequestEvent > & GetPullRequestEvents() const
Definition: DescribePullRequestEventsResult.h:40
Aws::CodeCommit::Model::DescribePullRequestEventsResult::WithPullRequestEvents
DescribePullRequestEventsResult & WithPullRequestEvents(const Aws::Vector< PullRequestEvent > &value)
Definition: DescribePullRequestEventsResult.h:55
Aws::CodeCommit::Model::DescribePullRequestEventsResult
Definition: DescribePullRequestEventsResult.h:30
AWSVector.h
Aws::CodeCommit::Model::DescribePullRequestEventsResult::AddPullRequestEvents
DescribePullRequestEventsResult & AddPullRequestEvents(PullRequestEvent &&value)
Definition: DescribePullRequestEventsResult.h:70
Aws::CodeCommit::Model::DescribePullRequestEventsResult::SetPullRequestEvents
void SetPullRequestEvents(Aws::Vector< PullRequestEvent > &&value)
Definition: DescribePullRequestEventsResult.h:50
Aws::CodeCommit::Model::PullRequestEvent
Definition: PullRequestEvent.h:41
Aws::CodeCommit::Model::DescribePullRequestEventsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribePullRequestEventsResult.h:77
Aws::CodeCommit::Model::DescribePullRequestEventsResult::DescribePullRequestEventsResult
DescribePullRequestEventsResult()
Aws::CodeCommit::Model::DescribePullRequestEventsResult::AddPullRequestEvents
DescribePullRequestEventsResult & AddPullRequestEvents(const PullRequestEvent &value)
Definition: DescribePullRequestEventsResult.h:65
Aws::CodeCommit::Model::DescribePullRequestEventsResult::WithNextToken
DescribePullRequestEventsResult & WithNextToken(const Aws::String &value)
Definition: DescribePullRequestEventsResult.h:101
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::DescribePullRequestEventsResult::WithPullRequestEvents
DescribePullRequestEventsResult & WithPullRequestEvents(Aws::Vector< PullRequestEvent > &&value)
Definition: DescribePullRequestEventsResult.h:60
PullRequestEvent.h
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::DescribePullRequestEventsResult::WithNextToken
DescribePullRequestEventsResult & WithNextToken(const char *value)
Definition: DescribePullRequestEventsResult.h:113
Aws::CodeCommit::Model::DescribePullRequestEventsResult::SetPullRequestEvents
void SetPullRequestEvents(const Aws::Vector< PullRequestEvent > &value)
Definition: DescribePullRequestEventsResult.h:45
Aws::CodeCommit::Model::DescribePullRequestEventsResult::DescribePullRequestEventsResult
DescribePullRequestEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::DescribePullRequestEventsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribePullRequestEventsResult.h:83