AWS SDK for C++  1.8.71
AWS SDK for C++
ListJobsRequest.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 "ListJobs"; }
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 ListJobsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
74 
78  inline ListJobsRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
79 
83  inline ListJobsRequest& 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 ListJobsRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
115 
119  inline ListJobsRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
120 
124  inline ListJobsRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
125 
126 
132  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
133 
139  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 
146  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
147 
153  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
154 
160  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
161 
167  inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
168 
174  inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
175 
181  inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
182 
183 
187  inline int GetMaxResults() const{ return m_maxResults; }
188 
192  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
193 
197  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
198 
202  inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
203 
204  private:
205 
206  Aws::String m_appId;
207  bool m_appIdHasBeenSet;
208 
209  Aws::String m_branchName;
210  bool m_branchNameHasBeenSet;
211 
212  Aws::String m_nextToken;
213  bool m_nextTokenHasBeenSet;
214 
215  int m_maxResults;
216  bool m_maxResultsHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Amplify
221 } // namespace Aws
ListJobsRequest & WithAppId(Aws::String &&value)
#define AWS_AMPLIFY_API
ListJobsRequest & WithNextToken(const char *value)
ListJobsRequest & WithNextToken(const Aws::String &value)
ListJobsRequest & WithAppId(const Aws::String &value)
ListJobsRequest & WithAppId(const char *value)
virtual const char * GetServiceRequestName() const override
void SetBranchName(Aws::String &&value)
ListJobsRequest & WithBranchName(const char *value)
void SetAppId(Aws::String &&value)
void SetBranchName(const Aws::String &value)
void SetNextToken(const char *value)
ListJobsRequest & WithNextToken(Aws::String &&value)
void SetAppId(const Aws::String &value)
const Aws::String & GetNextToken() const
ListJobsRequest & WithBranchName(Aws::String &&value)
void SetNextToken(Aws::String &&value)
void SetAppId(const char *value)
void SetBranchName(const char *value)
ListJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListJobsRequest & WithBranchName(const Aws::String &value)
void SetNextToken(const Aws::String &value)
const Aws::String & GetAppId() const
const Aws::String & GetBranchName() const