AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SearchJobsRequest.h
1
6#pragma once
7#include <aws/braket/BraketRequest.h>
8#include <aws/braket/Braket_EXPORTS.h>
9#include <aws/braket/model/SearchJobsFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Braket {
17namespace Model {
18
22 public:
23 AWS_BRAKET_API SearchJobsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchJobs"; }
30
31 AWS_BRAKET_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
47 SearchJobsRequest& WithNextToken(NextTokenT&& value) {
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
63 inline SearchJobsRequest& WithMaxResults(int value) {
64 SetMaxResults(value);
65 return *this;
66 }
68
70
73 inline const Aws::Vector<SearchJobsFilter>& GetFilters() const { return m_filters; }
74 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
75 template <typename FiltersT = Aws::Vector<SearchJobsFilter>>
76 void SetFilters(FiltersT&& value) {
77 m_filtersHasBeenSet = true;
78 m_filters = std::forward<FiltersT>(value);
79 }
80 template <typename FiltersT = Aws::Vector<SearchJobsFilter>>
81 SearchJobsRequest& WithFilters(FiltersT&& value) {
82 SetFilters(std::forward<FiltersT>(value));
83 return *this;
84 }
85 template <typename FiltersT = SearchJobsFilter>
86 SearchJobsRequest& AddFilters(FiltersT&& value) {
87 m_filtersHasBeenSet = true;
88 m_filters.emplace_back(std::forward<FiltersT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_nextToken;
94
95 int m_maxResults{0};
96
98 bool m_nextTokenHasBeenSet = false;
99 bool m_maxResultsHasBeenSet = false;
100 bool m_filtersHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Braket
105} // namespace Aws
SearchJobsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
SearchJobsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< SearchJobsFilter > & GetFilters() const
SearchJobsRequest & WithFilters(FiltersT &&value)
AWS_BRAKET_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
SearchJobsRequest & WithMaxResults(int value)
AWS_BRAKET_API SearchJobsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector