AWS SDK for C++  1.9.20
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
Aws::APIGateway::Model::UpdateApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateApiKeyRequest::SetApiKey
void SetApiKey(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:59
Aws::APIGateway::Model::UpdateApiKeyRequest::WithPatchOperations
UpdateApiKeyRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateApiKeyRequest.h:116
Aws::APIGateway::Model::UpdateApiKeyRequest::SetApiKey
void SetApiKey(const char *value)
Definition: UpdateApiKeyRequest.h:64
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateApiKeyRequest
Definition: UpdateApiKeyRequest.h:28
AWSVector.h
Aws::APIGateway::Model::UpdateApiKeyRequest::GetApiKey
const Aws::String & GetApiKey() const
Definition: UpdateApiKeyRequest.h:44
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateApiKeyRequest::AddPatchOperations
UpdateApiKeyRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateApiKeyRequest.h:128
Aws::APIGateway::Model::UpdateApiKeyRequest::WithApiKey
UpdateApiKeyRequest & WithApiKey(Aws::String &&value)
Definition: UpdateApiKeyRequest.h:74
Aws::APIGateway::Model::UpdateApiKeyRequest::UpdateApiKeyRequest
UpdateApiKeyRequest()
Aws::APIGateway::Model::UpdateApiKeyRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateApiKeyRequest.h:92
Aws::APIGateway::Model::UpdateApiKeyRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateApiKeyRequest.h:86
AWSString.h
Aws::APIGateway::Model::UpdateApiKeyRequest::AddPatchOperations
UpdateApiKeyRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateApiKeyRequest.h:122
Aws::APIGateway::Model::UpdateApiKeyRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateApiKeyRequest.h:98
Aws::APIGateway::Model::UpdateApiKeyRequest::WithPatchOperations
UpdateApiKeyRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateApiKeyRequest.h:110
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateApiKeyRequest::WithApiKey
UpdateApiKeyRequest & WithApiKey(const char *value)
Definition: UpdateApiKeyRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateApiKeyRequest.h:36
Aws::APIGateway::Model::UpdateApiKeyRequest::ApiKeyHasBeenSet
bool ApiKeyHasBeenSet() const
Definition: UpdateApiKeyRequest.h:49
Aws::APIGateway::Model::UpdateApiKeyRequest::WithApiKey
UpdateApiKeyRequest & WithApiKey(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:69
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateApiKeyRequest::SetApiKey
void SetApiKey(const Aws::String &value)
Definition: UpdateApiKeyRequest.h:54
Aws::APIGateway::Model::UpdateApiKeyRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateApiKeyRequest.h:104