AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateBasePathMappingRequest.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& GetDomainName() const{ return m_domainName; }
43 
47  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
48 
52  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
53 
57  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
58 
62  inline UpdateBasePathMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
63 
67  inline UpdateBasePathMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
68 
72  inline UpdateBasePathMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
73 
77  inline const Aws::String& GetBasePath() const{ return m_basePath; }
78 
82  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
83 
87  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = value; }
88 
92  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
93 
97  inline UpdateBasePathMappingRequest& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
98 
102  inline UpdateBasePathMappingRequest& WithBasePath(Aws::String&& value) { SetBasePath(value); return *this;}
103 
107  inline UpdateBasePathMappingRequest& WithBasePath(const char* value) { SetBasePath(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 UpdateBasePathMappingRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
132 
137  inline UpdateBasePathMappingRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
138 
143  inline UpdateBasePathMappingRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
144 
149  inline UpdateBasePathMappingRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
150 
151  private:
152  Aws::String m_domainName;
153  bool m_domainNameHasBeenSet;
154  Aws::String m_basePath;
155  bool m_basePathHasBeenSet;
156  Aws::Vector<PatchOperation> m_patchOperations;
157  bool m_patchOperationsHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace APIGateway
162 } // namespace Aws
UpdateBasePathMappingRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateBasePathMappingRequest & AddPatchOperations(PatchOperation &&value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateBasePathMappingRequest & WithBasePath(const char *value)
UpdateBasePathMappingRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateBasePathMappingRequest & WithBasePath(const Aws::String &value)
UpdateBasePathMappingRequest & WithBasePath(Aws::String &&value)
UpdateBasePathMappingRequest & WithDomainName(Aws::String &&value)
UpdateBasePathMappingRequest & AddPatchOperations(const PatchOperation &value)
UpdateBasePathMappingRequest & WithDomainName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
#define AWS_APIGATEWAY_API
UpdateBasePathMappingRequest & WithDomainName(const Aws::String &value)
JSON (JavaScript Object Notation).