AWS SDK for C++  1.9.18
AWS SDK for C++
GetApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace APIGateway
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "GetApiKey"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetApiKey() const{ return m_apiKey; }
49 
53  inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
54 
58  inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
59 
63  inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
64 
68  inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
69 
73  inline GetApiKeyRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
74 
78  inline GetApiKeyRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;}
79 
83  inline GetApiKeyRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;}
84 
85 
90  inline bool GetIncludeValue() const{ return m_includeValue; }
91 
96  inline bool IncludeValueHasBeenSet() const { return m_includeValueHasBeenSet; }
97 
102  inline void SetIncludeValue(bool value) { m_includeValueHasBeenSet = true; m_includeValue = value; }
103 
108  inline GetApiKeyRequest& WithIncludeValue(bool value) { SetIncludeValue(value); return *this;}
109 
110  private:
111 
112  Aws::String m_apiKey;
113  bool m_apiKeyHasBeenSet;
114 
115  bool m_includeValue;
116  bool m_includeValueHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace APIGateway
121 } // namespace Aws
Aws::APIGateway::Model::GetApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::GetApiKeyRequest::GetIncludeValue
bool GetIncludeValue() const
Definition: GetApiKeyRequest.h:90
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetApiKeyRequest
Definition: GetApiKeyRequest.h:30
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetApiKeyRequest::GetApiKeyRequest
GetApiKeyRequest()
Aws::APIGateway::Model::GetApiKeyRequest::WithApiKey
GetApiKeyRequest & WithApiKey(const char *value)
Definition: GetApiKeyRequest.h:83
Aws::APIGateway::Model::GetApiKeyRequest::SetIncludeValue
void SetIncludeValue(bool value)
Definition: GetApiKeyRequest.h:102
APIGateway_EXPORTS.h
APIGatewayRequest.h
Aws::APIGateway::Model::GetApiKeyRequest::SetApiKey
void SetApiKey(const Aws::String &value)
Definition: GetApiKeyRequest.h:58
Aws::APIGateway::Model::GetApiKeyRequest::SetApiKey
void SetApiKey(Aws::String &&value)
Definition: GetApiKeyRequest.h:63
Aws::APIGateway::Model::GetApiKeyRequest::ApiKeyHasBeenSet
bool ApiKeyHasBeenSet() const
Definition: GetApiKeyRequest.h:53
AWSString.h
Aws::APIGateway::Model::GetApiKeyRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::GetApiKeyRequest::WithApiKey
GetApiKeyRequest & WithApiKey(Aws::String &&value)
Definition: GetApiKeyRequest.h:78
Aws::APIGateway::Model::GetApiKeyRequest::WithIncludeValue
GetApiKeyRequest & WithIncludeValue(bool value)
Definition: GetApiKeyRequest.h:108
Aws::APIGateway::Model::GetApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetApiKeyRequest.h:38
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetApiKeyRequest::IncludeValueHasBeenSet
bool IncludeValueHasBeenSet() const
Definition: GetApiKeyRequest.h:96
Aws::APIGateway::Model::GetApiKeyRequest::SetApiKey
void SetApiKey(const char *value)
Definition: GetApiKeyRequest.h:68
Aws::APIGateway::Model::GetApiKeyRequest::WithApiKey
GetApiKeyRequest & WithApiKey(const Aws::String &value)
Definition: GetApiKeyRequest.h:73
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::GetApiKeyRequest::GetApiKey
const Aws::String & GetApiKey() const
Definition: GetApiKeyRequest.h:48