AWS SDK for C++  1.9.18
AWS SDK for C++
CreateBasePathMappingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateBasePathMapping"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetDomainName() const{ return m_domainName; }
44 
49  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
50 
55  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
56 
61  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
62 
67  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
68 
73  inline CreateBasePathMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
74 
79  inline CreateBasePathMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
80 
85  inline CreateBasePathMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
86 
87 
94  inline const Aws::String& GetBasePath() const{ return m_basePath; }
95 
102  inline bool BasePathHasBeenSet() const { return m_basePathHasBeenSet; }
103 
110  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
111 
118  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = std::move(value); }
119 
126  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
127 
134  inline CreateBasePathMappingRequest& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
135 
142  inline CreateBasePathMappingRequest& WithBasePath(Aws::String&& value) { SetBasePath(std::move(value)); return *this;}
143 
150  inline CreateBasePathMappingRequest& WithBasePath(const char* value) { SetBasePath(value); return *this;}
151 
152 
156  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
157 
161  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
162 
166  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
167 
171  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
172 
176  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
177 
181  inline CreateBasePathMappingRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
182 
186  inline CreateBasePathMappingRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
187 
191  inline CreateBasePathMappingRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
192 
193 
199  inline const Aws::String& GetStage() const{ return m_stage; }
200 
206  inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
207 
213  inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
214 
220  inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
221 
227  inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
228 
234  inline CreateBasePathMappingRequest& WithStage(const Aws::String& value) { SetStage(value); return *this;}
235 
241  inline CreateBasePathMappingRequest& WithStage(Aws::String&& value) { SetStage(std::move(value)); return *this;}
242 
248  inline CreateBasePathMappingRequest& WithStage(const char* value) { SetStage(value); return *this;}
249 
250  private:
251 
252  Aws::String m_domainName;
253  bool m_domainNameHasBeenSet;
254 
255  Aws::String m_basePath;
256  bool m_basePathHasBeenSet;
257 
258  Aws::String m_restApiId;
259  bool m_restApiIdHasBeenSet;
260 
261  Aws::String m_stage;
262  bool m_stageHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace APIGateway
267 } // namespace Aws
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithRestApiId
CreateBasePathMappingRequest & WithRestApiId(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:181
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithRestApiId
CreateBasePathMappingRequest & WithRestApiId(const char *value)
Definition: CreateBasePathMappingRequest.h:191
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithBasePath
CreateBasePathMappingRequest & WithBasePath(const char *value)
Definition: CreateBasePathMappingRequest.h:150
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithDomainName
CreateBasePathMappingRequest & WithDomainName(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:79
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetDomainName
void SetDomainName(const char *value)
Definition: CreateBasePathMappingRequest.h:67
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithDomainName
CreateBasePathMappingRequest & WithDomainName(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:73
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetBasePath
void SetBasePath(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:118
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:166
Aws::APIGateway::Model::CreateBasePathMappingRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: CreateBasePathMappingRequest.h:49
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:55
Aws::APIGateway::Model::CreateBasePathMappingRequest::BasePathHasBeenSet
bool BasePathHasBeenSet() const
Definition: CreateBasePathMappingRequest.h:102
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithStage
CreateBasePathMappingRequest & WithStage(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:234
Aws::APIGateway::Model::CreateBasePathMappingRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: CreateBasePathMappingRequest.h:43
Aws::APIGateway::Model::CreateBasePathMappingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:61
APIGatewayRequest.h
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithBasePath
CreateBasePathMappingRequest & WithBasePath(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:142
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetBasePath
void SetBasePath(const char *value)
Definition: CreateBasePathMappingRequest.h:126
Aws::APIGateway::Model::CreateBasePathMappingRequest
Definition: CreateBasePathMappingRequest.h:26
AWSString.h
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetStage
void SetStage(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:220
Aws::APIGateway::Model::CreateBasePathMappingRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateBasePathMappingRequest.h:161
Aws::APIGateway::Model::CreateBasePathMappingRequest::GetStage
const Aws::String & GetStage() const
Definition: CreateBasePathMappingRequest.h:199
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetStage
void SetStage(const char *value)
Definition: CreateBasePathMappingRequest.h:227
Aws::APIGateway::Model::CreateBasePathMappingRequest::GetBasePath
const Aws::String & GetBasePath() const
Definition: CreateBasePathMappingRequest.h:94
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateBasePathMappingRequest.h:176
Aws::APIGateway::Model::CreateBasePathMappingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBasePathMappingRequest.h:34
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithBasePath
CreateBasePathMappingRequest & WithBasePath(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:134
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithDomainName
CreateBasePathMappingRequest & WithDomainName(const char *value)
Definition: CreateBasePathMappingRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithRestApiId
CreateBasePathMappingRequest & WithRestApiId(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:186
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetStage
void SetStage(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:213
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetBasePath
void SetBasePath(const Aws::String &value)
Definition: CreateBasePathMappingRequest.h:110
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithStage
CreateBasePathMappingRequest & WithStage(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:241
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateBasePathMappingRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateBasePathMappingRequest.h:156
Aws::APIGateway::Model::CreateBasePathMappingRequest::WithStage
CreateBasePathMappingRequest & WithStage(const char *value)
Definition: CreateBasePathMappingRequest.h:248
Aws::APIGateway::Model::CreateBasePathMappingRequest::StageHasBeenSet
bool StageHasBeenSet() const
Definition: CreateBasePathMappingRequest.h:206
Aws::APIGateway::Model::CreateBasePathMappingRequest::CreateBasePathMappingRequest
CreateBasePathMappingRequest()
Aws::APIGateway::Model::CreateBasePathMappingRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateBasePathMappingRequest.h:171