AWS SDK for C++  1.8.152
AWS SDK for C++
GetCommentsForPullRequestResult.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<CommentsForPullRequest>& GetCommentsForPullRequestData() const{ return m_commentsForPullRequestData; }
41 
45  inline void SetCommentsForPullRequestData(const Aws::Vector<CommentsForPullRequest>& value) { m_commentsForPullRequestData = value; }
46 
50  inline void SetCommentsForPullRequestData(Aws::Vector<CommentsForPullRequest>&& value) { m_commentsForPullRequestData = std::move(value); }
51 
55  inline GetCommentsForPullRequestResult& WithCommentsForPullRequestData(const Aws::Vector<CommentsForPullRequest>& value) { SetCommentsForPullRequestData(value); return *this;}
56 
60  inline GetCommentsForPullRequestResult& WithCommentsForPullRequestData(Aws::Vector<CommentsForPullRequest>&& value) { SetCommentsForPullRequestData(std::move(value)); return *this;}
61 
65  inline GetCommentsForPullRequestResult& AddCommentsForPullRequestData(const CommentsForPullRequest& value) { m_commentsForPullRequestData.push_back(value); return *this; }
66 
70  inline GetCommentsForPullRequestResult& AddCommentsForPullRequestData(CommentsForPullRequest&& value) { m_commentsForPullRequestData.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 GetCommentsForPullRequestResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline GetCommentsForPullRequestResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline GetCommentsForPullRequestResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<CommentsForPullRequest> m_commentsForPullRequestData;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace CodeCommit
124 } // namespace Aws
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::GetCommentsForPullRequestResult
GetCommentsForPullRequestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCommentsForPullRequestResult.h:83
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::WithNextToken
GetCommentsForPullRequestResult & WithNextToken(const Aws::String &value)
Definition: GetCommentsForPullRequestResult.h:101
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCommentsForPullRequestResult.h:77
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::SetCommentsForPullRequestData
void SetCommentsForPullRequestData(Aws::Vector< CommentsForPullRequest > &&value)
Definition: GetCommentsForPullRequestResult.h:50
Aws::CodeCommit::Model::GetCommentsForPullRequestResult
Definition: GetCommentsForPullRequestResult.h:30
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::WithNextToken
GetCommentsForPullRequestResult & WithNextToken(const char *value)
Definition: GetCommentsForPullRequestResult.h:113
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::GetCommentsForPullRequestResult
GetCommentsForPullRequestResult()
Aws::CodeCommit::Model::CommentsForPullRequest
Definition: CommentsForPullRequest.h:36
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCommentsForPullRequestResult.h:89
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::SetCommentsForPullRequestData
void SetCommentsForPullRequestData(const Aws::Vector< CommentsForPullRequest > &value)
Definition: GetCommentsForPullRequestResult.h:45
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
CommentsForPullRequest.h
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::AddCommentsForPullRequestData
GetCommentsForPullRequestResult & AddCommentsForPullRequestData(CommentsForPullRequest &&value)
Definition: GetCommentsForPullRequestResult.h:70
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::WithCommentsForPullRequestData
GetCommentsForPullRequestResult & WithCommentsForPullRequestData(const Aws::Vector< CommentsForPullRequest > &value)
Definition: GetCommentsForPullRequestResult.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetCommentsForPullRequestResult.h:95
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::operator=
GetCommentsForPullRequestResult & operator=(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::GetCommentsForPullRequestResult::GetCommentsForPullRequestData
const Aws::Vector< CommentsForPullRequest > & GetCommentsForPullRequestData() const
Definition: GetCommentsForPullRequestResult.h:40
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::AddCommentsForPullRequestData
GetCommentsForPullRequestResult & AddCommentsForPullRequestData(const CommentsForPullRequest &value)
Definition: GetCommentsForPullRequestResult.h:65
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::WithNextToken
GetCommentsForPullRequestResult & WithNextToken(Aws::String &&value)
Definition: GetCommentsForPullRequestResult.h:107
Aws::CodeCommit::Model::GetCommentsForPullRequestResult::WithCommentsForPullRequestData
GetCommentsForPullRequestResult & WithCommentsForPullRequestData(Aws::Vector< CommentsForPullRequest > &&value)
Definition: GetCommentsForPullRequestResult.h:60