AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "ListResources"; }
32
33 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
34
35
37
56 inline const SearchFilter& GetFilters() const { return m_filters; }
57 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
58 template<typename FiltersT = SearchFilter>
59 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
60 template<typename FiltersT = SearchFilter>
61 ListResourcesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
63
65
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
80 inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
82
84
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 ListResourcesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101
103
111 inline const Aws::String& GetViewArn() const { return m_viewArn; }
112 inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; }
113 template<typename ViewArnT = Aws::String>
114 void SetViewArn(ViewArnT&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::forward<ViewArnT>(value); }
115 template<typename ViewArnT = Aws::String>
116 ListResourcesRequest& WithViewArn(ViewArnT&& value) { SetViewArn(std::forward<ViewArnT>(value)); return *this;}
118 private:
119
120 SearchFilter m_filters;
121 bool m_filtersHasBeenSet = false;
122
123 int m_maxResults{0};
124 bool m_maxResultsHasBeenSet = false;
125
126 Aws::String m_nextToken;
127 bool m_nextTokenHasBeenSet = false;
128
129 Aws::String m_viewArn;
130 bool m_viewArnHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ResourceExplorer2
135} // namespace Aws
ListResourcesRequest & WithNextToken(NextTokenT &&value)
ListResourcesRequest & WithFilters(FiltersT &&value)
AWS_RESOURCEEXPLORER2_API ListResourcesRequest()=default
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
ListResourcesRequest & WithViewArn(ViewArnT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String