AWS SDK for C++  1.9.40
AWS SDK for C++
GetCommentsForComparedCommitRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetCommentsForComparedCommit"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
41 
45  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 
50  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 
55  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
56 
60  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
61 
65  inline GetCommentsForComparedCommitRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 
70  inline GetCommentsForComparedCommitRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
71 
75  inline GetCommentsForComparedCommitRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
76 
77 
82  inline const Aws::String& GetBeforeCommitId() const{ return m_beforeCommitId; }
83 
88  inline bool BeforeCommitIdHasBeenSet() const { return m_beforeCommitIdHasBeenSet; }
89 
94  inline void SetBeforeCommitId(const Aws::String& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = value; }
95 
100  inline void SetBeforeCommitId(Aws::String&& value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId = std::move(value); }
101 
106  inline void SetBeforeCommitId(const char* value) { m_beforeCommitIdHasBeenSet = true; m_beforeCommitId.assign(value); }
107 
112  inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const Aws::String& value) { SetBeforeCommitId(value); return *this;}
113 
118  inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(Aws::String&& value) { SetBeforeCommitId(std::move(value)); return *this;}
119 
124  inline GetCommentsForComparedCommitRequest& WithBeforeCommitId(const char* value) { SetBeforeCommitId(value); return *this;}
125 
126 
131  inline const Aws::String& GetAfterCommitId() const{ return m_afterCommitId; }
132 
137  inline bool AfterCommitIdHasBeenSet() const { return m_afterCommitIdHasBeenSet; }
138 
143  inline void SetAfterCommitId(const Aws::String& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = value; }
144 
149  inline void SetAfterCommitId(Aws::String&& value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId = std::move(value); }
150 
155  inline void SetAfterCommitId(const char* value) { m_afterCommitIdHasBeenSet = true; m_afterCommitId.assign(value); }
156 
161  inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const Aws::String& value) { SetAfterCommitId(value); return *this;}
162 
167  inline GetCommentsForComparedCommitRequest& WithAfterCommitId(Aws::String&& value) { SetAfterCommitId(std::move(value)); return *this;}
168 
173  inline GetCommentsForComparedCommitRequest& WithAfterCommitId(const char* value) { SetAfterCommitId(value); return *this;}
174 
175 
180  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 
186  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
187 
192  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
193 
198  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
199 
204  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
205 
210  inline GetCommentsForComparedCommitRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
211 
216  inline GetCommentsForComparedCommitRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
217 
222  inline GetCommentsForComparedCommitRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
229  inline int GetMaxResults() const{ return m_maxResults; }
230 
235  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
236 
241  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
242 
247  inline GetCommentsForComparedCommitRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
248 
249  private:
250 
251  Aws::String m_repositoryName;
252  bool m_repositoryNameHasBeenSet;
253 
254  Aws::String m_beforeCommitId;
255  bool m_beforeCommitIdHasBeenSet;
256 
257  Aws::String m_afterCommitId;
258  bool m_afterCommitIdHasBeenSet;
259 
260  Aws::String m_nextToken;
261  bool m_nextTokenHasBeenSet;
262 
263  int m_maxResults;
264  bool m_maxResultsHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace CodeCommit
269 } // namespace Aws
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithNextToken
GetCommentsForComparedCommitRequest & WithNextToken(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:210
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithAfterCommitId
GetCommentsForComparedCommitRequest & WithAfterCommitId(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:167
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithBeforeCommitId
GetCommentsForComparedCommitRequest & WithBeforeCommitId(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:124
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:60
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:149
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:55
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithBeforeCommitId
GetCommentsForComparedCommitRequest & WithBeforeCommitId(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:118
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCommentsForComparedCommitRequest.h:229
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCommentsForComparedCommitRequest.h:235
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithMaxResults
GetCommentsForComparedCommitRequest & WithMaxResults(int value)
Definition: GetCommentsForComparedCommitRequest.h:247
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithBeforeCommitId
GetCommentsForComparedCommitRequest & WithBeforeCommitId(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:112
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithRepositoryName
GetCommentsForComparedCommitRequest & WithRepositoryName(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:75
CodeCommitRequest.h
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:106
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:143
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:94
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::AfterCommitIdHasBeenSet
bool AfterCommitIdHasBeenSet() const
Definition: GetCommentsForComparedCommitRequest.h:137
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithRepositoryName
GetCommentsForComparedCommitRequest & WithRepositoryName(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:70
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithAfterCommitId
GetCommentsForComparedCommitRequest & WithAfterCommitId(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:161
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:192
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithNextToken
GetCommentsForComparedCommitRequest & WithNextToken(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:216
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithRepositoryName
GetCommentsForComparedCommitRequest & WithRepositoryName(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:65
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCommentsForComparedCommitRequest.h:241
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:204
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetAfterCommitId
void SetAfterCommitId(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:155
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:198
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::BeforeCommitIdHasBeenSet
bool BeforeCommitIdHasBeenSet() const
Definition: GetCommentsForComparedCommitRequest.h:88
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCommentsForComparedCommitRequest.h:180
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCommentsForComparedCommitRequest.h:186
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetCommentsForComparedCommitRequest
GetCommentsForComparedCommitRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetBeforeCommitId
const Aws::String & GetBeforeCommitId() const
Definition: GetCommentsForComparedCommitRequest.h:82
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetCommentsForComparedCommitRequest.h:50
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest
Definition: GetCommentsForComparedCommitRequest.h:22
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetAfterCommitId
const Aws::String & GetAfterCommitId() const
Definition: GetCommentsForComparedCommitRequest.h:131
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCommentsForComparedCommitRequest.h:30
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetCommentsForComparedCommitRequest.h:45
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetCommentsForComparedCommitRequest.h:40
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithAfterCommitId
GetCommentsForComparedCommitRequest & WithAfterCommitId(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:173
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::SetBeforeCommitId
void SetBeforeCommitId(Aws::String &&value)
Definition: GetCommentsForComparedCommitRequest.h:100
Aws::CodeCommit::Model::GetCommentsForComparedCommitRequest::WithNextToken
GetCommentsForComparedCommitRequest & WithNextToken(const char *value)
Definition: GetCommentsForComparedCommitRequest.h:222