AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
GetApiKeyRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace APIGateway {
18namespace Model {
19
27 public:
28 AWS_APIGATEWAY_API GetApiKeyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetApiKey"; }
35
36 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetApiKey() const { return m_apiKey; }
45 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
46 template <typename ApiKeyT = Aws::String>
47 void SetApiKey(ApiKeyT&& value) {
48 m_apiKeyHasBeenSet = true;
49 m_apiKey = std::forward<ApiKeyT>(value);
50 }
51 template <typename ApiKeyT = Aws::String>
52 GetApiKeyRequest& WithApiKey(ApiKeyT&& value) {
53 SetApiKey(std::forward<ApiKeyT>(value));
54 return *this;
55 }
57
59
63 inline bool GetIncludeValue() const { return m_includeValue; }
64 inline bool IncludeValueHasBeenSet() const { return m_includeValueHasBeenSet; }
65 inline void SetIncludeValue(bool value) {
66 m_includeValueHasBeenSet = true;
67 m_includeValue = value;
68 }
69 inline GetApiKeyRequest& WithIncludeValue(bool value) {
70 SetIncludeValue(value);
71 return *this;
72 }
74 private:
75 Aws::String m_apiKey;
76
77 bool m_includeValue{false};
78 bool m_apiKeyHasBeenSet = false;
79 bool m_includeValueHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace APIGateway
84} // namespace Aws
GetApiKeyRequest & WithIncludeValue(bool value)
const Aws::String & GetApiKey() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetApiKeyRequest & WithApiKey(ApiKeyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API GetApiKeyRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String