AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
SearchRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resource-explorer-2/ResourceExplorer2Request.h>
9#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ResourceExplorer2 {
15namespace Model {
16
20 public:
21 AWS_RESOURCEEXPLORER2_API SearchRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "Search"; }
28
29 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
30
32
44 inline const Aws::String& GetQueryString() const { return m_queryString; }
45 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
46 template <typename QueryStringT = Aws::String>
47 void SetQueryString(QueryStringT&& value) {
48 m_queryStringHasBeenSet = true;
49 m_queryString = std::forward<QueryStringT>(value);
50 }
51 template <typename QueryStringT = Aws::String>
52 SearchRequest& WithQueryString(QueryStringT&& value) {
53 SetQueryString(std::forward<QueryStringT>(value));
54 return *this;
55 }
57
59
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) {
74 m_maxResultsHasBeenSet = true;
75 m_maxResults = value;
76 }
77 inline SearchRequest& WithMaxResults(int value) {
78 SetMaxResults(value);
79 return *this;
80 }
82
84
94 inline const Aws::String& GetViewArn() const { return m_viewArn; }
95 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
96 template <typename ViewArnT = Aws::String>
97 void SetViewArn(ViewArnT&& value) {
98 m_viewArnHasBeenSet = true;
99 m_viewArn = std::forward<ViewArnT>(value);
100 }
101 template <typename ViewArnT = Aws::String>
102 SearchRequest& WithViewArn(ViewArnT&& value) {
103 SetViewArn(std::forward<ViewArnT>(value));
104 return *this;
105 }
107
109
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
125 SearchRequest& WithNextToken(NextTokenT&& value) {
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_queryString;
132
133 int m_maxResults{0};
134
135 Aws::String m_viewArn;
136
137 Aws::String m_nextToken;
138 bool m_queryStringHasBeenSet = false;
139 bool m_maxResultsHasBeenSet = false;
140 bool m_viewArnHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace ResourceExplorer2
146} // namespace Aws
SearchRequest & WithQueryString(QueryStringT &&value)
AWS_RESOURCEEXPLORER2_API SearchRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQueryString() 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