AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateModelRequest.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 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
47  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 
52  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
57  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
58 
62  inline UpdateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
63 
67  inline UpdateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
68 
72  inline UpdateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
73 
77  inline const Aws::String& GetModelName() const{ return m_modelName; }
78 
82  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
83 
87  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
88 
92  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
93 
97  inline UpdateModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
98 
102  inline UpdateModelRequest& WithModelName(Aws::String&& value) { SetModelName(value); return *this;}
103 
107  inline UpdateModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
108 
113  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
114 
119  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
120 
125  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
126 
131  inline UpdateModelRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
132 
137  inline UpdateModelRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
138 
143  inline UpdateModelRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
144 
149  inline UpdateModelRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
150 
151  private:
152  Aws::String m_restApiId;
153  bool m_restApiIdHasBeenSet;
154  Aws::String m_modelName;
155  bool m_modelNameHasBeenSet;
156  Aws::Vector<PatchOperation> m_patchOperations;
157  bool m_patchOperationsHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace APIGateway
162 } // namespace Aws
UpdateModelRequest & AddPatchOperations(PatchOperation &&value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateModelRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
const Aws::String & GetRestApiId() const
UpdateModelRequest & WithModelName(const char *value)
void SetRestApiId(const Aws::String &value)
UpdateModelRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetModelName(const Aws::String &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateModelRequest & WithModelName(const Aws::String &value)
UpdateModelRequest & WithModelName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateModelRequest & AddPatchOperations(const PatchOperation &value)
#define AWS_APIGATEWAY_API
const Aws::String & GetModelName() const
UpdateModelRequest & WithRestApiId(Aws::String &&value)
UpdateModelRequest & WithRestApiId(const char *value)
JSON (JavaScript Object Notation).
UpdateModelRequest & WithRestApiId(const Aws::String &value)