AWS SDK for C++  0.14.3
AWS SDK for C++
Model.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace APIGateway
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Model();
40  Model(const Aws::Utils::Json::JsonValue& jsonValue);
41  Model& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 
57  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 
67  inline Model& WithId(const Aws::String& value) { SetId(value); return *this;}
68 
72  inline Model& WithId(Aws::String&& value) { SetId(value); return *this;}
73 
77  inline Model& WithId(const char* value) { SetId(value); return *this;}
78 
82  inline const Aws::String& GetName() const{ return m_name; }
83 
87  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 
92  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
98 
102  inline Model& WithName(const Aws::String& value) { SetName(value); return *this;}
103 
107  inline Model& WithName(Aws::String&& value) { SetName(value); return *this;}
108 
112  inline Model& WithName(const char* value) { SetName(value); return *this;}
113 
117  inline const Aws::String& GetDescription() const{ return m_description; }
118 
122  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
123 
127  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
128 
132  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
133 
137  inline Model& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
138 
142  inline Model& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
143 
147  inline Model& WithDescription(const char* value) { SetDescription(value); return *this;}
148 
154  inline const Aws::String& GetSchema() const{ return m_schema; }
155 
161  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
162 
168  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = value; }
169 
175  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
176 
182  inline Model& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
183 
189  inline Model& WithSchema(Aws::String&& value) { SetSchema(value); return *this;}
190 
196  inline Model& WithSchema(const char* value) { SetSchema(value); return *this;}
197 
201  inline const Aws::String& GetContentType() const{ return m_contentType; }
202 
206  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
207 
211  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
212 
216  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
217 
221  inline Model& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
222 
226  inline Model& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
227 
231  inline Model& WithContentType(const char* value) { SetContentType(value); return *this;}
232 
233  private:
234  Aws::String m_id;
235  bool m_idHasBeenSet;
236  Aws::String m_name;
237  bool m_nameHasBeenSet;
238  Aws::String m_description;
239  bool m_descriptionHasBeenSet;
240  Aws::String m_schema;
241  bool m_schemaHasBeenSet;
242  Aws::String m_contentType;
243  bool m_contentTypeHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace APIGateway
248 } // namespace Aws
void SetName(Aws::String &&value)
Definition: Model.h:92
void SetName(const Aws::String &value)
Definition: Model.h:87
Model & WithSchema(const char *value)
Definition: Model.h:196
const Aws::String & GetContentType() const
Definition: Model.h:201
void SetName(const char *value)
Definition: Model.h:97
Model & WithContentType(const Aws::String &value)
Definition: Model.h:221
Model & WithId(Aws::String &&value)
Definition: Model.h:72
Model & WithDescription(const char *value)
Definition: Model.h:147
void SetContentType(Aws::String &&value)
Definition: Model.h:211
Model & WithName(const char *value)
Definition: Model.h:112
void SetSchema(Aws::String &&value)
Definition: Model.h:168
Model & WithDescription(const Aws::String &value)
Definition: Model.h:137
void SetContentType(const char *value)
Definition: Model.h:216
Model & WithName(Aws::String &&value)
Definition: Model.h:107
Model & WithId(const char *value)
Definition: Model.h:77
void SetId(const char *value)
Definition: Model.h:62
Model & WithContentType(Aws::String &&value)
Definition: Model.h:226
void SetContentType(const Aws::String &value)
Definition: Model.h:206
void SetSchema(const char *value)
Definition: Model.h:175
void SetDescription(const Aws::String &value)
Definition: Model.h:122
const Aws::String & GetId() const
Definition: Model.h:47
Model & WithDescription(Aws::String &&value)
Definition: Model.h:142
Model & WithSchema(Aws::String &&value)
Definition: Model.h:189
const Aws::String & GetName() const
Definition: Model.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Model & WithSchema(const Aws::String &value)
Definition: Model.h:182
#define AWS_APIGATEWAY_API
Model & WithName(const Aws::String &value)
Definition: Model.h:102
void SetSchema(const Aws::String &value)
Definition: Model.h:161
const Aws::String & GetSchema() const
Definition: Model.h:154
void SetId(const Aws::String &value)
Definition: Model.h:52
const Aws::String & GetDescription() const
Definition: Model.h:117
Model & WithId(const Aws::String &value)
Definition: Model.h:67
void SetDescription(Aws::String &&value)
Definition: Model.h:127
void SetId(Aws::String &&value)
Definition: Model.h:57
JSON (JavaScript Object Notation).
Model & WithContentType(const char *value)
Definition: Model.h:231
void SetDescription(const char *value)
Definition: Model.h:132