AWS SDK for C++  1.9.157
AWS SDK for C++
ListArtifactsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Amplify
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListArtifacts"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetAppId() const{ return m_appId; }
49 
53  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
54 
58  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
59 
63  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
64 
68  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
69 
73  inline ListArtifactsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
74 
78  inline ListArtifactsRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
79 
83  inline ListArtifactsRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
84 
85 
89  inline const Aws::String& GetBranchName() const{ return m_branchName; }
90 
94  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
95 
99  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
100 
104  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
105 
109  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
110 
114  inline ListArtifactsRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
115 
119  inline ListArtifactsRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
120 
124  inline ListArtifactsRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
125 
126 
130  inline const Aws::String& GetJobId() const{ return m_jobId; }
131 
135  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
136 
140  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
141 
145  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
146 
150  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
151 
155  inline ListArtifactsRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
156 
160  inline ListArtifactsRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
161 
165  inline ListArtifactsRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
166 
167 
173  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
174 
180  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 
187  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
188 
194  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
195 
201  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
202 
208  inline ListArtifactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
209 
215  inline ListArtifactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
216 
222  inline ListArtifactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
223 
224 
228  inline int GetMaxResults() const{ return m_maxResults; }
229 
233  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
234 
238  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
239 
243  inline ListArtifactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
244 
245  private:
246 
247  Aws::String m_appId;
248  bool m_appIdHasBeenSet;
249 
250  Aws::String m_branchName;
251  bool m_branchNameHasBeenSet;
252 
253  Aws::String m_jobId;
254  bool m_jobIdHasBeenSet;
255 
256  Aws::String m_nextToken;
257  bool m_nextTokenHasBeenSet;
258 
259  int m_maxResults;
260  bool m_maxResultsHasBeenSet;
261  };
262 
263 } // namespace Model
264 } // namespace Amplify
265 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::ListArtifactsRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: ListArtifactsRequest.h:58
Aws::Amplify::Model::ListArtifactsRequest::SetAppId
void SetAppId(const char *value)
Definition: ListArtifactsRequest.h:68
Aws::Amplify::Model::ListArtifactsRequest::WithJobId
ListArtifactsRequest & WithJobId(const Aws::String &value)
Definition: ListArtifactsRequest.h:155
Aws::Http::URI
Definition: URI.h:32
Aws::Amplify::Model::ListArtifactsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListArtifactsRequest.h:187
Aws::Amplify::Model::ListArtifactsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Amplify::Model::ListArtifactsRequest::WithJobId
ListArtifactsRequest & WithJobId(const char *value)
Definition: ListArtifactsRequest.h:165
Aws::Amplify::Model::ListArtifactsRequest::WithAppId
ListArtifactsRequest & WithAppId(Aws::String &&value)
Definition: ListArtifactsRequest.h:78
Aws::Amplify::Model::ListArtifactsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListArtifactsRequest.h:173
Aws::Amplify::Model::ListArtifactsRequest::WithNextToken
ListArtifactsRequest & WithNextToken(const Aws::String &value)
Definition: ListArtifactsRequest.h:208
Aws::Amplify::Model::ListArtifactsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListArtifactsRequest.h:201
Aws::Amplify::Model::ListArtifactsRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: ListArtifactsRequest.h:89
Aws::Amplify::Model::ListArtifactsRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: ListArtifactsRequest.h:140
Aws::Amplify::Model::ListArtifactsRequest::WithAppId
ListArtifactsRequest & WithAppId(const char *value)
Definition: ListArtifactsRequest.h:83
Aws::Amplify::Model::ListArtifactsRequest::WithNextToken
ListArtifactsRequest & WithNextToken(const char *value)
Definition: ListArtifactsRequest.h:222
Aws::Amplify::Model::ListArtifactsRequest::WithBranchName
ListArtifactsRequest & WithBranchName(Aws::String &&value)
Definition: ListArtifactsRequest.h:119
Aws::Amplify::Model::ListArtifactsRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: ListArtifactsRequest.h:94
AmplifyRequest.h
Aws::Amplify::Model::ListArtifactsRequest::ListArtifactsRequest
ListArtifactsRequest()
Aws::Amplify::Model::ListArtifactsRequest::WithMaxResults
ListArtifactsRequest & WithMaxResults(int value)
Definition: ListArtifactsRequest.h:243
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::ListArtifactsRequest::GetAppId
const Aws::String & GetAppId() const
Definition: ListArtifactsRequest.h:48
Aws::Amplify::Model::ListArtifactsRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: ListArtifactsRequest.h:99
Aws::Amplify::Model::ListArtifactsRequest::SetBranchName
void SetBranchName(const char *value)
Definition: ListArtifactsRequest.h:109
Aws::Amplify::Model::ListArtifactsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListArtifactsRequest.h:238
Aws::Amplify::Model::ListArtifactsRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: ListArtifactsRequest.h:104
Aws::Amplify::Model::ListArtifactsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListArtifactsRequest.h:180
Aws::Amplify::Model::ListArtifactsRequest::WithAppId
ListArtifactsRequest & WithAppId(const Aws::String &value)
Definition: ListArtifactsRequest.h:73
Aws::Amplify::Model::ListArtifactsRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: ListArtifactsRequest.h:145
Aws::Amplify::Model::ListArtifactsRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: ListArtifactsRequest.h:135
AWSString.h
Aws::Amplify::Model::ListArtifactsRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: ListArtifactsRequest.h:63
Aws::Amplify::Model::ListArtifactsRequest::WithBranchName
ListArtifactsRequest & WithBranchName(const Aws::String &value)
Definition: ListArtifactsRequest.h:114
Aws::Amplify::Model::ListArtifactsRequest::GetJobId
const Aws::String & GetJobId() const
Definition: ListArtifactsRequest.h:130
Aws::Amplify::Model::ListArtifactsRequest
Definition: ListArtifactsRequest.h:30
Aws::Amplify::Model::ListArtifactsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListArtifactsRequest.h:233
Aws::Amplify::Model::ListArtifactsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::ListArtifactsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListArtifactsRequest.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::ListArtifactsRequest::SetJobId
void SetJobId(const char *value)
Definition: ListArtifactsRequest.h:150
Aws::Amplify::Model::ListArtifactsRequest::WithNextToken
ListArtifactsRequest & WithNextToken(Aws::String &&value)
Definition: ListArtifactsRequest.h:215
Aws::Amplify::Model::ListArtifactsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListArtifactsRequest.h:228
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::ListArtifactsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListArtifactsRequest.h:194
Aws::Amplify::Model::ListArtifactsRequest::WithJobId
ListArtifactsRequest & WithJobId(Aws::String &&value)
Definition: ListArtifactsRequest.h:160
Aws::Amplify::Model::ListArtifactsRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: ListArtifactsRequest.h:53
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::ListArtifactsRequest::WithBranchName
ListArtifactsRequest & WithBranchName(const char *value)
Definition: ListArtifactsRequest.h:124