AWS SDK for C++  1.9.66
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
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPlatformVersionsRequest.h:133
Aws::Http::URI
Definition: URI.h:32
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithNextToken
ListPlatformVersionsRequest & WithNextToken(const char *value)
Definition: ListPlatformVersionsRequest.h:181
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::GetFilters
const Aws::Vector< PlatformFilter > & GetFilters() const
Definition: ListPlatformVersionsRequest.h:46
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: ListPlatformVersionsRequest.h:106
PlatformFilter.h
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPlatformVersionsRequest.h:125
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListPlatformVersionsRequest.h:53
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
ElasticBeanstalkRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithNextToken
ListPlatformVersionsRequest & WithNextToken(Aws::String &&value)
Definition: ListPlatformVersionsRequest.h:173
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithFilters
ListPlatformVersionsRequest & WithFilters(const Aws::Vector< PlatformFilter > &value)
Definition: ListPlatformVersionsRequest.h:74
AWSVector.h
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::ListPlatformVersionsRequest
ListPlatformVersionsRequest()
Aws::ElasticBeanstalk::Model::PlatformFilter
Definition: PlatformFilter.h:35
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPlatformVersionsRequest.h:32
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: ListPlatformVersionsRequest.h:111
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetFilters
void SetFilters(Aws::Vector< PlatformFilter > &&value)
Definition: ListPlatformVersionsRequest.h:67
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithFilters
ListPlatformVersionsRequest & WithFilters(Aws::Vector< PlatformFilter > &&value)
Definition: ListPlatformVersionsRequest.h:81
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPlatformVersionsRequest.h:157
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetFilters
void SetFilters(const Aws::Vector< PlatformFilter > &value)
Definition: ListPlatformVersionsRequest.h:60
AWSString.h
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPlatformVersionsRequest.h:149
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::GetMaxRecords
int GetMaxRecords() const
Definition: ListPlatformVersionsRequest.h:101
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::AddFilters
ListPlatformVersionsRequest & AddFilters(const PlatformFilter &value)
Definition: ListPlatformVersionsRequest.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithMaxRecords
ListPlatformVersionsRequest & WithMaxRecords(int value)
Definition: ListPlatformVersionsRequest.h:116
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest
Definition: ListPlatformVersionsRequest.h:24
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPlatformVersionsRequest.h:141
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::WithNextToken
ListPlatformVersionsRequest & WithNextToken(const Aws::String &value)
Definition: ListPlatformVersionsRequest.h:165
Aws::ElasticBeanstalk::Model::ListPlatformVersionsRequest::AddFilters
ListPlatformVersionsRequest & AddFilters(PlatformFilter &&value)
Definition: ListPlatformVersionsRequest.h:95