AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListSearchJobsRequest.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/BackupSearchRequest.h>
9#include <aws/backupsearch/model/SearchJobState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace BackupSearch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BACKUPSEARCH_API ListSearchJobsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListSearchJobs"; }
36
37 AWS_BACKUPSEARCH_API Aws::String SerializePayload() const override;
38
39 AWS_BACKUPSEARCH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline SearchJobState GetByStatus() const { return m_byStatus; }
47 inline bool ByStatusHasBeenSet() const { return m_byStatusHasBeenSet; }
48 inline void SetByStatus(SearchJobState value) { m_byStatusHasBeenSet = true; m_byStatus = value; }
49 inline ListSearchJobsRequest& WithByStatus(SearchJobState value) { SetByStatus(value); return *this;}
51
53
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 ListSearchJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline ListSearchJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76 private:
77
79 bool m_byStatusHasBeenSet = false;
80
81 Aws::String m_nextToken;
82 bool m_nextTokenHasBeenSet = false;
83
84 int m_maxResults{0};
85 bool m_maxResultsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace BackupSearch
90} // namespace Aws
ListSearchJobsRequest & WithNextToken(NextTokenT &&value)
AWS_BACKUPSEARCH_API Aws::String SerializePayload() const override
AWS_BACKUPSEARCH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_BACKUPSEARCH_API ListSearchJobsRequest()=default
virtual const char * GetServiceRequestName() const override
ListSearchJobsRequest & WithByStatus(SearchJobState value)
ListSearchJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String