AWS SDK for C++  0.12.9
AWS SDK for C++
BasePathMapping.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace APIGateway
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  BasePathMapping& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetBasePath() const{ return m_basePath; }
50 
55  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
56 
61  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = value; }
62 
67  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
68 
73  inline BasePathMapping& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
74 
79  inline BasePathMapping& WithBasePath(Aws::String&& value) { SetBasePath(value); return *this;}
80 
85  inline BasePathMapping& WithBasePath(const char* value) { SetBasePath(value); return *this;}
86 
90  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
91 
95  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
96 
100  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
101 
105  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
106 
110  inline BasePathMapping& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
111 
115  inline BasePathMapping& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
116 
120  inline BasePathMapping& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
121 
125  inline const Aws::String& GetStage() const{ return m_stage; }
126 
130  inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
131 
135  inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = value; }
136 
140  inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
141 
145  inline BasePathMapping& WithStage(const Aws::String& value) { SetStage(value); return *this;}
146 
150  inline BasePathMapping& WithStage(Aws::String&& value) { SetStage(value); return *this;}
151 
155  inline BasePathMapping& WithStage(const char* value) { SetStage(value); return *this;}
156 
157  private:
158  Aws::String m_basePath;
159  bool m_basePathHasBeenSet;
160  Aws::String m_restApiId;
161  bool m_restApiIdHasBeenSet;
162  Aws::String m_stage;
163  bool m_stageHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace APIGateway
168 } // namespace Aws
BasePathMapping & WithBasePath(const char *value)
BasePathMapping & WithRestApiId(const Aws::String &value)
BasePathMapping & WithStage(const Aws::String &value)
void SetBasePath(Aws::String &&value)
BasePathMapping & WithRestApiId(Aws::String &&value)
void SetStage(const Aws::String &value)
const Aws::String & GetBasePath() const
BasePathMapping & WithStage(const char *value)
BasePathMapping & WithStage(Aws::String &&value)
BasePathMapping & WithBasePath(const Aws::String &value)
void SetRestApiId(Aws::String &&value)
BasePathMapping & WithRestApiId(const char *value)
const Aws::String & GetStage() const
void SetBasePath(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
BasePathMapping & WithBasePath(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
JSON (JavaScript Object Notation).
const Aws::String & GetRestApiId() const