AWS SDK for C++  1.9.14
AWS SDK for C++
DeleteClusterRequest.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 "DeleteCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCluster() const{ return m_cluster; }
42 
47  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 
53  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
54 
59  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
60 
65  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
66 
71  inline DeleteClusterRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
77  inline DeleteClusterRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
78 
83  inline DeleteClusterRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
84 
85  private:
86 
87  Aws::String m_cluster;
88  bool m_clusterHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace ECS
93 } // 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::DeleteClusterRequest::SetCluster
void SetCluster(const char *value)
Definition: DeleteClusterRequest.h:65
Aws::ECS::Model::DeleteClusterRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DeleteClusterRequest.h:41
Aws::ECS::Model::DeleteClusterRequest::WithCluster
DeleteClusterRequest & WithCluster(const char *value)
Definition: DeleteClusterRequest.h:83
Aws::ECS::Model::DeleteClusterRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DeleteClusterRequest.h:47
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DeleteClusterRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DeleteClusterRequest.h:53
Aws::ECS::Model::DeleteClusterRequest
Definition: DeleteClusterRequest.h:22
Aws::ECS::Model::DeleteClusterRequest::WithCluster
DeleteClusterRequest & WithCluster(Aws::String &&value)
Definition: DeleteClusterRequest.h:77
Aws::ECS::Model::DeleteClusterRequest::DeleteClusterRequest
DeleteClusterRequest()
AWSString.h
Aws::ECS::Model::DeleteClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DeleteClusterRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DeleteClusterRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DeleteClusterRequest::WithCluster
DeleteClusterRequest & WithCluster(const Aws::String &value)
Definition: DeleteClusterRequest.h:71
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DeleteClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteClusterRequest.h:30
Aws::ECS::Model::DeleteClusterRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override