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/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace deadline {
18namespace Model {
19
23 public:
24 AWS_DEADLINE_API ListJobsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
31
32 AWS_DEADLINE_API Aws::String SerializePayload() const override;
33
34 AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetFarmId() const { return m_farmId; }
41 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
42 template <typename FarmIdT = Aws::String>
43 void SetFarmId(FarmIdT&& value) {
44 m_farmIdHasBeenSet = true;
45 m_farmId = std::forward<FarmIdT>(value);
46 }
47 template <typename FarmIdT = Aws::String>
48 ListJobsRequest& WithFarmId(FarmIdT&& value) {
49 SetFarmId(std::forward<FarmIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
59 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
60 template <typename PrincipalIdT = Aws::String>
61 void SetPrincipalId(PrincipalIdT&& value) {
62 m_principalIdHasBeenSet = true;
63 m_principalId = std::forward<PrincipalIdT>(value);
64 }
65 template <typename PrincipalIdT = Aws::String>
66 ListJobsRequest& WithPrincipalId(PrincipalIdT&& value) {
67 SetPrincipalId(std::forward<PrincipalIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetQueueId() const { return m_queueId; }
77 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
78 template <typename QueueIdT = Aws::String>
79 void SetQueueId(QueueIdT&& value) {
80 m_queueIdHasBeenSet = true;
81 m_queueId = std::forward<QueueIdT>(value);
82 }
83 template <typename QueueIdT = Aws::String>
84 ListJobsRequest& WithQueueId(QueueIdT&& value) {
85 SetQueueId(std::forward<QueueIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template <typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) {
99 m_nextTokenHasBeenSet = true;
100 m_nextToken = std::forward<NextTokenT>(value);
101 }
102 template <typename NextTokenT = Aws::String>
103 ListJobsRequest& WithNextToken(NextTokenT&& value) {
104 SetNextToken(std::forward<NextTokenT>(value));
105 return *this;
106 }
108
110
114 inline int GetMaxResults() const { return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) {
117 m_maxResultsHasBeenSet = true;
118 m_maxResults = value;
119 }
120 inline ListJobsRequest& WithMaxResults(int value) {
121 SetMaxResults(value);
122 return *this;
123 }
125 private:
126 Aws::String m_farmId;
127 bool m_farmIdHasBeenSet = false;
128
129 Aws::String m_principalId;
130 bool m_principalIdHasBeenSet = false;
131
132 Aws::String m_queueId;
133 bool m_queueIdHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 int m_maxResults{0};
139 bool m_maxResultsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace deadline
144} // namespace Aws
void SetPrincipalId(PrincipalIdT &&value)
AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
ListJobsRequest & WithQueueId(QueueIdT &&value)
const Aws::String & GetQueueId() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
void SetNextToken(NextTokenT &&value)
ListJobsRequest & WithPrincipalId(PrincipalIdT &&value)
ListJobsRequest & WithFarmId(FarmIdT &&value)
const Aws::String & GetPrincipalId() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::String & GetFarmId() const
AWS_DEADLINE_API ListJobsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String