AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SearchAgentsRequest.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/AgentSearchFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace QuickSight {
20namespace Model {
21
25 public:
26 AWS_QUICKSIGHT_API SearchAgentsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchAgents"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
36 AWS_QUICKSIGHT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 template <typename AwsAccountIdT = Aws::String>
45 void SetAwsAccountId(AwsAccountIdT&& value) {
46 m_awsAccountIdHasBeenSet = true;
47 m_awsAccountId = std::forward<AwsAccountIdT>(value);
48 }
49 template <typename AwsAccountIdT = Aws::String>
50 SearchAgentsRequest& WithAwsAccountId(AwsAccountIdT&& value) {
51 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<AgentSearchFilter>& GetFilters() const { return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 template <typename FiltersT = Aws::Vector<AgentSearchFilter>>
63 void SetFilters(FiltersT&& value) {
64 m_filtersHasBeenSet = true;
65 m_filters = std::forward<FiltersT>(value);
66 }
67 template <typename FiltersT = Aws::Vector<AgentSearchFilter>>
68 SearchAgentsRequest& WithFilters(FiltersT&& value) {
69 SetFilters(std::forward<FiltersT>(value));
70 return *this;
71 }
72 template <typename FiltersT = AgentSearchFilter>
73 SearchAgentsRequest& AddFilters(FiltersT&& value) {
74 m_filtersHasBeenSet = true;
75 m_filters.emplace_back(std::forward<FiltersT>(value));
76 return *this;
77 }
79
81
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template <typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) {
105 m_nextTokenHasBeenSet = true;
106 m_nextToken = std::forward<NextTokenT>(value);
107 }
108 template <typename NextTokenT = Aws::String>
109 SearchAgentsRequest& WithNextToken(NextTokenT&& value) {
110 SetNextToken(std::forward<NextTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_awsAccountId;
116
118
119 int m_maxResults{0};
120
121 Aws::String m_nextToken;
122 bool m_awsAccountIdHasBeenSet = false;
123 bool m_filtersHasBeenSet = false;
124 bool m_maxResultsHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace QuickSight
130} // namespace Aws
SearchAgentsRequest & AddFilters(FiltersT &&value)
AWS_QUICKSIGHT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
SearchAgentsRequest & WithFilters(FiltersT &&value)
AWS_QUICKSIGHT_API SearchAgentsRequest()=default
SearchAgentsRequest & WithAwsAccountId(AwsAccountIdT &&value)
SearchAgentsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
SearchAgentsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< AgentSearchFilter > & GetFilters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector