AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
67 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
68 inline SearchRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
69 inline SearchRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
70 inline SearchRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
72
74
86 inline const Aws::String& GetQueryString() const{ return m_queryString; }
87 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
88 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
89 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
90 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
91 inline SearchRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
92 inline SearchRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
93 inline SearchRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
95
97
107 inline const Aws::String& GetViewArn() const{ return m_viewArn; }
108 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
109 inline void SetViewArn(const Aws::String& value) { m_viewArnHasBeenSet = true; m_viewArn = value; }
110 inline void SetViewArn(Aws::String&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::move(value); }
111 inline void SetViewArn(const char* value) { m_viewArnHasBeenSet = true; m_viewArn.assign(value); }
112 inline SearchRequest& WithViewArn(const Aws::String& value) { SetViewArn(value); return *this;}
113 inline SearchRequest& WithViewArn(Aws::String&& value) { SetViewArn(std::move(value)); return *this;}
114 inline SearchRequest& WithViewArn(const char* value) { SetViewArn(value); return *this;}
116 private:
117
118 int m_maxResults;
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 Aws::String m_queryString;
125 bool m_queryStringHasBeenSet = false;
126
127 Aws::String m_viewArn;
128 bool m_viewArnHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ResourceExplorer2
133} // namespace Aws
SearchRequest & WithViewArn(const char *value)
void SetQueryString(const Aws::String &value)
void SetNextToken(const Aws::String &value)
SearchRequest & WithViewArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQueryString() const
const Aws::String & GetNextToken() const
SearchRequest & WithQueryString(Aws::String &&value)
AWS_RESOURCEEXPLORER2_API SearchRequest()
SearchRequest & WithMaxResults(int value)
SearchRequest & WithNextToken(Aws::String &&value)
void SetViewArn(const Aws::String &value)
SearchRequest & WithQueryString(const Aws::String &value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
SearchRequest & WithNextToken(const char *value)
SearchRequest & WithViewArn(Aws::String &&value)
SearchRequest & WithNextToken(const Aws::String &value)
SearchRequest & WithQueryString(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String