AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeApplicationVersionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticBeanstalk
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeApplicationVersions"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
48 
53  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
54 
59  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
60 
65  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
66 
71  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
72 
77  inline DescribeApplicationVersionsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
78 
83  inline DescribeApplicationVersionsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
84 
89  inline DescribeApplicationVersionsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
90 
91 
95  inline const Aws::Vector<Aws::String>& GetVersionLabels() const{ return m_versionLabels; }
96 
100  inline bool VersionLabelsHasBeenSet() const { return m_versionLabelsHasBeenSet; }
101 
105  inline void SetVersionLabels(const Aws::Vector<Aws::String>& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = value; }
106 
110  inline void SetVersionLabels(Aws::Vector<Aws::String>&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels = std::move(value); }
111 
115  inline DescribeApplicationVersionsRequest& WithVersionLabels(const Aws::Vector<Aws::String>& value) { SetVersionLabels(value); return *this;}
116 
120  inline DescribeApplicationVersionsRequest& WithVersionLabels(Aws::Vector<Aws::String>&& value) { SetVersionLabels(std::move(value)); return *this;}
121 
125  inline DescribeApplicationVersionsRequest& AddVersionLabels(const Aws::String& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; }
126 
130  inline DescribeApplicationVersionsRequest& AddVersionLabels(Aws::String&& value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(std::move(value)); return *this; }
131 
135  inline DescribeApplicationVersionsRequest& AddVersionLabels(const char* value) { m_versionLabelsHasBeenSet = true; m_versionLabels.push_back(value); return *this; }
136 
137 
143  inline int GetMaxRecords() const{ return m_maxRecords; }
144 
150  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
151 
157  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
158 
164  inline DescribeApplicationVersionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
165 
166 
173  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
174 
181  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 
189  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
190 
197  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
198 
205  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
206 
213  inline DescribeApplicationVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
214 
221  inline DescribeApplicationVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
222 
229  inline DescribeApplicationVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
230 
231  private:
232 
233  Aws::String m_applicationName;
234  bool m_applicationNameHasBeenSet;
235 
236  Aws::Vector<Aws::String> m_versionLabels;
237  bool m_versionLabelsHasBeenSet;
238 
239  int m_maxRecords;
240  bool m_maxRecordsHasBeenSet;
241 
242  Aws::String m_nextToken;
243  bool m_nextTokenHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace ElasticBeanstalk
248 } // namespace Aws
DescribeApplicationVersionsRequest & AddVersionLabels(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
DescribeApplicationVersionsRequest & WithApplicationName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeApplicationVersionsRequest & WithApplicationName(Aws::String &&value)
DescribeApplicationVersionsRequest & WithNextToken(const char *value)
DescribeApplicationVersionsRequest & AddVersionLabels(const char *value)
DescribeApplicationVersionsRequest & WithNextToken(Aws::String &&value)
DescribeApplicationVersionsRequest & AddVersionLabels(Aws::String &&value)
DescribeApplicationVersionsRequest & WithVersionLabels(Aws::Vector< Aws::String > &&value)
DescribeApplicationVersionsRequest & WithApplicationName(const char *value)
DescribeApplicationVersionsRequest & WithVersionLabels(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeApplicationVersionsRequest & WithNextToken(const Aws::String &value)