AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SearchSpacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/SpaceQuicksightSearchFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QuickSight {
17namespace Model {
18
22 public:
23 AWS_QUICKSIGHT_API SearchSpacesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchSpaces"; }
30
31 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
38 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
39 template <typename AwsAccountIdT = Aws::String>
40 void SetAwsAccountId(AwsAccountIdT&& value) {
41 m_awsAccountIdHasBeenSet = true;
42 m_awsAccountId = std::forward<AwsAccountIdT>(value);
43 }
44 template <typename AwsAccountIdT = Aws::String>
45 SearchSpacesRequest& WithAwsAccountId(AwsAccountIdT&& value) {
46 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 SearchSpacesRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
74 inline int GetMaxResults() const { return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) {
77 m_maxResultsHasBeenSet = true;
78 m_maxResults = value;
79 }
81 SetMaxResults(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<SpaceQuicksightSearchFilter>& GetFilters() const { return m_filters; }
91 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
92 template <typename FiltersT = Aws::Vector<SpaceQuicksightSearchFilter>>
93 void SetFilters(FiltersT&& value) {
94 m_filtersHasBeenSet = true;
95 m_filters = std::forward<FiltersT>(value);
96 }
97 template <typename FiltersT = Aws::Vector<SpaceQuicksightSearchFilter>>
98 SearchSpacesRequest& WithFilters(FiltersT&& value) {
99 SetFilters(std::forward<FiltersT>(value));
100 return *this;
101 }
102 template <typename FiltersT = SpaceQuicksightSearchFilter>
103 SearchSpacesRequest& AddFilters(FiltersT&& value) {
104 m_filtersHasBeenSet = true;
105 m_filters.emplace_back(std::forward<FiltersT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_awsAccountId;
111
112 Aws::String m_nextToken;
113
114 int m_maxResults{0};
115
117 bool m_awsAccountIdHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_maxResultsHasBeenSet = false;
120 bool m_filtersHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace QuickSight
125} // namespace Aws
const Aws::Vector< SpaceQuicksightSearchFilter > & GetFilters() const
SearchSpacesRequest & WithFilters(FiltersT &&value)
SearchSpacesRequest & WithAwsAccountId(AwsAccountIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QUICKSIGHT_API SearchSpacesRequest()=default
SearchSpacesRequest & WithMaxResults(int value)
SearchSpacesRequest & WithNextToken(NextTokenT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
SearchSpacesRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector