AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListRecipesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/Domain.h>
11#include <aws/personalize/model/RecipeProvider.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Personalize {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZE_API ListRecipesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListRecipes"; }
30
31 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
32
33 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline RecipeProvider GetRecipeProvider() const { return m_recipeProvider; }
40 inline bool RecipeProviderHasBeenSet() const { return m_recipeProviderHasBeenSet; }
41 inline void SetRecipeProvider(RecipeProvider value) {
42 m_recipeProviderHasBeenSet = true;
43 m_recipeProvider = value;
44 }
46 SetRecipeProvider(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 ListRecipesRequest& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
74 inline int GetMaxResults() const { return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) {
77 m_maxResultsHasBeenSet = true;
78 m_maxResults = value;
79 }
81 SetMaxResults(value);
82 return *this;
83 }
85
87
92 inline Domain GetDomain() const { return m_domain; }
93 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
94 inline void SetDomain(Domain value) {
95 m_domainHasBeenSet = true;
96 m_domain = value;
97 }
99 SetDomain(value);
100 return *this;
101 }
103 private:
104 RecipeProvider m_recipeProvider{RecipeProvider::NOT_SET};
105
106 Aws::String m_nextToken;
107
108 int m_maxResults{0};
109
110 Domain m_domain{Domain::NOT_SET};
111 bool m_recipeProviderHasBeenSet = false;
112 bool m_nextTokenHasBeenSet = false;
113 bool m_maxResultsHasBeenSet = false;
114 bool m_domainHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Personalize
119} // 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