AWS SDK for C++

AWS SDK for C++ Version 1.11.611

Loading...
Searching...
No Matches
ListIngestionJobsRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/IngestionJobSortBy.h>
12#include <aws/bedrock-agent/model/IngestionJobFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockAgent
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENT_API ListIngestionJobsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListIngestionJobs"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
44 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
45 template<typename DataSourceIdT = Aws::String>
46 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
47 template<typename DataSourceIdT = Aws::String>
48 ListIngestionJobsRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<IngestionJobFilter>& GetFilters() const { return m_filters; }
56 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
57 template<typename FiltersT = Aws::Vector<IngestionJobFilter>>
58 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
59 template<typename FiltersT = Aws::Vector<IngestionJobFilter>>
60 ListIngestionJobsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
61 template<typename FiltersT = IngestionJobFilter>
62 ListIngestionJobsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
64
66
70 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
71 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
72 template<typename KnowledgeBaseIdT = Aws::String>
73 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
74 template<typename KnowledgeBaseIdT = Aws::String>
75 ListIngestionJobsRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
77
79
85 inline int GetMaxResults() const { return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline ListIngestionJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90
92
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template<typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
102 template<typename NextTokenT = Aws::String>
103 ListIngestionJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
105
107
110 inline const IngestionJobSortBy& GetSortBy() const { return m_sortBy; }
111 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
112 template<typename SortByT = IngestionJobSortBy>
113 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
114 template<typename SortByT = IngestionJobSortBy>
115 ListIngestionJobsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
117 private:
118
119 Aws::String m_dataSourceId;
120 bool m_dataSourceIdHasBeenSet = false;
121
123 bool m_filtersHasBeenSet = false;
124
125 Aws::String m_knowledgeBaseId;
126 bool m_knowledgeBaseIdHasBeenSet = false;
127
128 int m_maxResults{0};
129 bool m_maxResultsHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 IngestionJobSortBy m_sortBy;
135 bool m_sortByHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace BedrockAgent
140} // namespace Aws
ListIngestionJobsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< IngestionJobFilter > & GetFilters() const
ListIngestionJobsRequest & WithSortBy(SortByT &&value)
AWS_BEDROCKAGENT_API ListIngestionJobsRequest()=default
ListIngestionJobsRequest & WithDataSourceId(DataSourceIdT &&value)
ListIngestionJobsRequest & AddFilters(FiltersT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListIngestionJobsRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
ListIngestionJobsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector