AWS SDK for C++  0.12.9
AWS SDK for C++
TerminateEnvironmentRequest.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
19 
20 namespace Aws
21 {
22 namespace ElasticBeanstalk
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
41  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
42 
48  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
49 
55  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
56 
62  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
63 
69  inline TerminateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
70 
76  inline TerminateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(value); return *this;}
77 
83  inline TerminateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
84 
90  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
91 
97  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
98 
104  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
105 
111  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
112 
118  inline TerminateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
119 
125  inline TerminateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(value); return *this;}
126 
132  inline TerminateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
133 
145  inline bool GetTerminateResources() const{ return m_terminateResources; }
146 
158  inline void SetTerminateResources(bool value) { m_terminateResourcesHasBeenSet = true; m_terminateResources = value; }
159 
171  inline TerminateEnvironmentRequest& WithTerminateResources(bool value) { SetTerminateResources(value); return *this;}
172 
177  inline bool GetForceTerminate() const{ return m_forceTerminate; }
178 
183  inline void SetForceTerminate(bool value) { m_forceTerminateHasBeenSet = true; m_forceTerminate = value; }
184 
189  inline TerminateEnvironmentRequest& WithForceTerminate(bool value) { SetForceTerminate(value); return *this;}
190 
191  private:
192  Aws::String m_environmentId;
193  bool m_environmentIdHasBeenSet;
194  Aws::String m_environmentName;
195  bool m_environmentNameHasBeenSet;
196  bool m_terminateResources;
197  bool m_terminateResourcesHasBeenSet;
198  bool m_forceTerminate;
199  bool m_forceTerminateHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace ElasticBeanstalk
204 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
TerminateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
TerminateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
TerminateEnvironmentRequest & WithEnvironmentId(const char *value)
TerminateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
TerminateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
TerminateEnvironmentRequest & WithTerminateResources(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TerminateEnvironmentRequest & WithEnvironmentName(const char *value)
JSON (JavaScript Object Notation).