AWS SDK for C++  1.9.102
AWS SDK for C++
ListRecipesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Personalize
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListRecipes"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const RecipeProvider& GetRecipeProvider() const{ return m_recipeProvider; }
42 
46  inline bool RecipeProviderHasBeenSet() const { return m_recipeProviderHasBeenSet; }
47 
51  inline void SetRecipeProvider(const RecipeProvider& value) { m_recipeProviderHasBeenSet = true; m_recipeProvider = value; }
52 
56  inline void SetRecipeProvider(RecipeProvider&& value) { m_recipeProviderHasBeenSet = true; m_recipeProvider = std::move(value); }
57 
61  inline ListRecipesRequest& WithRecipeProvider(const RecipeProvider& value) { SetRecipeProvider(value); return *this;}
62 
66  inline ListRecipesRequest& WithRecipeProvider(RecipeProvider&& value) { SetRecipeProvider(std::move(value)); return *this;}
67 
68 
73  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
74 
79  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 
85  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
86 
91  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
92 
97  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 
103  inline ListRecipesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 
109  inline ListRecipesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 
115  inline ListRecipesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
117 
121  inline int GetMaxResults() const{ return m_maxResults; }
122 
126  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 
131  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
132 
136  inline ListRecipesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137 
138  private:
139 
140  RecipeProvider m_recipeProvider;
141  bool m_recipeProviderHasBeenSet;
142 
143  Aws::String m_nextToken;
144  bool m_nextTokenHasBeenSet;
145 
146  int m_maxResults;
147  bool m_maxResultsHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Personalize
152 } // 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:131
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::ListRecipesRequest
Definition: ListRecipesRequest.h:23
Aws::Personalize::Model::ListRecipesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecipesRequest.h:85
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(const Aws::String &value)
Definition: ListRecipesRequest.h:103
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(const char *value)
Definition: ListRecipesRequest.h:115
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
RecipeProvider.h
Aws::Personalize::Model::ListRecipesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecipesRequest.h:73
Aws::Personalize::Model::ListRecipesRequest::ListRecipesRequest
ListRecipesRequest()
Aws::Personalize::Model::ListRecipesRequest::WithRecipeProvider
ListRecipesRequest & WithRecipeProvider(const RecipeProvider &value)
Definition: ListRecipesRequest.h:61
Aws::Personalize::Model::ListRecipesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRecipesRequest.h:79
Aws::Personalize::Model::ListRecipesRequest::WithMaxResults
ListRecipesRequest & WithMaxResults(int value)
Definition: ListRecipesRequest.h:136
Aws::Personalize::Model::ListRecipesRequest::SetRecipeProvider
void SetRecipeProvider(RecipeProvider &&value)
Definition: ListRecipesRequest.h:56
Aws::Personalize::Model::ListRecipesRequest::WithNextToken
ListRecipesRequest & WithNextToken(Aws::String &&value)
Definition: ListRecipesRequest.h:109
Aws::Personalize::Model::ListRecipesRequest::SetRecipeProvider
void SetRecipeProvider(const RecipeProvider &value)
Definition: ListRecipesRequest.h:51
Aws::Personalize::Model::ListRecipesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRecipesRequest.h:31
AWSString.h
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::ListRecipesRequest::RecipeProviderHasBeenSet
bool RecipeProviderHasBeenSet() const
Definition: ListRecipesRequest.h:46
Aws::Personalize::Model::ListRecipesRequest::GetRecipeProvider
const RecipeProvider & GetRecipeProvider() const
Definition: ListRecipesRequest.h:41
Aws::Personalize::Model::ListRecipesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRecipesRequest.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::ListRecipesRequest::WithRecipeProvider
ListRecipesRequest & WithRecipeProvider(RecipeProvider &&value)
Definition: ListRecipesRequest.h:66
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:126
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:91
Aws::Personalize::Model::ListRecipesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::ListRecipesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecipesRequest.h:97