AWS SDK for C++  1.9.18
AWS SDK for C++
UpdateBasePathMappingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateBasePathMapping"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
45  inline const Aws::String& GetDomainName() const{ return m_domainName; }
46 
51  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
52 
57  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
58 
63  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
64 
69  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
70 
75  inline UpdateBasePathMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
76 
81  inline UpdateBasePathMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
82 
87  inline UpdateBasePathMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
88 
89 
95  inline const Aws::String& GetBasePath() const{ return m_basePath; }
96 
102  inline bool BasePathHasBeenSet() const { return m_basePathHasBeenSet; }
103 
109  inline void SetBasePath(const Aws::String& value) { m_basePathHasBeenSet = true; m_basePath = value; }
110 
116  inline void SetBasePath(Aws::String&& value) { m_basePathHasBeenSet = true; m_basePath = std::move(value); }
117 
123  inline void SetBasePath(const char* value) { m_basePathHasBeenSet = true; m_basePath.assign(value); }
124 
130  inline UpdateBasePathMappingRequest& WithBasePath(const Aws::String& value) { SetBasePath(value); return *this;}
131 
137  inline UpdateBasePathMappingRequest& WithBasePath(Aws::String&& value) { SetBasePath(std::move(value)); return *this;}
138 
144  inline UpdateBasePathMappingRequest& WithBasePath(const char* value) { SetBasePath(value); return *this;}
145 
146 
151  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
152 
157  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
158 
163  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
164 
169  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
170 
175  inline UpdateBasePathMappingRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
176 
181  inline UpdateBasePathMappingRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
182 
187  inline UpdateBasePathMappingRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
188 
193  inline UpdateBasePathMappingRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
194 
195  private:
196 
197  Aws::String m_domainName;
198  bool m_domainNameHasBeenSet;
199 
200  Aws::String m_basePath;
201  bool m_basePathHasBeenSet;
202 
203  Aws::Vector<PatchOperation> m_patchOperations;
204  bool m_patchOperationsHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace APIGateway
209 } // namespace Aws
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithBasePath
UpdateBasePathMappingRequest & WithBasePath(const Aws::String &value)
Definition: UpdateBasePathMappingRequest.h:130
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateBasePathMappingRequest.h:169
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithBasePath
UpdateBasePathMappingRequest & WithBasePath(Aws::String &&value)
Definition: UpdateBasePathMappingRequest.h:137
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithBasePath
UpdateBasePathMappingRequest & WithBasePath(const char *value)
Definition: UpdateBasePathMappingRequest.h:144
Aws::APIGateway::Model::UpdateBasePathMappingRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: UpdateBasePathMappingRequest.h:51
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithPatchOperations
UpdateBasePathMappingRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateBasePathMappingRequest.h:181
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateBasePathMappingRequest::UpdateBasePathMappingRequest
UpdateBasePathMappingRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateBasePathMappingRequest::AddPatchOperations
UpdateBasePathMappingRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateBasePathMappingRequest.h:193
Aws::APIGateway::Model::UpdateBasePathMappingRequest::AddPatchOperations
UpdateBasePathMappingRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateBasePathMappingRequest.h:187
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateBasePathMappingRequest.h:163
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetBasePath
void SetBasePath(const char *value)
Definition: UpdateBasePathMappingRequest.h:123
Aws::APIGateway::Model::UpdateBasePathMappingRequest::GetBasePath
const Aws::String & GetBasePath() const
Definition: UpdateBasePathMappingRequest.h:95
Aws::APIGateway::Model::UpdateBasePathMappingRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: UpdateBasePathMappingRequest.h:45
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetBasePath
void SetBasePath(const Aws::String &value)
Definition: UpdateBasePathMappingRequest.h:109
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: UpdateBasePathMappingRequest.h:57
AWSString.h
Aws::APIGateway::Model::UpdateBasePathMappingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBasePathMappingRequest.h:36
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithDomainName
UpdateBasePathMappingRequest & WithDomainName(const Aws::String &value)
Definition: UpdateBasePathMappingRequest.h:75
Aws::APIGateway::Model::UpdateBasePathMappingRequest
Definition: UpdateBasePathMappingRequest.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UpdateBasePathMappingRequest::BasePathHasBeenSet
bool BasePathHasBeenSet() const
Definition: UpdateBasePathMappingRequest.h:102
PatchOperation.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateBasePathMappingRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateBasePathMappingRequest.h:151
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetBasePath
void SetBasePath(Aws::String &&value)
Definition: UpdateBasePathMappingRequest.h:116
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetDomainName
void SetDomainName(const char *value)
Definition: UpdateBasePathMappingRequest.h:69
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithDomainName
UpdateBasePathMappingRequest & WithDomainName(Aws::String &&value)
Definition: UpdateBasePathMappingRequest.h:81
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithPatchOperations
UpdateBasePathMappingRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateBasePathMappingRequest.h:175
Aws::APIGateway::Model::UpdateBasePathMappingRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: UpdateBasePathMappingRequest.h:63
Aws::APIGateway::Model::UpdateBasePathMappingRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateBasePathMappingRequest.h:157
Aws::APIGateway::Model::UpdateBasePathMappingRequest::WithDomainName
UpdateBasePathMappingRequest & WithDomainName(const char *value)
Definition: UpdateBasePathMappingRequest.h:87