AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateApiKeyRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/PatchOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API UpdateApiKeyRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateApiKey"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetApiKey() const { return m_apiKey; }
46 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
47 template<typename ApiKeyT = Aws::String>
48 void SetApiKey(ApiKeyT&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::forward<ApiKeyT>(value); }
49 template<typename ApiKeyT = Aws::String>
50 UpdateApiKeyRequest& WithApiKey(ApiKeyT&& value) { SetApiKey(std::forward<ApiKeyT>(value)); return *this;}
52
54
59 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
60 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
61 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
62 void SetPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::forward<PatchOperationsT>(value); }
63 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
64 UpdateApiKeyRequest& WithPatchOperations(PatchOperationsT&& value) { SetPatchOperations(std::forward<PatchOperationsT>(value)); return *this;}
65 template<typename PatchOperationsT = PatchOperation>
66 UpdateApiKeyRequest& AddPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value)); return *this; }
68 private:
69
70 Aws::String m_apiKey;
71 bool m_apiKeyHasBeenSet = false;
72
73 Aws::Vector<PatchOperation> m_patchOperations;
74 bool m_patchOperationsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace APIGateway
79} // 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