AWS SDK for C++  1.9.20
AWS SDK for C++
BasePathMapping.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
49  inline const Aws::String& GetBasePath() const{ return m_basePath; }
50 
55  inline bool BasePathHasBeenSet() const { return m_basePathHasBeenSet; }
56 
61  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
62 
67  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = std::move(value); }
68 
73  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
74 
79  inline BasePathMapping& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
80 
85  inline BasePathMapping& WithBasePath(Aws::String&& value) { SetBasePath(std::move(value)); return *this;}
86 
91  inline BasePathMapping& WithBasePath(const char* value) { SetBasePath(value); return *this;}
92 
93 
97  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
98 
102  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
103 
107  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
108 
112  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
113 
117  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
118 
122  inline BasePathMapping& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
123 
127  inline BasePathMapping& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
128 
132  inline BasePathMapping& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
133 
134 
138  inline const Aws::String& GetStage() const{ return m_stage; }
139 
143  inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
144 
148  inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
149 
153  inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
154 
158  inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
159 
163  inline BasePathMapping& WithStage(const Aws::String& value) { SetStage(value); return *this;}
164 
168  inline BasePathMapping& WithStage(Aws::String&& value) { SetStage(std::move(value)); return *this;}
169 
173  inline BasePathMapping& WithStage(const char* value) { SetStage(value); return *this;}
174 
175  private:
176 
177  Aws::String m_basePath;
178  bool m_basePathHasBeenSet;
179 
180  Aws::String m_restApiId;
181  bool m_restApiIdHasBeenSet;
182 
183  Aws::String m_stage;
184  bool m_stageHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace APIGateway
189 } // namespace Aws
Aws::APIGateway::Model::BasePathMapping::WithRestApiId
BasePathMapping & WithRestApiId(Aws::String &&value)
Definition: BasePathMapping.h:127
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::BasePathMapping::SetStage
void SetStage(const char *value)
Definition: BasePathMapping.h:158
Aws::APIGateway::Model::BasePathMapping::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: BasePathMapping.h:107
Aws::APIGateway::Model::BasePathMapping::operator=
BasePathMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::BasePathMapping::WithStage
BasePathMapping & WithStage(const Aws::String &value)
Definition: BasePathMapping.h:163
Aws::APIGateway::Model::BasePathMapping::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: BasePathMapping.h:97
APIGateway_EXPORTS.h
Aws::APIGateway::Model::BasePathMapping::SetStage
void SetStage(Aws::String &&value)
Definition: BasePathMapping.h:153
Aws::APIGateway::Model::BasePathMapping::GetBasePath
const Aws::String & GetBasePath() const
Definition: BasePathMapping.h:49
Aws::APIGateway::Model::BasePathMapping::SetRestApiId
void SetRestApiId(const char *value)
Definition: BasePathMapping.h:117
Aws::APIGateway::Model::BasePathMapping::SetBasePath
void SetBasePath(Aws::String &&value)
Definition: BasePathMapping.h:67
Aws::APIGateway::Model::BasePathMapping::WithBasePath
BasePathMapping & WithBasePath(const char *value)
Definition: BasePathMapping.h:91
Aws::APIGateway::Model::BasePathMapping::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: BasePathMapping.h:102
Aws::APIGateway::Model::BasePathMapping::StageHasBeenSet
bool StageHasBeenSet() const
Definition: BasePathMapping.h:143
Aws::APIGateway::Model::BasePathMapping::SetBasePath
void SetBasePath(const Aws::String &value)
Definition: BasePathMapping.h:61
Aws::APIGateway::Model::BasePathMapping::BasePathHasBeenSet
bool BasePathHasBeenSet() const
Definition: BasePathMapping.h:55
Aws::APIGateway::Model::BasePathMapping::BasePathMapping
BasePathMapping()
Aws::APIGateway::Model::BasePathMapping::WithStage
BasePathMapping & WithStage(const char *value)
Definition: BasePathMapping.h:173
Aws::APIGateway::Model::BasePathMapping::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: BasePathMapping.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::BasePathMapping::WithBasePath
BasePathMapping & WithBasePath(const Aws::String &value)
Definition: BasePathMapping.h:79
Aws::APIGateway::Model::BasePathMapping::GetStage
const Aws::String & GetStage() const
Definition: BasePathMapping.h:138
Aws::APIGateway::Model::BasePathMapping::BasePathMapping
BasePathMapping(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::BasePathMapping::WithRestApiId
BasePathMapping & WithRestApiId(const Aws::String &value)
Definition: BasePathMapping.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::BasePathMapping::SetBasePath
void SetBasePath(const char *value)
Definition: BasePathMapping.h:73
Aws::APIGateway::Model::BasePathMapping::WithStage
BasePathMapping & WithStage(Aws::String &&value)
Definition: BasePathMapping.h:168
Aws::APIGateway::Model::BasePathMapping
Definition: BasePathMapping.h:37
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::BasePathMapping::WithBasePath
BasePathMapping & WithBasePath(Aws::String &&value)
Definition: BasePathMapping.h:85
Aws::APIGateway::Model::BasePathMapping::WithRestApiId
BasePathMapping & WithRestApiId(const char *value)
Definition: BasePathMapping.h:132
Aws::APIGateway::Model::BasePathMapping::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::BasePathMapping::SetStage
void SetStage(const Aws::String &value)
Definition: BasePathMapping.h:148