AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeEnvironmentsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
11#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticBeanstalk {
17namespace Model {
18
25 public:
26 AWS_ELASTICBEANSTALK_API DescribeEnvironmentsRequest() = default;
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 "DescribeEnvironments"; }
33
34 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
46 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
47 template <typename ApplicationNameT = Aws::String>
48 void SetApplicationName(ApplicationNameT&& value) {
49 m_applicationNameHasBeenSet = true;
50 m_applicationName = std::forward<ApplicationNameT>(value);
51 }
52 template <typename ApplicationNameT = Aws::String>
54 SetApplicationName(std::forward<ApplicationNameT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
65 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
66 template <typename VersionLabelT = Aws::String>
67 void SetVersionLabel(VersionLabelT&& value) {
68 m_versionLabelHasBeenSet = true;
69 m_versionLabel = std::forward<VersionLabelT>(value);
70 }
71 template <typename VersionLabelT = Aws::String>
73 SetVersionLabel(std::forward<VersionLabelT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const { return m_environmentIds; }
84 inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; }
85 template <typename EnvironmentIdsT = Aws::Vector<Aws::String>>
86 void SetEnvironmentIds(EnvironmentIdsT&& value) {
87 m_environmentIdsHasBeenSet = true;
88 m_environmentIds = std::forward<EnvironmentIdsT>(value);
89 }
90 template <typename EnvironmentIdsT = Aws::Vector<Aws::String>>
92 SetEnvironmentIds(std::forward<EnvironmentIdsT>(value));
93 return *this;
94 }
95 template <typename EnvironmentIdsT = Aws::String>
97 m_environmentIdsHasBeenSet = true;
98 m_environmentIds.emplace_back(std::forward<EnvironmentIdsT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetEnvironmentNames() const { return m_environmentNames; }
109 inline bool EnvironmentNamesHasBeenSet() const { return m_environmentNamesHasBeenSet; }
110 template <typename EnvironmentNamesT = Aws::Vector<Aws::String>>
111 void SetEnvironmentNames(EnvironmentNamesT&& value) {
112 m_environmentNamesHasBeenSet = true;
113 m_environmentNames = std::forward<EnvironmentNamesT>(value);
114 }
115 template <typename EnvironmentNamesT = Aws::Vector<Aws::String>>
117 SetEnvironmentNames(std::forward<EnvironmentNamesT>(value));
118 return *this;
119 }
120 template <typename EnvironmentNamesT = Aws::String>
122 m_environmentNamesHasBeenSet = true;
123 m_environmentNames.emplace_back(std::forward<EnvironmentNamesT>(value));
124 return *this;
125 }
127
129
134 inline bool GetIncludeDeleted() const { return m_includeDeleted; }
135 inline bool IncludeDeletedHasBeenSet() const { return m_includeDeletedHasBeenSet; }
136 inline void SetIncludeDeleted(bool value) {
137 m_includeDeletedHasBeenSet = true;
138 m_includeDeleted = value;
139 }
141 SetIncludeDeleted(value);
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const { return m_includedDeletedBackTo; }
152 inline bool IncludedDeletedBackToHasBeenSet() const { return m_includedDeletedBackToHasBeenSet; }
153 template <typename IncludedDeletedBackToT = Aws::Utils::DateTime>
154 void SetIncludedDeletedBackTo(IncludedDeletedBackToT&& value) {
155 m_includedDeletedBackToHasBeenSet = true;
156 m_includedDeletedBackTo = std::forward<IncludedDeletedBackToT>(value);
157 }
158 template <typename IncludedDeletedBackToT = Aws::Utils::DateTime>
160 SetIncludedDeletedBackTo(std::forward<IncludedDeletedBackToT>(value));
161 return *this;
162 }
164
166
171 inline int GetMaxRecords() const { return m_maxRecords; }
172 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
173 inline void SetMaxRecords(int value) {
174 m_maxRecordsHasBeenSet = true;
175 m_maxRecords = value;
176 }
178 SetMaxRecords(value);
179 return *this;
180 }
182
184
190 inline const Aws::String& GetNextToken() const { return m_nextToken; }
191 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
192 template <typename NextTokenT = Aws::String>
193 void SetNextToken(NextTokenT&& value) {
194 m_nextTokenHasBeenSet = true;
195 m_nextToken = std::forward<NextTokenT>(value);
196 }
197 template <typename NextTokenT = Aws::String>
199 SetNextToken(std::forward<NextTokenT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_applicationName;
205
206 Aws::String m_versionLabel;
207
208 Aws::Vector<Aws::String> m_environmentIds;
209
210 Aws::Vector<Aws::String> m_environmentNames;
211
212 bool m_includeDeleted{false};
213
214 Aws::Utils::DateTime m_includedDeletedBackTo{};
215
216 int m_maxRecords{0};
217
218 Aws::String m_nextToken;
219 bool m_applicationNameHasBeenSet = false;
220 bool m_versionLabelHasBeenSet = false;
221 bool m_environmentIdsHasBeenSet = false;
222 bool m_environmentNamesHasBeenSet = false;
223 bool m_includeDeletedHasBeenSet = false;
224 bool m_includedDeletedBackToHasBeenSet = false;
225 bool m_maxRecordsHasBeenSet = false;
226 bool m_nextTokenHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace ElasticBeanstalk
231} // namespace Aws
DescribeEnvironmentsRequest & WithIncludedDeletedBackTo(IncludedDeletedBackToT &&value)
DescribeEnvironmentsRequest & WithEnvironmentIds(EnvironmentIdsT &&value)
AWS_ELASTICBEANSTALK_API DescribeEnvironmentsRequest()=default
DescribeEnvironmentsRequest & WithNextToken(NextTokenT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEnvironmentsRequest & WithVersionLabel(VersionLabelT &&value)
DescribeEnvironmentsRequest & WithApplicationName(ApplicationNameT &&value)
DescribeEnvironmentsRequest & WithEnvironmentNames(EnvironmentNamesT &&value)
DescribeEnvironmentsRequest & AddEnvironmentNames(EnvironmentNamesT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
DescribeEnvironmentsRequest & AddEnvironmentIds(EnvironmentIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector