AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeEnvironmentsRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeEnvironments"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
49 
54  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
55 
60  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
61 
66  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
67 
72  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
73 
78  inline DescribeEnvironmentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
79 
84  inline DescribeEnvironmentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
85 
90  inline DescribeEnvironmentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
91 
92 
97  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
98 
103  inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
104 
109  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
110 
115  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
116 
121  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
122 
127  inline DescribeEnvironmentsRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
128 
133  inline DescribeEnvironmentsRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
134 
139  inline DescribeEnvironmentsRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
140 
141 
146  inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const{ return m_environmentIds; }
147 
152  inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; }
153 
158  inline void SetEnvironmentIds(const Aws::Vector<Aws::String>& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; }
159 
164  inline void SetEnvironmentIds(Aws::Vector<Aws::String>&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = std::move(value); }
165 
170  inline DescribeEnvironmentsRequest& WithEnvironmentIds(const Aws::Vector<Aws::String>& value) { SetEnvironmentIds(value); return *this;}
171 
176  inline DescribeEnvironmentsRequest& WithEnvironmentIds(Aws::Vector<Aws::String>&& value) { SetEnvironmentIds(std::move(value)); return *this;}
177 
182  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const Aws::String& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
183 
188  inline DescribeEnvironmentsRequest& AddEnvironmentIds(Aws::String&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(std::move(value)); return *this; }
189 
194  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const char* value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
195 
196 
201  inline const Aws::Vector<Aws::String>& GetEnvironmentNames() const{ return m_environmentNames; }
202 
207  inline bool EnvironmentNamesHasBeenSet() const { return m_environmentNamesHasBeenSet; }
208 
213  inline void SetEnvironmentNames(const Aws::Vector<Aws::String>& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = value; }
214 
219  inline void SetEnvironmentNames(Aws::Vector<Aws::String>&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = std::move(value); }
220 
225  inline DescribeEnvironmentsRequest& WithEnvironmentNames(const Aws::Vector<Aws::String>& value) { SetEnvironmentNames(value); return *this;}
226 
231  inline DescribeEnvironmentsRequest& WithEnvironmentNames(Aws::Vector<Aws::String>&& value) { SetEnvironmentNames(std::move(value)); return *this;}
232 
237  inline DescribeEnvironmentsRequest& AddEnvironmentNames(const Aws::String& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
238 
243  inline DescribeEnvironmentsRequest& AddEnvironmentNames(Aws::String&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(std::move(value)); return *this; }
244 
249  inline DescribeEnvironmentsRequest& AddEnvironmentNames(const char* value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
250 
251 
257  inline bool GetIncludeDeleted() const{ return m_includeDeleted; }
258 
264  inline bool IncludeDeletedHasBeenSet() const { return m_includeDeletedHasBeenSet; }
265 
271  inline void SetIncludeDeleted(bool value) { m_includeDeletedHasBeenSet = true; m_includeDeleted = value; }
272 
278  inline DescribeEnvironmentsRequest& WithIncludeDeleted(bool value) { SetIncludeDeleted(value); return *this;}
279 
280 
285  inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const{ return m_includedDeletedBackTo; }
286 
291  inline bool IncludedDeletedBackToHasBeenSet() const { return m_includedDeletedBackToHasBeenSet; }
292 
297  inline void SetIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = value; }
298 
303  inline void SetIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = std::move(value); }
304 
309  inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { SetIncludedDeletedBackTo(value); return *this;}
310 
315  inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { SetIncludedDeletedBackTo(std::move(value)); return *this;}
316 
317 
323  inline int GetMaxRecords() const{ return m_maxRecords; }
324 
330  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
331 
337  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
338 
344  inline DescribeEnvironmentsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
345 
346 
353  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
354 
361  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
362 
369  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
370 
377  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
378 
385  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
386 
393  inline DescribeEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
394 
401  inline DescribeEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
402 
409  inline DescribeEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
410 
411  private:
412 
413  Aws::String m_applicationName;
414  bool m_applicationNameHasBeenSet;
415 
416  Aws::String m_versionLabel;
417  bool m_versionLabelHasBeenSet;
418 
419  Aws::Vector<Aws::String> m_environmentIds;
420  bool m_environmentIdsHasBeenSet;
421 
422  Aws::Vector<Aws::String> m_environmentNames;
423  bool m_environmentNamesHasBeenSet;
424 
425  bool m_includeDeleted;
426  bool m_includeDeletedHasBeenSet;
427 
428  Aws::Utils::DateTime m_includedDeletedBackTo;
429  bool m_includedDeletedBackToHasBeenSet;
430 
431  int m_maxRecords;
432  bool m_maxRecordsHasBeenSet;
433 
434  Aws::String m_nextToken;
435  bool m_nextTokenHasBeenSet;
436  };
437 
438 } // namespace Model
439 } // namespace ElasticBeanstalk
440 } // namespace Aws
DescribeEnvironmentsRequest & WithNextToken(Aws::String &&value)
DescribeEnvironmentsRequest & WithApplicationName(Aws::String &&value)
DescribeEnvironmentsRequest & AddEnvironmentIds(const Aws::String &value)
DescribeEnvironmentsRequest & WithApplicationName(const Aws::String &value)
DescribeEnvironmentsRequest & WithApplicationName(const char *value)
DescribeEnvironmentsRequest & AddEnvironmentIds(const char *value)
DescribeEnvironmentsRequest & WithEnvironmentIds(Aws::Vector< Aws::String > &&value)
DescribeEnvironmentsRequest & WithVersionLabel(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
void SetEnvironmentIds(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithEnvironmentNames(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeEnvironmentsRequest & AddEnvironmentNames(Aws::String &&value)
DescribeEnvironmentsRequest & WithVersionLabel(const Aws::String &value)
DescribeEnvironmentsRequest & WithEnvironmentIds(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithNextToken(const char *value)
DescribeEnvironmentsRequest & WithNextToken(const Aws::String &value)
void SetEnvironmentNames(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & AddEnvironmentIds(Aws::String &&value)
DescribeEnvironmentsRequest & WithIncludedDeletedBackTo(Aws::Utils::DateTime &&value)
DescribeEnvironmentsRequest & WithVersionLabel(const char *value)
const Aws::Vector< Aws::String > & GetEnvironmentNames() const
DescribeEnvironmentsRequest & WithEnvironmentNames(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeEnvironmentsRequest & WithIncludedDeletedBackTo(const Aws::Utils::DateTime &value)
DescribeEnvironmentsRequest & AddEnvironmentNames(const Aws::String &value)
DescribeEnvironmentsRequest & AddEnvironmentNames(const char *value)