AWS SDK for C++  1.9.20
AWS SDK for C++
DeleteApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
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 "DeleteApiKey"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetApiKey() const{ return m_apiKey; }
42 
46  inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
47 
51  inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
52 
56  inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
57 
61  inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
62 
66  inline DeleteApiKeyRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
67 
71  inline DeleteApiKeyRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;}
72 
76  inline DeleteApiKeyRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;}
77 
78  private:
79 
80  Aws::String m_apiKey;
81  bool m_apiKeyHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace APIGateway
86 } // namespace Aws
Aws::APIGateway::Model::DeleteApiKeyRequest::WithApiKey
DeleteApiKeyRequest & WithApiKey(Aws::String &&value)
Definition: DeleteApiKeyRequest.h:71
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::DeleteApiKeyRequest::SetApiKey
void SetApiKey(Aws::String &&value)
Definition: DeleteApiKeyRequest.h:56
APIGateway_EXPORTS.h
Aws::APIGateway::Model::DeleteApiKeyRequest::SetApiKey
void SetApiKey(const Aws::String &value)
Definition: DeleteApiKeyRequest.h:51
Aws::APIGateway::Model::DeleteApiKeyRequest::SetApiKey
void SetApiKey(const char *value)
Definition: DeleteApiKeyRequest.h:61
APIGatewayRequest.h
Aws::APIGateway::Model::DeleteApiKeyRequest::DeleteApiKeyRequest
DeleteApiKeyRequest()
Aws::APIGateway::Model::DeleteApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteApiKeyRequest.h:33
AWSString.h
Aws::APIGateway::Model::DeleteApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::DeleteApiKeyRequest::WithApiKey
DeleteApiKeyRequest & WithApiKey(const char *value)
Definition: DeleteApiKeyRequest.h:76
Aws::APIGateway::Model::DeleteApiKeyRequest::ApiKeyHasBeenSet
bool ApiKeyHasBeenSet() const
Definition: DeleteApiKeyRequest.h:46
Aws::APIGateway::Model::DeleteApiKeyRequest
Definition: DeleteApiKeyRequest.h:25
Aws::APIGateway::Model::DeleteApiKeyRequest::GetApiKey
const Aws::String & GetApiKey() const
Definition: DeleteApiKeyRequest.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::DeleteApiKeyRequest::WithApiKey
DeleteApiKeyRequest & WithApiKey(const Aws::String &value)
Definition: DeleteApiKeyRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18