AWS SDK for C++  1.9.159
AWS SDK for C++
ListRecipesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Personalize
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "ListRecipes"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const RecipeProvider& GetRecipeProvider() const{ return m_recipeProvider; }
43 
47  inline bool RecipeProviderHasBeenSet() const { return m_recipeProviderHasBeenSet; }
48 
52  inline void SetRecipeProvider(const RecipeProvider& value) { m_recipeProviderHasBeenSet = true; m_recipeProvider = value; }
53 
57  inline void SetRecipeProvider(RecipeProvider&& value) { m_recipeProviderHasBeenSet = true; m_recipeProvider = std::move(value); }
58 
62  inline ListRecipesRequest& WithRecipeProvider(const RecipeProvider& value) { SetRecipeProvider(value); return *this;}
63 
67  inline ListRecipesRequest& WithRecipeProvider(RecipeProvider&& value) { SetRecipeProvider(std::move(value)); return *this;}
68 
69 
74  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
75 
80  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 
86  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 
92  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
93 
98  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 
104  inline ListRecipesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 
110  inline ListRecipesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
111 
116  inline ListRecipesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 
118 
122  inline int GetMaxResults() const{ return m_maxResults; }
123 
127  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
128 
132  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
133 
137  inline ListRecipesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
138 
139 
145  inline const Domain& GetDomain() const{ return m_domain; }
146 
152  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
153 
159  inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
160 
166  inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
167 
173  inline ListRecipesRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
174 
180  inline ListRecipesRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
181 
182  private:
183 
184  RecipeProvider m_recipeProvider;
185  bool m_recipeProviderHasBeenSet;
186 
187  Aws::String m_nextToken;
188  bool m_nextTokenHasBeenSet;
189 
190  int m_maxResults;
191  bool m_maxResultsHasBeenSet;
192 
193  Domain m_domain;
194  bool m_domainHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Personalize
199 } // namespace Aws
Aws::Personalize::Model::ListRecipesRequest::SerializePayload
Aws::String SerializePayload() const override
PersonalizeRequest.h
Aws::Personalize::Model::ListRecipesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRecipesRequest.h:132
Aws::Personalize::Model::ListRecipesRequest::GetDomain
const Domain & GetDomain() const
Definition: ListRecipesRequest.h:145
Aws::Personalize::Model::ListRecipesRequest::SetDomain
void SetDomain(Domain &&value)
Definition: ListRecipesRequest.h:166
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::ListRecipesRequest
Definition: ListRecipesRequest.h:24
Aws::Personalize::Model::ListRecipesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecipesRequest.h:86
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(const Aws::String &value)
Definition: ListRecipesRequest.h:104
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(const char *value)
Definition: ListRecipesRequest.h:116
Aws::Personalize::Model::ListRecipesRequest::WithDomain
ListRecipesRequest & WithDomain(Domain &&value)
Definition: ListRecipesRequest.h:180
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
RecipeProvider.h
Domain.h
Aws::Personalize::Model::ListRecipesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecipesRequest.h:74
Aws::Personalize::Model::ListRecipesRequest::ListRecipesRequest
ListRecipesRequest()
Aws::Personalize::Model::ListRecipesRequest::WithDomain
ListRecipesRequest & WithDomain(const Domain &value)
Definition: ListRecipesRequest.h:173
Aws::Personalize::Model::ListRecipesRequest::SetDomain
void SetDomain(const Domain &value)
Definition: ListRecipesRequest.h:159
Aws::Personalize::Model::ListRecipesRequest::WithRecipeProvider
ListRecipesRequest & WithRecipeProvider(const RecipeProvider &value)
Definition: ListRecipesRequest.h:62
Aws::Personalize::Model::ListRecipesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRecipesRequest.h:80
Aws::Personalize::Model::ListRecipesRequest::WithMaxResults
ListRecipesRequest & WithMaxResults(int value)
Definition: ListRecipesRequest.h:137
Aws::Personalize::Model::ListRecipesRequest::SetRecipeProvider
void SetRecipeProvider(RecipeProvider &&value)
Definition: ListRecipesRequest.h:57
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(Aws::String &&value)
Definition: ListRecipesRequest.h:110
Aws::Personalize::Model::ListRecipesRequest::SetRecipeProvider
void SetRecipeProvider(const RecipeProvider &value)
Definition: ListRecipesRequest.h:52
Aws::Personalize::Model::ListRecipesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRecipesRequest.h:32
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::ListRecipesRequest::RecipeProviderHasBeenSet
bool RecipeProviderHasBeenSet() const
Definition: ListRecipesRequest.h:47
Aws::Personalize::Model::ListRecipesRequest::GetRecipeProvider
const RecipeProvider & GetRecipeProvider() const
Definition: ListRecipesRequest.h:42
Aws::Personalize::Model::ListRecipesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRecipesRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::Domain
Domain
Definition: Domain.h:17
Aws::Personalize::Model::ListRecipesRequest::WithRecipeProvider
ListRecipesRequest & WithRecipeProvider(RecipeProvider &&value)
Definition: ListRecipesRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::ListRecipesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRecipesRequest.h:127
Aws::Personalize::Model::ListRecipesRequest::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: ListRecipesRequest.h:152
Aws::Personalize::Model::RecipeProvider
RecipeProvider
Definition: RecipeProvider.h:17
Personalize_EXPORTS.h
Aws::Personalize::Model::ListRecipesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRecipesRequest.h:92
Aws::Personalize::Model::ListRecipesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::ListRecipesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecipesRequest.h:98