AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
51 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
52 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
53 inline SearchProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
54 inline SearchProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
55 inline SearchProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
57
59
63 inline int GetMaxResults() const{ return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
66 inline SearchProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
68
70
73 inline const Aws::String& GetDomainName() const{ return m_domainName; }
74 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
75 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
76 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
77 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
78 inline SearchProfilesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
79 inline SearchProfilesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
80 inline SearchProfilesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
82
84
92 inline const Aws::String& GetKeyName() const{ return m_keyName; }
93 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
94 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
95 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
96 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
97 inline SearchProfilesRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
98 inline SearchProfilesRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
99 inline SearchProfilesRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
101
103
106 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
107 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
108 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
109 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
110 inline SearchProfilesRequest& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
111 inline SearchProfilesRequest& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
112 inline SearchProfilesRequest& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
113 inline SearchProfilesRequest& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
114 inline SearchProfilesRequest& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
116
118
127 inline const Aws::Vector<AdditionalSearchKey>& GetAdditionalSearchKeys() const{ return m_additionalSearchKeys; }
128 inline bool AdditionalSearchKeysHasBeenSet() const { return m_additionalSearchKeysHasBeenSet; }
129 inline void SetAdditionalSearchKeys(const Aws::Vector<AdditionalSearchKey>& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys = value; }
130 inline void SetAdditionalSearchKeys(Aws::Vector<AdditionalSearchKey>&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys = std::move(value); }
133 inline SearchProfilesRequest& AddAdditionalSearchKeys(const AdditionalSearchKey& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys.push_back(value); return *this; }
134 inline SearchProfilesRequest& AddAdditionalSearchKeys(AdditionalSearchKey&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys.push_back(std::move(value)); return *this; }
136
138
150 inline const LogicalOperator& GetLogicalOperator() const{ return m_logicalOperator; }
151 inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
152 inline void SetLogicalOperator(const LogicalOperator& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; }
153 inline void SetLogicalOperator(LogicalOperator&& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = std::move(value); }
155 inline SearchProfilesRequest& WithLogicalOperator(LogicalOperator&& value) { SetLogicalOperator(std::move(value)); return *this;}
157 private:
158
159 Aws::String m_nextToken;
160 bool m_nextTokenHasBeenSet = false;
161
162 int m_maxResults;
163 bool m_maxResultsHasBeenSet = false;
164
165 Aws::String m_domainName;
166 bool m_domainNameHasBeenSet = false;
167
168 Aws::String m_keyName;
169 bool m_keyNameHasBeenSet = false;
170
172 bool m_valuesHasBeenSet = false;
173
174 Aws::Vector<AdditionalSearchKey> m_additionalSearchKeys;
175 bool m_additionalSearchKeysHasBeenSet = false;
176
177 LogicalOperator m_logicalOperator;
178 bool m_logicalOperatorHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace CustomerProfiles
183} // namespace Aws
SearchProfilesRequest & WithKeyName(Aws::String &&value)
SearchProfilesRequest & WithValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetValues() const
SearchProfilesRequest & WithNextToken(const Aws::String &value)
SearchProfilesRequest & WithNextToken(const char *value)
SearchProfilesRequest & WithAdditionalSearchKeys(Aws::Vector< AdditionalSearchKey > &&value)
void SetValues(const Aws::Vector< Aws::String > &value)
SearchProfilesRequest & WithDomainName(const char *value)
SearchProfilesRequest & WithLogicalOperator(LogicalOperator &&value)
SearchProfilesRequest & AddAdditionalSearchKeys(AdditionalSearchKey &&value)
const Aws::Vector< AdditionalSearchKey > & GetAdditionalSearchKeys() const
void SetAdditionalSearchKeys(Aws::Vector< AdditionalSearchKey > &&value)
void SetValues(Aws::Vector< Aws::String > &&value)
SearchProfilesRequest & WithDomainName(const Aws::String &value)
SearchProfilesRequest & WithLogicalOperator(const LogicalOperator &value)
SearchProfilesRequest & WithAdditionalSearchKeys(const Aws::Vector< AdditionalSearchKey > &value)
AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchProfilesRequest & AddValues(const char *value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
SearchProfilesRequest & WithDomainName(Aws::String &&value)
SearchProfilesRequest & WithNextToken(Aws::String &&value)
SearchProfilesRequest & WithKeyName(const Aws::String &value)
SearchProfilesRequest & AddValues(Aws::String &&value)
SearchProfilesRequest & WithKeyName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetAdditionalSearchKeys(const Aws::Vector< AdditionalSearchKey > &value)
SearchProfilesRequest & AddAdditionalSearchKeys(const AdditionalSearchKey &value)
SearchProfilesRequest & AddValues(const Aws::String &value)
SearchProfilesRequest & WithValues(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector