AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/amplify/AmplifyRequest.h>
8#include <aws/amplify/Amplify_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Amplify {
18namespace Model {
19
27 public:
28 AWS_AMPLIFY_API ListJobsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
35
36 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
37
38 AWS_AMPLIFY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template <typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) {
48 m_appIdHasBeenSet = true;
49 m_appId = std::forward<AppIdT>(value);
50 }
51 template <typename AppIdT = Aws::String>
52 ListJobsRequest& WithAppId(AppIdT&& value) {
53 SetAppId(std::forward<AppIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetBranchName() const { return m_branchName; }
63 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
64 template <typename BranchNameT = Aws::String>
65 void SetBranchName(BranchNameT&& value) {
66 m_branchNameHasBeenSet = true;
67 m_branchName = std::forward<BranchNameT>(value);
68 }
69 template <typename BranchNameT = Aws::String>
70 ListJobsRequest& WithBranchName(BranchNameT&& value) {
71 SetBranchName(std::forward<BranchNameT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template <typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) {
86 m_nextTokenHasBeenSet = true;
87 m_nextToken = std::forward<NextTokenT>(value);
88 }
89 template <typename NextTokenT = Aws::String>
90 ListJobsRequest& WithNextToken(NextTokenT&& value) {
91 SetNextToken(std::forward<NextTokenT>(value));
92 return *this;
93 }
95
97
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) {
103 m_maxResultsHasBeenSet = true;
104 m_maxResults = value;
105 }
106 inline ListJobsRequest& WithMaxResults(int value) {
107 SetMaxResults(value);
108 return *this;
109 }
111 private:
112 Aws::String m_appId;
113 bool m_appIdHasBeenSet = false;
114
115 Aws::String m_branchName;
116 bool m_branchNameHasBeenSet = false;
117
118 Aws::String m_nextToken;
119 bool m_nextTokenHasBeenSet = false;
120
121 int m_maxResults{0};
122 bool m_maxResultsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Amplify
127} // namespace Aws
const Aws::String & GetNextToken() const
AWS_AMPLIFY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetBranchName() const
ListJobsRequest & WithBranchName(BranchNameT &&value)
const Aws::String & GetAppId() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
void SetBranchName(BranchNameT &&value)
AWS_AMPLIFY_API ListJobsRequest()=default
AWS_AMPLIFY_API Aws::String SerializePayload() const override
ListJobsRequest & WithAppId(AppIdT &&value)
virtual const char * GetServiceRequestName() const override
ListJobsRequest & WithMaxResults(int value)
void SetNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String