AWS SDK for C++  1.8.71
AWS SDK for C++
ListImageRecipesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace imagebuilder
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListImageRecipes"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
44  inline const Ownership& GetOwner() const{ return m_owner; }
45 
52  inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
53 
60  inline void SetOwner(const Ownership& value) { m_ownerHasBeenSet = true; m_owner = value; }
61 
68  inline void SetOwner(Ownership&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
69 
76  inline ListImageRecipesRequest& WithOwner(const Ownership& value) { SetOwner(value); return *this;}
77 
84  inline ListImageRecipesRequest& WithOwner(Ownership&& value) { SetOwner(std::move(value)); return *this;}
85 
86 
90  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
91 
95  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 
100  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
101 
105  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
106 
110  inline ListImageRecipesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
111 
115  inline ListImageRecipesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
116 
120  inline ListImageRecipesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
121 
125  inline ListImageRecipesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
126 
127 
131  inline int GetMaxResults() const{ return m_maxResults; }
132 
136  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
137 
141  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
142 
146  inline ListImageRecipesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
147 
148 
153  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
154 
159  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
160 
165  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
166 
171  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
172 
177  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
178 
183  inline ListImageRecipesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
184 
189  inline ListImageRecipesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
190 
195  inline ListImageRecipesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
196 
197  private:
198 
199  Ownership m_owner;
200  bool m_ownerHasBeenSet;
201 
202  Aws::Vector<Filter> m_filters;
203  bool m_filtersHasBeenSet;
204 
205  int m_maxResults;
206  bool m_maxResultsHasBeenSet;
207 
208  Aws::String m_nextToken;
209  bool m_nextTokenHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace imagebuilder
214 } // namespace Aws
void SetFilters(const Aws::Vector< Filter > &value)
ListImageRecipesRequest & WithFilters(const Aws::Vector< Filter > &value)
ListImageRecipesRequest & WithNextToken(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListImageRecipesRequest & AddFilters(const Filter &value)
ListImageRecipesRequest & WithNextToken(const char *value)
#define AWS_IMAGEBUILDER_API
ListImageRecipesRequest & WithMaxResults(int value)
ListImageRecipesRequest & WithOwner(const Ownership &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Filter > & GetFilters() const
ListImageRecipesRequest & WithNextToken(Aws::String &&value)
ListImageRecipesRequest & AddFilters(Filter &&value)
ListImageRecipesRequest & WithFilters(Aws::Vector< Filter > &&value)
ListImageRecipesRequest & WithOwner(Ownership &&value)