AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchResourcesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
10#include <aws/resource-groups/model/ResourceQuery.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ResourceGroups {
16namespace Model {
17
21 public:
22 AWS_RESOURCEGROUPS_API SearchResourcesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SearchResources"; }
29
30 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
31
33
37 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
38 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
39 template <typename ResourceQueryT = ResourceQuery>
40 void SetResourceQuery(ResourceQueryT&& value) {
41 m_resourceQueryHasBeenSet = true;
42 m_resourceQuery = std::forward<ResourceQueryT>(value);
43 }
44 template <typename ResourceQueryT = ResourceQuery>
45 SearchResourcesRequest& WithResourceQuery(ResourceQueryT&& value) {
46 SetResourceQuery(std::forward<ResourceQueryT>(value));
47 return *this;
48 }
50
52
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96 private:
97 ResourceQuery m_resourceQuery;
98 bool m_resourceQueryHasBeenSet = false;
99
100 int m_maxResults{0};
101 bool m_maxResultsHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ResourceGroups
109} // namespace Aws
AWS_RESOURCEGROUPS_API SearchResourcesRequest()=default
virtual const char * GetServiceRequestName() const override
SearchResourcesRequest & WithNextToken(NextTokenT &&value)
SearchResourcesRequest & WithResourceQuery(ResourceQueryT &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String