AWS SDK for C++  0.12.9
AWS SDK for C++
CreateBasePathMappingRequest.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
19 
20 namespace Aws
21 {
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetDomainName() const{ return m_domainName; }
41 
45  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
46 
50  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
51 
55  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
56 
60  inline CreateBasePathMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
61 
65  inline CreateBasePathMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
66 
70  inline CreateBasePathMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
71 
78  inline const Aws::String& GetBasePath() const{ return m_basePath; }
79 
86  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
87 
94  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = value; }
95 
102  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
103 
110  inline CreateBasePathMappingRequest& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
111 
118  inline CreateBasePathMappingRequest& WithBasePath(Aws::String&& value) { SetBasePath(value); return *this;}
119 
126  inline CreateBasePathMappingRequest& WithBasePath(const char* value) { SetBasePath(value); return *this;}
127 
131  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
132 
136  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
137 
141  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
142 
146  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
147 
151  inline CreateBasePathMappingRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
152 
156  inline CreateBasePathMappingRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
157 
161  inline CreateBasePathMappingRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
162 
168  inline const Aws::String& GetStage() const{ return m_stage; }
169 
175  inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
176 
182  inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = value; }
183 
189  inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
190 
196  inline CreateBasePathMappingRequest& WithStage(const Aws::String& value) { SetStage(value); return *this;}
197 
203  inline CreateBasePathMappingRequest& WithStage(Aws::String&& value) { SetStage(value); return *this;}
204 
210  inline CreateBasePathMappingRequest& WithStage(const char* value) { SetStage(value); return *this;}
211 
212  private:
213  Aws::String m_domainName;
214  bool m_domainNameHasBeenSet;
215  Aws::String m_basePath;
216  bool m_basePathHasBeenSet;
217  Aws::String m_restApiId;
218  bool m_restApiIdHasBeenSet;
219  Aws::String m_stage;
220  bool m_stageHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace APIGateway
225 } // namespace Aws
CreateBasePathMappingRequest & WithStage(const char *value)
CreateBasePathMappingRequest & WithRestApiId(const Aws::String &value)
CreateBasePathMappingRequest & WithDomainName(Aws::String &&value)
CreateBasePathMappingRequest & WithDomainName(const Aws::String &value)
CreateBasePathMappingRequest & WithRestApiId(const char *value)
CreateBasePathMappingRequest & WithBasePath(Aws::String &&value)
CreateBasePathMappingRequest & WithDomainName(const char *value)
CreateBasePathMappingRequest & WithBasePath(const char *value)
CreateBasePathMappingRequest & WithRestApiId(Aws::String &&value)
CreateBasePathMappingRequest & WithStage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateBasePathMappingRequest & WithBasePath(const Aws::String &value)
#define AWS_APIGATEWAY_API
CreateBasePathMappingRequest & WithStage(Aws::String &&value)
JSON (JavaScript Object Notation).