AWS SDK for C++  1.9.20
AWS SDK for C++
CreateModelRequest.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 "CreateModel"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
49  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 
55  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
56 
61  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
62 
67  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
68 
73  inline CreateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
74 
79  inline CreateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
80 
85  inline CreateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
86 
87 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
96  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 
101  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 
106  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
107 
111  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
112 
116  inline CreateModelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
117 
121  inline CreateModelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
122 
126  inline CreateModelRequest& WithName(const char* value) { SetName(value); return *this;}
127 
128 
132  inline const Aws::String& GetDescription() const{ return m_description; }
133 
137  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
138 
142  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
143 
147  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
148 
152  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
153 
157  inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
158 
162  inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
163 
167  inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
168 
169 
175  inline const Aws::String& GetSchema() const{ return m_schema; }
176 
182  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
183 
189  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
190 
196  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
197 
203  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
204 
210  inline CreateModelRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
211 
217  inline CreateModelRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
218 
224  inline CreateModelRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
225 
226 
230  inline const Aws::String& GetContentType() const{ return m_contentType; }
231 
235  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
236 
240  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
241 
245  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
246 
250  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
251 
255  inline CreateModelRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
256 
260  inline CreateModelRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
261 
265  inline CreateModelRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
266 
267  private:
268 
269  Aws::String m_restApiId;
270  bool m_restApiIdHasBeenSet;
271 
272  Aws::String m_name;
273  bool m_nameHasBeenSet;
274 
275  Aws::String m_description;
276  bool m_descriptionHasBeenSet;
277 
278  Aws::String m_schema;
279  bool m_schemaHasBeenSet;
280 
281  Aws::String m_contentType;
282  bool m_contentTypeHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace APIGateway
287 } // namespace Aws
Aws::APIGateway::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const Aws::String &value)
Definition: CreateModelRequest.h:157
Aws::APIGateway::Model::CreateModelRequest::WithName
CreateModelRequest & WithName(const Aws::String &value)
Definition: CreateModelRequest.h:116
Aws::APIGateway::Model::CreateModelRequest::GetContentType
const Aws::String & GetContentType() const
Definition: CreateModelRequest.h:230
Aws::APIGateway::Model::CreateModelRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateModelRequest.h:43
Aws::APIGateway::Model::CreateModelRequest::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: CreateModelRequest.h:235
Aws::APIGateway::Model::CreateModelRequest::SetSchema
void SetSchema(const char *value)
Definition: CreateModelRequest.h:203
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateModelRequest
Definition: CreateModelRequest.h:26
Aws::APIGateway::Model::CreateModelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateModelRequest.h:34
Aws::APIGateway::Model::CreateModelRequest::WithSchema
CreateModelRequest & WithSchema(const Aws::String &value)
Definition: CreateModelRequest.h:210
Aws::APIGateway::Model::CreateModelRequest::WithSchema
CreateModelRequest & WithSchema(Aws::String &&value)
Definition: CreateModelRequest.h:217
Aws::APIGateway::Model::CreateModelRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateModelRequest.h:152
Aws::APIGateway::Model::CreateModelRequest::SetSchema
void SetSchema(Aws::String &&value)
Definition: CreateModelRequest.h:196
Aws::APIGateway::Model::CreateModelRequest::WithRestApiId
CreateModelRequest & WithRestApiId(const char *value)
Definition: CreateModelRequest.h:85
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateModelRequest::GetName
const Aws::String & GetName() const
Definition: CreateModelRequest.h:91
Aws::APIGateway::Model::CreateModelRequest::WithName
CreateModelRequest & WithName(const char *value)
Definition: CreateModelRequest.h:126
Aws::APIGateway::Model::CreateModelRequest::SetContentType
void SetContentType(const char *value)
Definition: CreateModelRequest.h:250
APIGatewayRequest.h
Aws::APIGateway::Model::CreateModelRequest::CreateModelRequest
CreateModelRequest()
Aws::APIGateway::Model::CreateModelRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateModelRequest.h:55
Aws::APIGateway::Model::CreateModelRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateModelRequest.h:67
Aws::APIGateway::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(const char *value)
Definition: CreateModelRequest.h:167
Aws::APIGateway::Model::CreateModelRequest::WithContentType
CreateModelRequest & WithContentType(const char *value)
Definition: CreateModelRequest.h:265
Aws::APIGateway::Model::CreateModelRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateModelRequest.h:142
Aws::APIGateway::Model::CreateModelRequest::WithRestApiId
CreateModelRequest & WithRestApiId(const Aws::String &value)
Definition: CreateModelRequest.h:73
Aws::APIGateway::Model::CreateModelRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateModelRequest.h:106
Aws::APIGateway::Model::CreateModelRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateModelRequest.h:101
Aws::APIGateway::Model::CreateModelRequest::WithDescription
CreateModelRequest & WithDescription(Aws::String &&value)
Definition: CreateModelRequest.h:162
Aws::APIGateway::Model::CreateModelRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateModelRequest.h:132
AWSString.h
Aws::APIGateway::Model::CreateModelRequest::WithName
CreateModelRequest & WithName(Aws::String &&value)
Definition: CreateModelRequest.h:121
Aws::APIGateway::Model::CreateModelRequest::SetContentType
void SetContentType(Aws::String &&value)
Definition: CreateModelRequest.h:245
Aws::APIGateway::Model::CreateModelRequest::WithContentType
CreateModelRequest & WithContentType(const Aws::String &value)
Definition: CreateModelRequest.h:255
Aws::APIGateway::Model::CreateModelRequest::WithSchema
CreateModelRequest & WithSchema(const char *value)
Definition: CreateModelRequest.h:224
Aws::APIGateway::Model::CreateModelRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateModelRequest.h:49
Aws::APIGateway::Model::CreateModelRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateModelRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateModelRequest::SetName
void SetName(const char *value)
Definition: CreateModelRequest.h:111
Aws::APIGateway::Model::CreateModelRequest::GetSchema
const Aws::String & GetSchema() const
Definition: CreateModelRequest.h:175
Aws::APIGateway::Model::CreateModelRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateModelRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateModelRequest::SetSchema
void SetSchema(const Aws::String &value)
Definition: CreateModelRequest.h:189
Aws::APIGateway::Model::CreateModelRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateModelRequest.h:61
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateModelRequest::SchemaHasBeenSet
bool SchemaHasBeenSet() const
Definition: CreateModelRequest.h:182
Aws::APIGateway::Model::CreateModelRequest::SetContentType
void SetContentType(const Aws::String &value)
Definition: CreateModelRequest.h:240
Aws::APIGateway::Model::CreateModelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateModelRequest::WithRestApiId
CreateModelRequest & WithRestApiId(Aws::String &&value)
Definition: CreateModelRequest.h:79
Aws::APIGateway::Model::CreateModelRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateModelRequest.h:96
Aws::APIGateway::Model::CreateModelRequest::WithContentType
CreateModelRequest & WithContentType(Aws::String &&value)
Definition: CreateModelRequest.h:260