AWS SDK for C++  1.8.95
AWS SDK for C++
ListPlatformVersionsRequest.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 "ListPlatformVersions"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
46  inline const Aws::Vector<PlatformFilter>& GetFilters() const{ return m_filters; }
47 
53  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
54 
60  inline void SetFilters(const Aws::Vector<PlatformFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
61 
67  inline void SetFilters(Aws::Vector<PlatformFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
68 
74  inline ListPlatformVersionsRequest& WithFilters(const Aws::Vector<PlatformFilter>& value) { SetFilters(value); return *this;}
75 
81  inline ListPlatformVersionsRequest& WithFilters(Aws::Vector<PlatformFilter>&& value) { SetFilters(std::move(value)); return *this;}
82 
88  inline ListPlatformVersionsRequest& AddFilters(const PlatformFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
89 
95  inline ListPlatformVersionsRequest& AddFilters(PlatformFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
96 
97 
101  inline int GetMaxRecords() const{ return m_maxRecords; }
102 
106  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
107 
111  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
112 
116  inline ListPlatformVersionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
117 
118 
125  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
126 
133  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 
141  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
142 
149  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
157  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
158 
165  inline ListPlatformVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
166 
173  inline ListPlatformVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
174 
181  inline ListPlatformVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
182 
183  private:
184 
185  Aws::Vector<PlatformFilter> m_filters;
186  bool m_filtersHasBeenSet;
187 
188  int m_maxRecords;
189  bool m_maxRecordsHasBeenSet;
190 
191  Aws::String m_nextToken;
192  bool m_nextTokenHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace ElasticBeanstalk
197 } // namespace Aws
ListPlatformVersionsRequest & WithFilters(const Aws::Vector< PlatformFilter > &value)
#define AWS_ELASTICBEANSTALK_API
ListPlatformVersionsRequest & AddFilters(PlatformFilter &&value)
void SetFilters(const Aws::Vector< PlatformFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListPlatformVersionsRequest & AddFilters(const PlatformFilter &value)
ListPlatformVersionsRequest & WithNextToken(const Aws::String &value)
ListPlatformVersionsRequest & WithFilters(Aws::Vector< PlatformFilter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListPlatformVersionsRequest & WithNextToken(const char *value)
ListPlatformVersionsRequest & WithNextToken(Aws::String &&value)
const Aws::Vector< PlatformFilter > & GetFilters() const