AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeEnvironmentsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace ElasticBeanstalk
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
43 
48  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
49 
54  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
55 
60  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
61 
66  inline DescribeEnvironmentsRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
67 
72  inline DescribeEnvironmentsRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
73 
78  inline DescribeEnvironmentsRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
79 
84  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
85 
90  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
91 
96  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
97 
102  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
103 
108  inline DescribeEnvironmentsRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
109 
114  inline DescribeEnvironmentsRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
115 
120  inline DescribeEnvironmentsRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
121 
126  inline const Aws::Vector<Aws::String>& GetEnvironmentIds() const{ return m_environmentIds; }
127 
132  inline void SetEnvironmentIds(const Aws::Vector<Aws::String>& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; }
133 
138  inline void SetEnvironmentIds(Aws::Vector<Aws::String>&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds = value; }
139 
144  inline DescribeEnvironmentsRequest& WithEnvironmentIds(const Aws::Vector<Aws::String>& value) { SetEnvironmentIds(value); return *this;}
145 
150  inline DescribeEnvironmentsRequest& WithEnvironmentIds(Aws::Vector<Aws::String>&& value) { SetEnvironmentIds(value); return *this;}
151 
156  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const Aws::String& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
157 
162  inline DescribeEnvironmentsRequest& AddEnvironmentIds(Aws::String&& value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
163 
168  inline DescribeEnvironmentsRequest& AddEnvironmentIds(const char* value) { m_environmentIdsHasBeenSet = true; m_environmentIds.push_back(value); return *this; }
169 
174  inline const Aws::Vector<Aws::String>& GetEnvironmentNames() const{ return m_environmentNames; }
175 
180  inline void SetEnvironmentNames(const Aws::Vector<Aws::String>& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = value; }
181 
186  inline void SetEnvironmentNames(Aws::Vector<Aws::String>&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames = value; }
187 
192  inline DescribeEnvironmentsRequest& WithEnvironmentNames(const Aws::Vector<Aws::String>& value) { SetEnvironmentNames(value); return *this;}
193 
198  inline DescribeEnvironmentsRequest& WithEnvironmentNames(Aws::Vector<Aws::String>&& value) { SetEnvironmentNames(value); return *this;}
199 
204  inline DescribeEnvironmentsRequest& AddEnvironmentNames(const Aws::String& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
205 
210  inline DescribeEnvironmentsRequest& AddEnvironmentNames(Aws::String&& value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
211 
216  inline DescribeEnvironmentsRequest& AddEnvironmentNames(const char* value) { m_environmentNamesHasBeenSet = true; m_environmentNames.push_back(value); return *this; }
217 
223  inline bool GetIncludeDeleted() const{ return m_includeDeleted; }
224 
230  inline void SetIncludeDeleted(bool value) { m_includeDeletedHasBeenSet = true; m_includeDeleted = value; }
231 
237  inline DescribeEnvironmentsRequest& WithIncludeDeleted(bool value) { SetIncludeDeleted(value); return *this;}
238 
243  inline const Aws::Utils::DateTime& GetIncludedDeletedBackTo() const{ return m_includedDeletedBackTo; }
244 
249  inline void SetIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = value; }
250 
255  inline void SetIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { m_includedDeletedBackToHasBeenSet = true; m_includedDeletedBackTo = value; }
256 
261  inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(const Aws::Utils::DateTime& value) { SetIncludedDeletedBackTo(value); return *this;}
262 
267  inline DescribeEnvironmentsRequest& WithIncludedDeletedBackTo(Aws::Utils::DateTime&& value) { SetIncludedDeletedBackTo(value); return *this;}
268 
269  private:
270  Aws::String m_applicationName;
271  bool m_applicationNameHasBeenSet;
272  Aws::String m_versionLabel;
273  bool m_versionLabelHasBeenSet;
274  Aws::Vector<Aws::String> m_environmentIds;
275  bool m_environmentIdsHasBeenSet;
276  Aws::Vector<Aws::String> m_environmentNames;
277  bool m_environmentNamesHasBeenSet;
278  bool m_includeDeleted;
279  bool m_includeDeletedHasBeenSet;
280  Aws::Utils::DateTime m_includedDeletedBackTo;
281  bool m_includedDeletedBackToHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace ElasticBeanstalk
286 } // namespace Aws
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:27
DescribeEnvironmentsRequest & AddEnvironmentNames(Aws::String &&value)
DescribeEnvironmentsRequest & WithVersionLabel(const Aws::String &value)
DescribeEnvironmentsRequest & WithEnvironmentIds(const Aws::Vector< 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)
const Aws::Vector< Aws::String > & GetEnvironmentIds() const
JSON (JavaScript Object Notation).