AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DescribeJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/drs/Drs_EXPORTS.h>
10#include <aws/drs/model/DescribeJobsRequestFilters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace drs {
16namespace Model {
17
21 public:
22 AWS_DRS_API DescribeJobsRequest() = 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 "DescribeJobs"; }
29
30 AWS_DRS_API Aws::String SerializePayload() const override;
31
33
36 inline const DescribeJobsRequestFilters& GetFilters() const { return m_filters; }
37 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
38 template <typename FiltersT = DescribeJobsRequestFilters>
39 void SetFilters(FiltersT&& value) {
40 m_filtersHasBeenSet = true;
41 m_filters = std::forward<FiltersT>(value);
42 }
43 template <typename FiltersT = DescribeJobsRequestFilters>
44 DescribeJobsRequest& WithFilters(FiltersT&& value) {
45 SetFilters(std::forward<FiltersT>(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 }
61 SetMaxResults(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template <typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) {
74 m_nextTokenHasBeenSet = true;
75 m_nextToken = std::forward<NextTokenT>(value);
76 }
77 template <typename NextTokenT = Aws::String>
78 DescribeJobsRequest& WithNextToken(NextTokenT&& value) {
79 SetNextToken(std::forward<NextTokenT>(value));
80 return *this;
81 }
83 private:
85
86 int m_maxResults{0};
87
88 Aws::String m_nextToken;
89 bool m_filtersHasBeenSet = false;
90 bool m_maxResultsHasBeenSet = false;
91 bool m_nextTokenHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace drs
96} // namespace Aws
AWS_DRS_API DescribeJobsRequest()=default
DescribeJobsRequest & WithMaxResults(int value)
AWS_DRS_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
DescribeJobsRequest & WithFilters(FiltersT &&value)
DescribeJobsRequest & WithNextToken(NextTokenT &&value)
const DescribeJobsRequestFilters & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String