AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetApiKey() const{ return m_apiKey; }
45 
49  inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
50 
54  inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
55 
59  inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
60 
64  inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
65 
69  inline UpdateApiKeyRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
70 
74  inline UpdateApiKeyRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;}
75 
79  inline UpdateApiKeyRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;}
80 
81 
86  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
87 
92  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
93 
98  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
99 
104  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
105 
110  inline UpdateApiKeyRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
111 
116  inline UpdateApiKeyRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
117 
122  inline UpdateApiKeyRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
123 
128  inline UpdateApiKeyRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
129 
130  private:
131 
132  Aws::String m_apiKey;
133  bool m_apiKeyHasBeenSet;
134 
135  Aws::Vector<PatchOperation> m_patchOperations;
136  bool m_patchOperationsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace APIGateway
141 } // namespace Aws
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetApiKey(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UpdateApiKeyRequest & AddPatchOperations(PatchOperation &&value)
UpdateApiKeyRequest & WithApiKey(Aws::String &&value)
UpdateApiKeyRequest & AddPatchOperations(const PatchOperation &value)
UpdateApiKeyRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateApiKeyRequest & WithApiKey(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
virtual const char * GetServiceRequestName() const override
UpdateApiKeyRequest & WithApiKey(const Aws::String &value)
UpdateApiKeyRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)