AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
53 template<typename ApplicationNameT = Aws::String>
54 DescribeEnvironmentsRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
63 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
64 template<typename VersionLabelT = Aws::String>
65 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
66 template<typename VersionLabelT = Aws::String>
67 DescribeEnvironmentsRequest& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
69
71
75 inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const { return m_environmentIds; }
76 inline bool EnvironmentIdsHasBeenSet() const { return m_environmentIdsHasBeenSet; }
77 template<typename EnvironmentIdsT = Aws::Vector<Aws::String>>
78 void SetEnvironmentIds(EnvironmentIdsT&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = std::forward<EnvironmentIdsT>(value); }
79 template<typename EnvironmentIdsT = Aws::Vector<Aws::String>>
80 DescribeEnvironmentsRequest& WithEnvironmentIds(EnvironmentIdsT&& value) { SetEnvironmentIds(std::forward<EnvironmentIdsT>(value)); return *this;}
81 template<typename EnvironmentIdsT = Aws::String>
82 DescribeEnvironmentsRequest& AddEnvironmentIds(EnvironmentIdsT&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.emplace_back(std::forward<EnvironmentIdsT>(value)); return *this; }
84
86
90 inline const Aws::Vector<Aws::String>& GetEnvironmentNames() const { return m_environmentNames; }
91 inline bool EnvironmentNamesHasBeenSet() const { return m_environmentNamesHasBeenSet; }
92 template<typename EnvironmentNamesT = Aws::Vector<Aws::String>>
93 void SetEnvironmentNames(EnvironmentNamesT&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = std::forward<EnvironmentNamesT>(value); }
94 template<typename EnvironmentNamesT = Aws::Vector<Aws::String>>
95 DescribeEnvironmentsRequest& WithEnvironmentNames(EnvironmentNamesT&& value) { SetEnvironmentNames(std::forward<EnvironmentNamesT>(value)); return *this;}
96 template<typename EnvironmentNamesT = Aws::String>
97 DescribeEnvironmentsRequest& AddEnvironmentNames(EnvironmentNamesT&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.emplace_back(std::forward<EnvironmentNamesT>(value)); return *this; }
99
101
106 inline bool GetIncludeDeleted() const { return m_includeDeleted; }
107 inline bool IncludeDeletedHasBeenSet() const { return m_includeDeletedHasBeenSet; }
108 inline void SetIncludeDeleted(bool value) { m_includeDeletedHasBeenSet = true; m_includeDeleted = value; }
109 inline DescribeEnvironmentsRequest& WithIncludeDeleted(bool value) { SetIncludeDeleted(value); return *this;}
111
113
117 inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const { return m_includedDeletedBackTo; }
118 inline bool IncludedDeletedBackToHasBeenSet() const { return m_includedDeletedBackToHasBeenSet; }
119 template<typename IncludedDeletedBackToT = Aws::Utils::DateTime>
120 void SetIncludedDeletedBackTo(IncludedDeletedBackToT&& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = std::forward<IncludedDeletedBackToT>(value); }
121 template<typename IncludedDeletedBackToT = Aws::Utils::DateTime>
122 DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(IncludedDeletedBackToT&& value) { SetIncludedDeletedBackTo(std::forward<IncludedDeletedBackToT>(value)); return *this;}
124
126
131 inline int GetMaxRecords() const { return m_maxRecords; }
132 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
133 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
134 inline DescribeEnvironmentsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
136
138
144 inline const Aws::String& GetNextToken() const { return m_nextToken; }
145 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
146 template<typename NextTokenT = Aws::String>
147 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
148 template<typename NextTokenT = Aws::String>
149 DescribeEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
151 private:
152
153 Aws::String m_applicationName;
154 bool m_applicationNameHasBeenSet = false;
155
156 Aws::String m_versionLabel;
157 bool m_versionLabelHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_environmentIds;
160 bool m_environmentIdsHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_environmentNames;
163 bool m_environmentNamesHasBeenSet = false;
164
165 bool m_includeDeleted{false};
166 bool m_includeDeletedHasBeenSet = false;
167
168 Aws::Utils::DateTime m_includedDeletedBackTo{};
169 bool m_includedDeletedBackToHasBeenSet = false;
170
171 int m_maxRecords{0};
172 bool m_maxRecordsHasBeenSet = false;
173
174 Aws::String m_nextToken;
175 bool m_nextTokenHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace ElasticBeanstalk
180} // 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