AWS SDK for C++

AWS SDK for C++ Version 1.11.792

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/JobsFilter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace LocationService {
16namespace Model {
17
21 public:
22 AWS_LOCATIONSERVICE_API ListJobsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
29
30 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
31
33
36 inline const JobsFilter& GetFilter() const { return m_filter; }
37 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
38 template <typename FilterT = JobsFilter>
39 void SetFilter(FilterT&& value) {
40 m_filterHasBeenSet = true;
41 m_filter = std::forward<FilterT>(value);
42 }
43 template <typename FilterT = JobsFilter>
44 ListJobsRequest& WithFilter(FilterT&& value) {
45 SetFilter(std::forward<FilterT>(value));
46 return *this;
47 }
49
51
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) {
57 m_maxResultsHasBeenSet = true;
58 m_maxResults = value;
59 }
60 inline ListJobsRequest& WithMaxResults(int value) {
61 SetMaxResults(value);
62 return *this;
63 }
65
67
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template <typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) {
75 m_nextTokenHasBeenSet = true;
76 m_nextToken = std::forward<NextTokenT>(value);
77 }
78 template <typename NextTokenT = Aws::String>
79 ListJobsRequest& WithNextToken(NextTokenT&& value) {
80 SetNextToken(std::forward<NextTokenT>(value));
81 return *this;
82 }
84 private:
85 JobsFilter m_filter;
86
87 int m_maxResults{0};
88
89 Aws::String m_nextToken;
90 bool m_filterHasBeenSet = false;
91 bool m_maxResultsHasBeenSet = false;
92 bool m_nextTokenHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace LocationService
97} // namespace Aws
ListJobsRequest & WithFilter(FilterT &&value)
ListJobsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LOCATIONSERVICE_API ListJobsRequest()=default
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
ListJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String