AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchProfilesRequest.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/CustomerProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/customer-profiles/model/LogicalOperator.h>
12#include <aws/customer-profiles/model/AdditionalSearchKey.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace CustomerProfiles
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CUSTOMERPROFILES_API SearchProfilesRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "SearchProfiles"; }
38
39 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
40
41 AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetNextToken() const { return m_nextToken; }
49 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 template<typename NextTokenT = Aws::String>
51 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
52 template<typename NextTokenT = Aws::String>
53 SearchProfilesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
55
57
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 SearchProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
71 inline const Aws::String& GetDomainName() const { return m_domainName; }
72 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
73 template<typename DomainNameT = Aws::String>
74 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
75 template<typename DomainNameT = Aws::String>
76 SearchProfilesRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
78
80
88 inline const Aws::String& GetKeyName() const { return m_keyName; }
89 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
90 template<typename KeyNameT = Aws::String>
91 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
92 template<typename KeyNameT = Aws::String>
93 SearchProfilesRequest& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
95
97
100 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
101 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
102 template<typename ValuesT = Aws::Vector<Aws::String>>
103 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
104 template<typename ValuesT = Aws::Vector<Aws::String>>
105 SearchProfilesRequest& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
106 template<typename ValuesT = Aws::String>
107 SearchProfilesRequest& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
109
111
120 inline const Aws::Vector<AdditionalSearchKey>& GetAdditionalSearchKeys() const { return m_additionalSearchKeys; }
121 inline bool AdditionalSearchKeysHasBeenSet() const { return m_additionalSearchKeysHasBeenSet; }
122 template<typename AdditionalSearchKeysT = Aws::Vector<AdditionalSearchKey>>
123 void SetAdditionalSearchKeys(AdditionalSearchKeysT&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys = std::forward<AdditionalSearchKeysT>(value); }
124 template<typename AdditionalSearchKeysT = Aws::Vector<AdditionalSearchKey>>
125 SearchProfilesRequest& WithAdditionalSearchKeys(AdditionalSearchKeysT&& value) { SetAdditionalSearchKeys(std::forward<AdditionalSearchKeysT>(value)); return *this;}
126 template<typename AdditionalSearchKeysT = AdditionalSearchKey>
127 SearchProfilesRequest& AddAdditionalSearchKeys(AdditionalSearchKeysT&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys.emplace_back(std::forward<AdditionalSearchKeysT>(value)); return *this; }
129
131
143 inline LogicalOperator GetLogicalOperator() const { return m_logicalOperator; }
144 inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
145 inline void SetLogicalOperator(LogicalOperator value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; }
148 private:
149
150 Aws::String m_nextToken;
151 bool m_nextTokenHasBeenSet = false;
152
153 int m_maxResults{0};
154 bool m_maxResultsHasBeenSet = false;
155
156 Aws::String m_domainName;
157 bool m_domainNameHasBeenSet = false;
158
159 Aws::String m_keyName;
160 bool m_keyNameHasBeenSet = false;
161
163 bool m_valuesHasBeenSet = false;
164
165 Aws::Vector<AdditionalSearchKey> m_additionalSearchKeys;
166 bool m_additionalSearchKeysHasBeenSet = false;
167
168 LogicalOperator m_logicalOperator{LogicalOperator::NOT_SET};
169 bool m_logicalOperatorHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace CustomerProfiles
174} // namespace Aws
AWS_CUSTOMERPROFILES_API SearchProfilesRequest()=default
SearchProfilesRequest & AddAdditionalSearchKeys(AdditionalSearchKeysT &&value)
const Aws::Vector< Aws::String > & GetValues() const
SearchProfilesRequest & WithLogicalOperator(LogicalOperator value)
const Aws::Vector< AdditionalSearchKey > & GetAdditionalSearchKeys() const
SearchProfilesRequest & AddValues(ValuesT &&value)
SearchProfilesRequest & WithDomainName(DomainNameT &&value)
SearchProfilesRequest & WithNextToken(NextTokenT &&value)
void SetAdditionalSearchKeys(AdditionalSearchKeysT &&value)
AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
SearchProfilesRequest & WithValues(ValuesT &&value)
SearchProfilesRequest & WithAdditionalSearchKeys(AdditionalSearchKeysT &&value)
virtual const char * GetServiceRequestName() const override
SearchProfilesRequest & WithKeyName(KeyNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector