AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UpdateApiKeyRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PatchOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
26 public:
27 AWS_APIGATEWAY_API UpdateApiKeyRequest() = default;
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 "UpdateApiKey"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetApiKey() const { return m_apiKey; }
42 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
43 template <typename ApiKeyT = Aws::String>
44 void SetApiKey(ApiKeyT&& value) {
45 m_apiKeyHasBeenSet = true;
46 m_apiKey = std::forward<ApiKeyT>(value);
47 }
48 template <typename ApiKeyT = Aws::String>
49 UpdateApiKeyRequest& WithApiKey(ApiKeyT&& value) {
50 SetApiKey(std::forward<ApiKeyT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
62 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
63 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
64 void SetPatchOperations(PatchOperationsT&& value) {
65 m_patchOperationsHasBeenSet = true;
66 m_patchOperations = std::forward<PatchOperationsT>(value);
67 }
68 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
69 UpdateApiKeyRequest& WithPatchOperations(PatchOperationsT&& value) {
70 SetPatchOperations(std::forward<PatchOperationsT>(value));
71 return *this;
72 }
73 template <typename PatchOperationsT = PatchOperation>
74 UpdateApiKeyRequest& AddPatchOperations(PatchOperationsT&& value) {
75 m_patchOperationsHasBeenSet = true;
76 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_apiKey;
82
83 Aws::Vector<PatchOperation> m_patchOperations;
84 bool m_apiKeyHasBeenSet = false;
85 bool m_patchOperationsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace APIGateway
90} // namespace Aws
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API UpdateApiKeyRequest()=default
const Aws::Vector< PatchOperation > & GetPatchOperations() const
virtual const char * GetServiceRequestName() const override
void SetPatchOperations(PatchOperationsT &&value)
UpdateApiKeyRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateApiKeyRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateApiKeyRequest & WithApiKey(ApiKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector