AWS SDK for C++  1.9.175
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
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetTerminateResources
void SetTerminateResources(bool value)
Definition: TerminateEnvironmentRequest.h:193
Aws::Http::URI
Definition: URI.h:32
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::EnvironmentNameHasBeenSet
bool EnvironmentNameHasBeenSet() const
Definition: TerminateEnvironmentRequest.h:111
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::GetEnvironmentId
const Aws::String & GetEnvironmentId() const
Definition: TerminateEnvironmentRequest.h:47
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithForceTerminate
TerminateEnvironmentRequest & WithForceTerminate(bool value)
Definition: TerminateEnvironmentRequest.h:231
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetForceTerminate
void SetForceTerminate(bool value)
Definition: TerminateEnvironmentRequest.h:225
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::GetForceTerminate
bool GetForceTerminate() const
Definition: TerminateEnvironmentRequest.h:213
ElasticBeanstalkRequest.h
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::ForceTerminateHasBeenSet
bool ForceTerminateHasBeenSet() const
Definition: TerminateEnvironmentRequest.h:219
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest
Definition: TerminateEnvironmentRequest.h:25
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(Aws::String &&value)
Definition: TerminateEnvironmentRequest.h:68
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentName
void SetEnvironmentName(const Aws::String &value)
Definition: TerminateEnvironmentRequest.h:118
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentName
void SetEnvironmentName(Aws::String &&value)
Definition: TerminateEnvironmentRequest.h:125
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentId
TerminateEnvironmentRequest & WithEnvironmentId(const char *value)
Definition: TerminateEnvironmentRequest.h:96
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentName
TerminateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
Definition: TerminateEnvironmentRequest.h:146
AWSString.h
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(const Aws::String &value)
Definition: TerminateEnvironmentRequest.h:61
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::GetTerminateResources
bool GetTerminateResources() const
Definition: TerminateEnvironmentRequest.h:167
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::EnvironmentIdHasBeenSet
bool EnvironmentIdHasBeenSet() const
Definition: TerminateEnvironmentRequest.h:54
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentId
TerminateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
Definition: TerminateEnvironmentRequest.h:82
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentId
TerminateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
Definition: TerminateEnvironmentRequest.h:89
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(const char *value)
Definition: TerminateEnvironmentRequest.h:75
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TerminateEnvironmentRequest.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::TerminateResourcesHasBeenSet
bool TerminateResourcesHasBeenSet() const
Definition: TerminateEnvironmentRequest.h:180
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::GetEnvironmentName
const Aws::String & GetEnvironmentName() const
Definition: TerminateEnvironmentRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::TerminateEnvironmentRequest
TerminateEnvironmentRequest()
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::SetEnvironmentName
void SetEnvironmentName(const char *value)
Definition: TerminateEnvironmentRequest.h:132
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithTerminateResources
TerminateEnvironmentRequest & WithTerminateResources(bool value)
Definition: TerminateEnvironmentRequest.h:206
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentName
TerminateEnvironmentRequest & WithEnvironmentName(const char *value)
Definition: TerminateEnvironmentRequest.h:153
Aws::ElasticBeanstalk::Model::TerminateEnvironmentRequest::WithEnvironmentName
TerminateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
Definition: TerminateEnvironmentRequest.h:139