AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeEnvironmentsRequest.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticBeanstalk
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_ELASTICBEANSTALK_API DescribeEnvironmentsRequest();
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_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
52 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
53 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
55 inline DescribeEnvironmentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
56 inline DescribeEnvironmentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
58
60
64 inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
65 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
66 inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
67 inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
68 inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
69 inline DescribeEnvironmentsRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
70 inline DescribeEnvironmentsRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
71 inline DescribeEnvironmentsRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
73
75
79 inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const{ return m_environmentIds; }
80 inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; }
81 inline void SetEnvironmentIds(const Aws::Vector<Aws::String>& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; }
82 inline void SetEnvironmentIds(Aws::Vector<Aws::String>&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = std::move(value); }
85 inline DescribeEnvironmentsRequest& AddEnvironmentIds(const Aws::String& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
86 inline DescribeEnvironmentsRequest& AddEnvironmentIds(Aws::String&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(std::move(value)); return *this; }
87 inline DescribeEnvironmentsRequest& AddEnvironmentIds(const char* value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
89
91
95 inline const Aws::Vector<Aws::String>& GetEnvironmentNames() const{ return m_environmentNames; }
96 inline bool EnvironmentNamesHasBeenSet() const { return m_environmentNamesHasBeenSet; }
97 inline void SetEnvironmentNames(const Aws::Vector<Aws::String>& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = value; }
98 inline void SetEnvironmentNames(Aws::Vector<Aws::String>&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = std::move(value); }
101 inline DescribeEnvironmentsRequest& AddEnvironmentNames(const Aws::String& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
102 inline DescribeEnvironmentsRequest& AddEnvironmentNames(Aws::String&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(std::move(value)); return *this; }
103 inline DescribeEnvironmentsRequest& AddEnvironmentNames(const char* value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
105
107
112 inline bool GetIncludeDeleted() const{ return m_includeDeleted; }
113 inline bool IncludeDeletedHasBeenSet() const { return m_includeDeletedHasBeenSet; }
114 inline void SetIncludeDeleted(bool value) { m_includeDeletedHasBeenSet = true; m_includeDeleted = value; }
115 inline DescribeEnvironmentsRequest& WithIncludeDeleted(bool value) { SetIncludeDeleted(value); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const{ return m_includedDeletedBackTo; }
124 inline bool IncludedDeletedBackToHasBeenSet() const { return m_includedDeletedBackToHasBeenSet; }
125 inline void SetIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = value; }
126 inline void SetIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = std::move(value); }
130
132
137 inline int GetMaxRecords() const{ return m_maxRecords; }
138 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
139 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
140 inline DescribeEnvironmentsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
142
144
150 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
151 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
152 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
153 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
154 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
155 inline DescribeEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
156 inline DescribeEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
157 inline DescribeEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
159 private:
160
161 Aws::String m_applicationName;
162 bool m_applicationNameHasBeenSet = false;
163
164 Aws::String m_versionLabel;
165 bool m_versionLabelHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_environmentIds;
168 bool m_environmentIdsHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_environmentNames;
171 bool m_environmentNamesHasBeenSet = false;
172
173 bool m_includeDeleted;
174 bool m_includeDeletedHasBeenSet = false;
175
176 Aws::Utils::DateTime m_includedDeletedBackTo;
177 bool m_includedDeletedBackToHasBeenSet = false;
178
179 int m_maxRecords;
180 bool m_maxRecordsHasBeenSet = false;
181
182 Aws::String m_nextToken;
183 bool m_nextTokenHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ElasticBeanstalk
188} // namespace Aws
DescribeEnvironmentsRequest & AddEnvironmentIds(Aws::String &&value)
DescribeEnvironmentsRequest & WithIncludedDeletedBackTo(const Aws::Utils::DateTime &value)
DescribeEnvironmentsRequest & WithEnvironmentIds(Aws::Vector< Aws::String > &&value)
DescribeEnvironmentsRequest & WithNextToken(const char *value)
DescribeEnvironmentsRequest & WithEnvironmentNames(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithVersionLabel(const char *value)
DescribeEnvironmentsRequest & AddEnvironmentIds(const Aws::String &value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetEnvironmentNames(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithEnvironmentIds(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithApplicationName(Aws::String &&value)
DescribeEnvironmentsRequest & WithVersionLabel(Aws::String &&value)
DescribeEnvironmentsRequest & WithApplicationName(const char *value)
DescribeEnvironmentsRequest & WithNextToken(Aws::String &&value)
void SetEnvironmentIds(const Aws::Vector< Aws::String > &value)
DescribeEnvironmentsRequest & WithIncludedDeletedBackTo(Aws::Utils::DateTime &&value)
DescribeEnvironmentsRequest & WithVersionLabel(const Aws::String &value)
DescribeEnvironmentsRequest & WithApplicationName(const Aws::String &value)
DescribeEnvironmentsRequest & AddEnvironmentIds(const char *value)
DescribeEnvironmentsRequest & WithNextToken(const Aws::String &value)
DescribeEnvironmentsRequest & WithEnvironmentNames(Aws::Vector< Aws::String > &&value)
DescribeEnvironmentsRequest & AddEnvironmentNames(const char *value)
DescribeEnvironmentsRequest & AddEnvironmentNames(Aws::String &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
DescribeEnvironmentsRequest & AddEnvironmentNames(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector