AWS SDK for C++  1.8.71
AWS SDK for C++
ListPlatformBranchesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticBeanstalk
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "ListPlatformBranches"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
66  inline const Aws::Vector<SearchFilter>& GetFilters() const{ return m_filters; }
67 
93  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 
120  inline void SetFilters(const Aws::Vector<SearchFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
121 
147  inline void SetFilters(Aws::Vector<SearchFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
148 
174  inline ListPlatformBranchesRequest& WithFilters(const Aws::Vector<SearchFilter>& value) { SetFilters(value); return *this;}
175 
201  inline ListPlatformBranchesRequest& WithFilters(Aws::Vector<SearchFilter>&& value) { SetFilters(std::move(value)); return *this;}
202 
228  inline ListPlatformBranchesRequest& AddFilters(const SearchFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
229 
255  inline ListPlatformBranchesRequest& AddFilters(SearchFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
256 
257 
261  inline int GetMaxRecords() const{ return m_maxRecords; }
262 
266  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
267 
271  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
272 
276  inline ListPlatformBranchesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
277 
278 
285  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
286 
293  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
294 
301  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
302 
309  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
310 
317  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
318 
325  inline ListPlatformBranchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
326 
333  inline ListPlatformBranchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
334 
341  inline ListPlatformBranchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
342 
343  private:
344 
345  Aws::Vector<SearchFilter> m_filters;
346  bool m_filtersHasBeenSet;
347 
348  int m_maxRecords;
349  bool m_maxRecordsHasBeenSet;
350 
351  Aws::String m_nextToken;
352  bool m_nextTokenHasBeenSet;
353  };
354 
355 } // namespace Model
356 } // namespace ElasticBeanstalk
357 } // namespace Aws
void SetFilters(const Aws::Vector< SearchFilter > &value)
ListPlatformBranchesRequest & WithNextToken(const char *value)
#define AWS_ELASTICBEANSTALK_API
ListPlatformBranchesRequest & WithFilters(Aws::Vector< SearchFilter > &&value)
ListPlatformBranchesRequest & AddFilters(const SearchFilter &value)
ListPlatformBranchesRequest & WithNextToken(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListPlatformBranchesRequest & AddFilters(SearchFilter &&value)
ListPlatformBranchesRequest & WithFilters(const Aws::Vector< SearchFilter > &value)
ListPlatformBranchesRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97