AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
27 public:
28 AWS_DEADLINE_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_DEADLINE_API Aws::String SerializePayload() const override;
37
38 AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetFarmId() const { return m_farmId; }
45 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
46 template <typename FarmIdT = Aws::String>
47 void SetFarmId(FarmIdT&& value) {
48 m_farmIdHasBeenSet = true;
49 m_farmId = std::forward<FarmIdT>(value);
50 }
51 template <typename FarmIdT = Aws::String>
52 ListJobsRequest& WithFarmId(FarmIdT&& value) {
53 SetFarmId(std::forward<FarmIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetQueueId() const { return m_queueId; }
63 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
64 template <typename QueueIdT = Aws::String>
65 void SetQueueId(QueueIdT&& value) {
66 m_queueIdHasBeenSet = true;
67 m_queueId = std::forward<QueueIdT>(value);
68 }
69 template <typename QueueIdT = Aws::String>
70 ListJobsRequest& WithQueueId(QueueIdT&& value) {
71 SetQueueId(std::forward<QueueIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
89 ListJobsRequest& WithNextToken(NextTokenT&& value) {
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
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
113
116 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
117 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
118 template <typename PrincipalIdT = Aws::String>
119 void SetPrincipalId(PrincipalIdT&& value) {
120 m_principalIdHasBeenSet = true;
121 m_principalId = std::forward<PrincipalIdT>(value);
122 }
123 template <typename PrincipalIdT = Aws::String>
124 ListJobsRequest& WithPrincipalId(PrincipalIdT&& value) {
125 SetPrincipalId(std::forward<PrincipalIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_farmId;
131
132 Aws::String m_queueId;
133
134 Aws::String m_nextToken;
135
136 int m_maxResults{0};
137
138 Aws::String m_principalId;
139 bool m_farmIdHasBeenSet = false;
140 bool m_queueIdHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142 bool m_maxResultsHasBeenSet = false;
143 bool m_principalIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace deadline
148} // 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