AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SearchRequest.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/ResourceExplorer2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ResourceExplorer2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_RESOURCEEXPLORER2_API SearchRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "Search"; }
31
32 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
33
34
36
48 inline int GetMaxResults() const { return m_maxResults; }
49 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
50 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
51 inline SearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
53
55
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
65 template<typename NextTokenT = Aws::String>
66 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
67 template<typename NextTokenT = Aws::String>
68 SearchRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
70
72
84 inline const Aws::String& GetQueryString() const { return m_queryString; }
85 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
86 template<typename QueryStringT = Aws::String>
87 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
88 template<typename QueryStringT = Aws::String>
89 SearchRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
91
93
103 inline const Aws::String& GetViewArn() const { return m_viewArn; }
104 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
105 template<typename ViewArnT = Aws::String>
106 void SetViewArn(ViewArnT&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::forward<ViewArnT>(value); }
107 template<typename ViewArnT = Aws::String>
108 SearchRequest& WithViewArn(ViewArnT&& value) { SetViewArn(std::forward<ViewArnT>(value)); return *this;}
110 private:
111
112 int m_maxResults{0};
113 bool m_maxResultsHasBeenSet = false;
114
115 Aws::String m_nextToken;
116 bool m_nextTokenHasBeenSet = false;
117
118 Aws::String m_queryString;
119 bool m_queryStringHasBeenSet = false;
120
121 Aws::String m_viewArn;
122 bool m_viewArnHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ResourceExplorer2
127} // namespace Aws
SearchRequest & WithQueryString(QueryStringT &&value)
AWS_RESOURCEEXPLORER2_API SearchRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQueryString() const
const Aws::String & GetNextToken() const
SearchRequest & WithNextToken(NextTokenT &&value)
SearchRequest & WithMaxResults(int value)
void SetQueryString(QueryStringT &&value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
SearchRequest & WithViewArn(ViewArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String