AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListRecipesRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/personalize/model/RecipeProvider.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/personalize/model/Domain.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Personalize
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZE_API ListRecipesRequest() = 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 "ListRecipes"; }
33
34 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
35
36 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline RecipeProvider GetRecipeProvider() const { return m_recipeProvider; }
44 inline bool RecipeProviderHasBeenSet() const { return m_recipeProviderHasBeenSet; }
45 inline void SetRecipeProvider(RecipeProvider value) { m_recipeProviderHasBeenSet = true; m_recipeProvider = value; }
48
50
54 inline const Aws::String& GetNextToken() const { return m_nextToken; }
55 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 template<typename NextTokenT = Aws::String>
57 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
58 template<typename NextTokenT = Aws::String>
59 ListRecipesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
61
63
66 inline int GetMaxResults() const { return m_maxResults; }
67 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
68 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
69 inline ListRecipesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
71
73
78 inline Domain GetDomain() const { return m_domain; }
79 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
80 inline void SetDomain(Domain value) { m_domainHasBeenSet = true; m_domain = value; }
81 inline ListRecipesRequest& WithDomain(Domain value) { SetDomain(value); return *this;}
83 private:
84
86 bool m_recipeProviderHasBeenSet = false;
87
88 Aws::String m_nextToken;
89 bool m_nextTokenHasBeenSet = false;
90
91 int m_maxResults{0};
92 bool m_maxResultsHasBeenSet = false;
93
94 Domain m_domain{Domain::NOT_SET};
95 bool m_domainHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Personalize
100} // namespace Aws
ListRecipesRequest & WithDomain(Domain value)
ListRecipesRequest & WithNextToken(NextTokenT &&value)
ListRecipesRequest & WithRecipeProvider(RecipeProvider value)
virtual const char * GetServiceRequestName() const override
ListRecipesRequest & WithMaxResults(int value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
AWS_PERSONALIZE_API ListRecipesRequest()=default
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String