AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvertRequest.h>
9#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
10#include <aws/mediaconvert/model/JobStatus.h>
11#include <aws/mediaconvert/model/Order.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace MediaConvert {
20namespace Model {
21
25 public:
26 AWS_MEDIACONVERT_API ListJobsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
33
34 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
35
36 AWS_MEDIACONVERT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline int GetMaxResults() const { return m_maxResults; }
43 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
44 inline void SetMaxResults(int value) {
45 m_maxResultsHasBeenSet = true;
46 m_maxResults = value;
47 }
48 inline ListJobsRequest& WithMaxResults(int value) {
49 SetMaxResults(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
67 ListJobsRequest& WithNextToken(NextTokenT&& value) {
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
78 inline Order GetOrder() const { return m_order; }
79 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
80 inline void SetOrder(Order value) {
81 m_orderHasBeenSet = true;
82 m_order = value;
83 }
85 SetOrder(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetQueue() const { return m_queue; }
95 inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
96 template <typename QueueT = Aws::String>
97 void SetQueue(QueueT&& value) {
98 m_queueHasBeenSet = true;
99 m_queue = std::forward<QueueT>(value);
100 }
101 template <typename QueueT = Aws::String>
102 ListJobsRequest& WithQueue(QueueT&& value) {
103 SetQueue(std::forward<QueueT>(value));
104 return *this;
105 }
107
109
113 inline JobStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(JobStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124 private:
125 int m_maxResults{0};
126
127 Aws::String m_nextToken;
128
129 Order m_order{Order::NOT_SET};
130
131 Aws::String m_queue;
132
134 bool m_maxResultsHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_orderHasBeenSet = false;
137 bool m_queueHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace MediaConvert
143} // namespace Aws
AWS_MEDIACONVERT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListJobsRequest & WithMaxResults(int value)
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
ListJobsRequest & WithQueue(QueueT &&value)
ListJobsRequest & WithStatus(JobStatus value)
ListJobsRequest & WithOrder(Order value)
AWS_MEDIACONVERT_API ListJobsRequest()=default
const Aws::String & GetNextToken() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String