AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateApiKeyRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace APIGateway
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetApiKey() const{ return m_apiKey; }
42 
46  inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
47 
51  inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
52 
56  inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
57 
61  inline UpdateApiKeyRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
62 
66  inline UpdateApiKeyRequest& WithApiKey(Aws::String&& value) { SetApiKey(value); return *this;}
67 
71  inline UpdateApiKeyRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;}
72 
77  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
78 
83  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
84 
89  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
90 
95  inline UpdateApiKeyRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
96 
101  inline UpdateApiKeyRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
102 
107  inline UpdateApiKeyRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
108 
113  inline UpdateApiKeyRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
114 
115  private:
116  Aws::String m_apiKey;
117  bool m_apiKeyHasBeenSet;
118  Aws::Vector<PatchOperation> m_patchOperations;
119  bool m_patchOperationsHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace APIGateway
124 } // namespace Aws
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetApiKey(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateApiKeyRequest & AddPatchOperations(PatchOperation &&value)
UpdateApiKeyRequest & WithApiKey(Aws::String &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateApiKeyRequest & AddPatchOperations(const PatchOperation &value)
UpdateApiKeyRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
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
UpdateApiKeyRequest & WithApiKey(const Aws::String &value)
JSON (JavaScript Object Notation).
UpdateApiKeyRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)