AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceQuery(const ResourceQuery& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = value; }
44 inline void SetResourceQuery(ResourceQuery&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::move(value); }
45 inline SearchResourcesRequest& WithResourceQuery(const ResourceQuery& value) { SetResourceQuery(value); return *this;}
46 inline SearchResourcesRequest& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
78 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
79 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
80 inline SearchResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
81 inline SearchResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
82 inline SearchResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
84 private:
85
86 ResourceQuery m_resourceQuery;
87 bool m_resourceQueryHasBeenSet = false;
88
89 int m_maxResults;
90 bool m_maxResultsHasBeenSet = false;
91
92 Aws::String m_nextToken;
93 bool m_nextTokenHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ResourceGroups
98} // namespace Aws
virtual const char * GetServiceRequestName() const override
SearchResourcesRequest & WithResourceQuery(const ResourceQuery &value)
SearchResourcesRequest & WithNextToken(const char *value)
SearchResourcesRequest & WithNextToken(Aws::String &&value)
SearchResourcesRequest & WithNextToken(const Aws::String &value)
SearchResourcesRequest & WithResourceQuery(ResourceQuery &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String