AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchResourcesRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/resource-groups/model/ResourceQuery.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ResourceGroups
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_RESOURCEGROUPS_API SearchResourcesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchResources"; }
32
33 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
42 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
43 template<typename ResourceQueryT = ResourceQuery>
44 void SetResourceQuery(ResourceQueryT&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::forward<ResourceQueryT>(value); }
45 template<typename ResourceQueryT = ResourceQuery>
46 SearchResourcesRequest& WithResourceQuery(ResourceQueryT&& value) { SetResourceQuery(std::forward<ResourceQueryT>(value)); return *this;}
48
50
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline SearchResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template<typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
79 template<typename NextTokenT = Aws::String>
80 SearchResourcesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
82 private:
83
84 ResourceQuery m_resourceQuery;
85 bool m_resourceQueryHasBeenSet = false;
86
87 int m_maxResults{0};
88 bool m_maxResultsHasBeenSet = false;
89
90 Aws::String m_nextToken;
91 bool m_nextTokenHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ResourceGroups
96} // 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