AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/endusermessaging/EndUserMessagingRequest.h>
9#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
10#include <aws/endusermessaging/model/JobStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace EndUserMessaging {
19namespace Model {
20
24 public:
25 AWS_ENDUSERMESSAGING_API ListJobsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
32
33 AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override;
34
35 AWS_ENDUSERMESSAGING_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline int GetMaxResults() const { return m_maxResults; }
42 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
43 inline void SetMaxResults(int value) {
44 m_maxResultsHasBeenSet = true;
45 m_maxResults = value;
46 }
47 inline ListJobsRequest& WithMaxResults(int value) {
48 SetMaxResults(value);
49 return *this;
50 }
52
54
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
77 inline JobStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(JobStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetBrandProfileId() const { return m_brandProfileId; }
94 inline bool BrandProfileIdHasBeenSet() const { return m_brandProfileIdHasBeenSet; }
95 template <typename BrandProfileIdT = Aws::String>
96 void SetBrandProfileId(BrandProfileIdT&& value) {
97 m_brandProfileIdHasBeenSet = true;
98 m_brandProfileId = std::forward<BrandProfileIdT>(value);
99 }
100 template <typename BrandProfileIdT = Aws::String>
101 ListJobsRequest& WithBrandProfileId(BrandProfileIdT&& value) {
102 SetBrandProfileId(std::forward<BrandProfileIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetOperationType() const { return m_operationType; }
112 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
113 template <typename OperationTypeT = Aws::String>
114 void SetOperationType(OperationTypeT&& value) {
115 m_operationTypeHasBeenSet = true;
116 m_operationType = std::forward<OperationTypeT>(value);
117 }
118 template <typename OperationTypeT = Aws::String>
119 ListJobsRequest& WithOperationType(OperationTypeT&& value) {
120 SetOperationType(std::forward<OperationTypeT>(value));
121 return *this;
122 }
124 private:
125 int m_maxResults{0};
126
127 Aws::String m_nextToken;
128
130
131 Aws::String m_brandProfileId;
132
133 Aws::String m_operationType;
134 bool m_maxResultsHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_statusHasBeenSet = false;
137 bool m_brandProfileIdHasBeenSet = false;
138 bool m_operationTypeHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EndUserMessaging
143} // namespace Aws
ListJobsRequest & WithStatus(JobStatus value)
const Aws::String & GetBrandProfileId() const
AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override
ListJobsRequest & WithNextToken(NextTokenT &&value)
AWS_ENDUSERMESSAGING_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListJobsRequest & WithBrandProfileId(BrandProfileIdT &&value)
virtual const char * GetServiceRequestName() const override
ListJobsRequest & WithMaxResults(int value)
AWS_ENDUSERMESSAGING_API ListJobsRequest()=default
ListJobsRequest & WithOperationType(OperationTypeT &&value)
void SetOperationType(OperationTypeT &&value)
void SetBrandProfileId(BrandProfileIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String