AWS SDK for C++  1.9.159
AWS SDK for C++
DeregisterContainerInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeregisterContainerInstance"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50 
56  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
64 
70  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
71 
77  inline DeregisterContainerInstanceRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
78 
84  inline DeregisterContainerInstanceRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
85 
91  inline DeregisterContainerInstanceRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
92 
93 
102  inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
103 
112  inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
113 
122  inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
123 
132  inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::move(value); }
133 
142  inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
143 
152  inline DeregisterContainerInstanceRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
153 
162  inline DeregisterContainerInstanceRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(std::move(value)); return *this;}
163 
172  inline DeregisterContainerInstanceRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
173 
174 
187  inline bool GetForce() const{ return m_force; }
188 
201  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
202 
215  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
216 
229  inline DeregisterContainerInstanceRequest& WithForce(bool value) { SetForce(value); return *this;}
230 
231  private:
232 
233  Aws::String m_cluster;
234  bool m_clusterHasBeenSet;
235 
236  Aws::String m_containerInstance;
237  bool m_containerInstanceHasBeenSet;
238 
239  bool m_force;
240  bool m_forceHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace ECS
245 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DeregisterContainerInstanceRequest::GetContainerInstance
const Aws::String & GetContainerInstance() const
Definition: DeregisterContainerInstanceRequest.h:102
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithCluster
DeregisterContainerInstanceRequest & WithCluster(const char *value)
Definition: DeregisterContainerInstanceRequest.h:91
Aws::ECS::Model::DeregisterContainerInstanceRequest::ContainerInstanceHasBeenSet
bool ContainerInstanceHasBeenSet() const
Definition: DeregisterContainerInstanceRequest.h:112
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithCluster
DeregisterContainerInstanceRequest & WithCluster(const Aws::String &value)
Definition: DeregisterContainerInstanceRequest.h:77
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DeregisterContainerInstanceRequest.h:63
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetCluster
void SetCluster(const char *value)
Definition: DeregisterContainerInstanceRequest.h:70
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DeregisterContainerInstanceRequest.h:56
Aws::ECS::Model::DeregisterContainerInstanceRequest
Definition: DeregisterContainerInstanceRequest.h:22
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithContainerInstance
DeregisterContainerInstanceRequest & WithContainerInstance(const char *value)
Definition: DeregisterContainerInstanceRequest.h:172
Aws::ECS::Model::DeregisterContainerInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DeregisterContainerInstanceRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DeregisterContainerInstanceRequest.h:42
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithContainerInstance
DeregisterContainerInstanceRequest & WithContainerInstance(Aws::String &&value)
Definition: DeregisterContainerInstanceRequest.h:162
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetForce
void SetForce(bool value)
Definition: DeregisterContainerInstanceRequest.h:215
Aws::ECS::Model::DeregisterContainerInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeregisterContainerInstanceRequest.h:30
AWSString.h
Aws::ECS::Model::DeregisterContainerInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithForce
DeregisterContainerInstanceRequest & WithForce(bool value)
Definition: DeregisterContainerInstanceRequest.h:229
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetContainerInstance
void SetContainerInstance(const char *value)
Definition: DeregisterContainerInstanceRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DeregisterContainerInstanceRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DeregisterContainerInstanceRequest.h:49
Aws::ECS::Model::DeregisterContainerInstanceRequest::DeregisterContainerInstanceRequest
DeregisterContainerInstanceRequest()
Aws::ECS::Model::DeregisterContainerInstanceRequest::GetForce
bool GetForce() const
Definition: DeregisterContainerInstanceRequest.h:187
Aws::ECS::Model::DeregisterContainerInstanceRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DeregisterContainerInstanceRequest.h:201
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithContainerInstance
DeregisterContainerInstanceRequest & WithContainerInstance(const Aws::String &value)
Definition: DeregisterContainerInstanceRequest.h:152
ECS_EXPORTS.h
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetContainerInstance
void SetContainerInstance(const Aws::String &value)
Definition: DeregisterContainerInstanceRequest.h:122
ECSRequest.h
Aws::ECS::Model::DeregisterContainerInstanceRequest::WithCluster
DeregisterContainerInstanceRequest & WithCluster(Aws::String &&value)
Definition: DeregisterContainerInstanceRequest.h:84
Aws::ECS::Model::DeregisterContainerInstanceRequest::SetContainerInstance
void SetContainerInstance(Aws::String &&value)
Definition: DeregisterContainerInstanceRequest.h:132