AWS SDK for C++  1.8.71
AWS SDK for C++
TerminateEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ElasticBeanstalk
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "TerminateEnvironment"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
48 
54  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
55 
61  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
62 
68  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
69 
75  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
76 
82  inline TerminateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
83 
89  inline TerminateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
90 
96  inline TerminateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
97 
98 
104  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
105 
111  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
112 
118  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
119 
125  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
126 
132  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
133 
139  inline TerminateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
140 
146  inline TerminateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
147 
153  inline TerminateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
154 
155 
167  inline bool GetTerminateResources() const{ return m_terminateResources; }
168 
180  inline bool TerminateResourcesHasBeenSet() const { return m_terminateResourcesHasBeenSet; }
181 
193  inline void SetTerminateResources(bool value) { m_terminateResourcesHasBeenSet = true; m_terminateResources = value; }
194 
206  inline TerminateEnvironmentRequest& WithTerminateResources(bool value) { SetTerminateResources(value); return *this;}
207 
208 
213  inline bool GetForceTerminate() const{ return m_forceTerminate; }
214 
219  inline bool ForceTerminateHasBeenSet() const { return m_forceTerminateHasBeenSet; }
220 
225  inline void SetForceTerminate(bool value) { m_forceTerminateHasBeenSet = true; m_forceTerminate = value; }
226 
231  inline TerminateEnvironmentRequest& WithForceTerminate(bool value) { SetForceTerminate(value); return *this;}
232 
233  private:
234 
235  Aws::String m_environmentId;
236  bool m_environmentIdHasBeenSet;
237 
238  Aws::String m_environmentName;
239  bool m_environmentNameHasBeenSet;
240 
241  bool m_terminateResources;
242  bool m_terminateResourcesHasBeenSet;
243 
244  bool m_forceTerminate;
245  bool m_forceTerminateHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace ElasticBeanstalk
250 } // 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)