AWS SDK for C++  1.9.109
AWS SDK for C++
ListRecipesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Personalize
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<RecipeSummary>& GetRecipes() const{ return m_recipes; }
41 
45  inline void SetRecipes(const Aws::Vector<RecipeSummary>& value) { m_recipes = value; }
46 
50  inline void SetRecipes(Aws::Vector<RecipeSummary>&& value) { m_recipes = std::move(value); }
51 
55  inline ListRecipesResult& WithRecipes(const Aws::Vector<RecipeSummary>& value) { SetRecipes(value); return *this;}
56 
60  inline ListRecipesResult& WithRecipes(Aws::Vector<RecipeSummary>&& value) { SetRecipes(std::move(value)); return *this;}
61 
65  inline ListRecipesResult& AddRecipes(const RecipeSummary& value) { m_recipes.push_back(value); return *this; }
66 
70  inline ListRecipesResult& AddRecipes(RecipeSummary&& value) { m_recipes.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
81  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
86  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
91  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
96  inline ListRecipesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
101  inline ListRecipesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
106  inline ListRecipesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108  private:
109 
110  Aws::Vector<RecipeSummary> m_recipes;
111 
112  Aws::String m_nextToken;
113  };
114 
115 } // namespace Model
116 } // namespace Personalize
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
RecipeSummary.h
Aws::Personalize::Model::ListRecipesResult::WithRecipes
ListRecipesResult & WithRecipes(Aws::Vector< RecipeSummary > &&value)
Definition: ListRecipesResult.h:60
Aws::Personalize::Model::ListRecipesResult::SetRecipes
void SetRecipes(Aws::Vector< RecipeSummary > &&value)
Definition: ListRecipesResult.h:50
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Personalize::Model::ListRecipesResult::operator=
ListRecipesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Personalize::Model::ListRecipesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRecipesResult.h:86
AWSVector.h
Aws::Personalize::Model::ListRecipesResult::SetRecipes
void SetRecipes(const Aws::Vector< RecipeSummary > &value)
Definition: ListRecipesResult.h:45
Aws::Personalize::Model::RecipeSummary
Definition: RecipeSummary.h:34
AWSString.h
Aws::Personalize::Model::ListRecipesResult::WithRecipes
ListRecipesResult & WithRecipes(const Aws::Vector< RecipeSummary > &value)
Definition: ListRecipesResult.h:55
Aws::Personalize::Model::ListRecipesResult::GetRecipes
const Aws::Vector< RecipeSummary > & GetRecipes() const
Definition: ListRecipesResult.h:40
Aws::Personalize::Model::ListRecipesResult::AddRecipes
ListRecipesResult & AddRecipes(const RecipeSummary &value)
Definition: ListRecipesResult.h:65
Aws::Personalize::Model::ListRecipesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecipesResult.h:91
Aws::Personalize::Model::ListRecipesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecipesResult.h:76
Aws::Personalize::Model::ListRecipesResult::AddRecipes
ListRecipesResult & AddRecipes(RecipeSummary &&value)
Definition: ListRecipesResult.h:70
Aws::Personalize::Model::ListRecipesResult::WithNextToken
ListRecipesResult & WithNextToken(const Aws::String &value)
Definition: ListRecipesResult.h:96
Aws::Personalize::Model::ListRecipesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecipesResult.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::ListRecipesResult::ListRecipesResult
ListRecipesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Personalize::Model::ListRecipesResult::WithNextToken
ListRecipesResult & WithNextToken(const char *value)
Definition: ListRecipesResult.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::ListRecipesResult::WithNextToken
ListRecipesResult & WithNextToken(Aws::String &&value)
Definition: ListRecipesResult.h:101
Aws::Personalize::Model::ListRecipesResult::ListRecipesResult
ListRecipesResult()
Personalize_EXPORTS.h
Aws::Personalize::Model::ListRecipesResult
Definition: ListRecipesResult.h:30