AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListResourcesRequest.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/resource-explorer-2/model/SearchFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ResourceExplorer2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_RESOURCEEXPLORER2_API ListResourcesRequest();
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 "ListResources"; }
32
33 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
34
35
37
38 inline const SearchFilter& GetFilters() const{ return m_filters; }
39 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
40 inline void SetFilters(const SearchFilter& value) { m_filtersHasBeenSet = true; m_filters = value; }
41 inline void SetFilters(SearchFilter&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
42 inline ListResourcesRequest& WithFilters(const SearchFilter& value) { SetFilters(value); return *this;}
43 inline ListResourcesRequest& WithFilters(SearchFilter&& value) { SetFilters(std::move(value)); return *this;}
45
47
59 inline int GetMaxResults() const{ return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
74 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
77 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
78 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
79 inline ListResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
80 inline ListResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
81 inline ListResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
83
85
93 inline const Aws::String& GetViewArn() const{ return m_viewArn; }
94 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
95 inline void SetViewArn(const Aws::String& value) { m_viewArnHasBeenSet = true; m_viewArn = value; }
96 inline void SetViewArn(Aws::String&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::move(value); }
97 inline void SetViewArn(const char* value) { m_viewArnHasBeenSet = true; m_viewArn.assign(value); }
98 inline ListResourcesRequest& WithViewArn(const Aws::String& value) { SetViewArn(value); return *this;}
99 inline ListResourcesRequest& WithViewArn(Aws::String&& value) { SetViewArn(std::move(value)); return *this;}
100 inline ListResourcesRequest& WithViewArn(const char* value) { SetViewArn(value); return *this;}
102 private:
103
104 SearchFilter m_filters;
105 bool m_filtersHasBeenSet = false;
106
107 int m_maxResults;
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 Aws::String m_viewArn;
114 bool m_viewArnHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ResourceExplorer2
119} // namespace Aws
ListResourcesRequest & WithViewArn(const char *value)
ListResourcesRequest & WithNextToken(const char *value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
ListResourcesRequest & WithViewArn(Aws::String &&value)
ListResourcesRequest & WithNextToken(const Aws::String &value)
ListResourcesRequest & WithFilters(const SearchFilter &value)
ListResourcesRequest & WithFilters(SearchFilter &&value)
ListResourcesRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListResourcesRequest & WithViewArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String