AWS SDK for C++  1.9.1
AWS SDK for C++
DeleteCapacityProviderRequest.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 "DeleteCapacityProvider"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCapacityProvider() const{ return m_capacityProvider; }
42 
47  inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; }
48 
53  inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; }
54 
59  inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); }
60 
65  inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); }
66 
71  inline DeleteCapacityProviderRequest& WithCapacityProvider(const Aws::String& value) { SetCapacityProvider(value); return *this;}
72 
77  inline DeleteCapacityProviderRequest& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;}
78 
83  inline DeleteCapacityProviderRequest& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;}
84 
85  private:
86 
87  Aws::String m_capacityProvider;
88  bool m_capacityProviderHasBeenSet;
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::DeleteCapacityProviderRequest::SetCapacityProvider
void SetCapacityProvider(Aws::String &&value)
Definition: DeleteCapacityProviderRequest.h:59
Aws::ECS::Model::DeleteCapacityProviderRequest::SetCapacityProvider
void SetCapacityProvider(const Aws::String &value)
Definition: DeleteCapacityProviderRequest.h:53
Aws::ECS::Model::DeleteCapacityProviderRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeleteCapacityProviderRequest::WithCapacityProvider
DeleteCapacityProviderRequest & WithCapacityProvider(Aws::String &&value)
Definition: DeleteCapacityProviderRequest.h:77
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DeleteCapacityProviderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteCapacityProviderRequest.h:30
Aws::ECS::Model::DeleteCapacityProviderRequest::WithCapacityProvider
DeleteCapacityProviderRequest & WithCapacityProvider(const char *value)
Definition: DeleteCapacityProviderRequest.h:83
AWSString.h
Aws::ECS::Model::DeleteCapacityProviderRequest::WithCapacityProvider
DeleteCapacityProviderRequest & WithCapacityProvider(const Aws::String &value)
Definition: DeleteCapacityProviderRequest.h:71
Aws::ECS::Model::DeleteCapacityProviderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DeleteCapacityProviderRequest::CapacityProviderHasBeenSet
bool CapacityProviderHasBeenSet() const
Definition: DeleteCapacityProviderRequest.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DeleteCapacityProviderRequest::DeleteCapacityProviderRequest
DeleteCapacityProviderRequest()
Aws::ECS::Model::DeleteCapacityProviderRequest
Definition: DeleteCapacityProviderRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DeleteCapacityProviderRequest::SetCapacityProvider
void SetCapacityProvider(const char *value)
Definition: DeleteCapacityProviderRequest.h:65
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DeleteCapacityProviderRequest::GetCapacityProvider
const Aws::String & GetCapacityProvider() const
Definition: DeleteCapacityProviderRequest.h:41