AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateDeploymentRequest.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 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
49  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
50 
55  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
61  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
62 
67  inline UpdateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
73  inline UpdateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
74 
79  inline UpdateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
85  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
86 
91  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
92 
97  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
98 
103  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
104 
109  inline UpdateDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
110 
115  inline UpdateDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
116 
121  inline UpdateDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
122 
127  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
128 
133  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
134 
139  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
140 
145  inline UpdateDeploymentRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
146 
151  inline UpdateDeploymentRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
152 
157  inline UpdateDeploymentRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
158 
163  inline UpdateDeploymentRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
164 
165  private:
166  Aws::String m_restApiId;
167  bool m_restApiIdHasBeenSet;
168  Aws::String m_deploymentId;
169  bool m_deploymentIdHasBeenSet;
170  Aws::Vector<PatchOperation> m_patchOperations;
171  bool m_patchOperationsHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace APIGateway
176 } // namespace Aws
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateDeploymentRequest & WithDeploymentId(const char *value)
UpdateDeploymentRequest & AddPatchOperations(const PatchOperation &value)
UpdateDeploymentRequest & WithRestApiId(const char *value)
UpdateDeploymentRequest & WithRestApiId(Aws::String &&value)
UpdateDeploymentRequest & WithDeploymentId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateDeploymentRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateDeploymentRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateDeploymentRequest & AddPatchOperations(PatchOperation &&value)
UpdateDeploymentRequest & WithDeploymentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateDeploymentRequest & WithRestApiId(const Aws::String &value)
#define AWS_APIGATEWAY_API
JSON (JavaScript Object Notation).