AWS SDK for C++  0.14.3
AWS SDK for C++
CreateModelRequest.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
19 
20 namespace Aws
21 {
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
40  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
41 
46  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
47 
52  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
58  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
59 
64  inline CreateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
65 
70  inline CreateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
71 
76  inline CreateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
86  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 
91  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
92 
96  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 
101  inline CreateModelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
102 
106  inline CreateModelRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
107 
111  inline CreateModelRequest& WithName(const char* value) { SetName(value); return *this;}
112 
116  inline const Aws::String& GetDescription() const{ return m_description; }
117 
121  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
122 
126  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
127 
131  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
132 
136  inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
137 
141  inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
142 
146  inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
147 
153  inline const Aws::String& GetSchema() const{ return m_schema; }
154 
160  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
161 
167  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = value; }
168 
174  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
175 
181  inline CreateModelRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
182 
188  inline CreateModelRequest& WithSchema(Aws::String&& value) { SetSchema(value); return *this;}
189 
195  inline CreateModelRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
196 
200  inline const Aws::String& GetContentType() const{ return m_contentType; }
201 
205  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
206 
210  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
211 
215  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
216 
220  inline CreateModelRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
221 
225  inline CreateModelRequest& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
226 
230  inline CreateModelRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
231 
232  private:
233  Aws::String m_restApiId;
234  bool m_restApiIdHasBeenSet;
235  Aws::String m_name;
236  bool m_nameHasBeenSet;
237  Aws::String m_description;
238  bool m_descriptionHasBeenSet;
239  Aws::String m_schema;
240  bool m_schemaHasBeenSet;
241  Aws::String m_contentType;
242  bool m_contentTypeHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace APIGateway
247 } // namespace Aws
void SetName(const Aws::String &value)
CreateModelRequest & WithRestApiId(Aws::String &&value)
CreateModelRequest & WithName(const Aws::String &value)
CreateModelRequest & WithSchema(const char *value)
CreateModelRequest & WithRestApiId(const Aws::String &value)
CreateModelRequest & WithDescription(const Aws::String &value)
CreateModelRequest & WithContentType(const Aws::String &value)
void SetSchema(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
CreateModelRequest & WithDescription(Aws::String &&value)
CreateModelRequest & WithContentType(Aws::String &&value)
CreateModelRequest & WithName(const char *value)
const Aws::String & GetContentType() const
CreateModelRequest & WithSchema(const Aws::String &value)
void SetContentType(const Aws::String &value)
CreateModelRequest & WithDescription(const char *value)
void SetDescription(const Aws::String &value)
CreateModelRequest & WithRestApiId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetRestApiId() const
#define AWS_APIGATEWAY_API
CreateModelRequest & WithName(Aws::String &&value)
const Aws::String & GetDescription() const
CreateModelRequest & WithSchema(Aws::String &&value)
CreateModelRequest & WithContentType(const char *value)
JSON (JavaScript Object Notation).