AWS SDK for C++  1.9.20
AWS SDK for C++
Model.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
41  {
42  public:
43  Model();
47 
48 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
57  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
67  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
68 
72  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
73 
77  inline Model& WithId(const Aws::String& value) { SetId(value); return *this;}
78 
82  inline Model& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 
87  inline Model& WithId(const char* value) { SetId(value); return *this;}
88 
89 
93  inline const Aws::String& GetName() const{ return m_name; }
94 
98  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
108  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
109 
113  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
114 
118  inline Model& WithName(const Aws::String& value) { SetName(value); return *this;}
119 
123  inline Model& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
124 
128  inline Model& WithName(const char* value) { SetName(value); return *this;}
129 
130 
134  inline const Aws::String& GetDescription() const{ return m_description; }
135 
139  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
140 
144  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
145 
149  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
150 
154  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
155 
159  inline Model& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
160 
164  inline Model& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
165 
169  inline Model& WithDescription(const char* value) { SetDescription(value); return *this;}
170 
171 
181  inline const Aws::String& GetSchema() const{ return m_schema; }
182 
192  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
193 
203  inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
204 
214  inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
215 
225  inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
226 
236  inline Model& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
237 
247  inline Model& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
248 
258  inline Model& WithSchema(const char* value) { SetSchema(value); return *this;}
259 
260 
264  inline const Aws::String& GetContentType() const{ return m_contentType; }
265 
269  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
270 
274  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
275 
279  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
280 
284  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
285 
289  inline Model& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
290 
294  inline Model& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
295 
299  inline Model& WithContentType(const char* value) { SetContentType(value); return *this;}
300 
301  private:
302 
303  Aws::String m_id;
304  bool m_idHasBeenSet;
305 
306  Aws::String m_name;
307  bool m_nameHasBeenSet;
308 
309  Aws::String m_description;
310  bool m_descriptionHasBeenSet;
311 
312  Aws::String m_schema;
313  bool m_schemaHasBeenSet;
314 
315  Aws::String m_contentType;
316  bool m_contentTypeHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace APIGateway
321 } // namespace Aws
Aws::APIGateway::Model::Model::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Model.h:98
Aws::APIGateway::Model::Model::WithDescription
Model & WithDescription(const char *value)
Definition: Model.h:169
Aws::APIGateway::Model::Model::WithSchema
Model & WithSchema(const Aws::String &value)
Definition: Model.h:236
Aws::APIGateway::Model::Model::WithDescription
Model & WithDescription(const Aws::String &value)
Definition: Model.h:159
Aws::APIGateway::Model::Model
Definition: Model.h:41
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::Model::GetDescription
const Aws::String & GetDescription() const
Definition: Model.h:134
Aws::APIGateway::Model::Model::WithContentType
Model & WithContentType(Aws::String &&value)
Definition: Model.h:294
Aws::APIGateway::Model::Model::WithName
Model & WithName(const Aws::String &value)
Definition: Model.h:118
Aws::APIGateway::Model::Model::WithId
Model & WithId(const char *value)
Definition: Model.h:87
Aws::APIGateway::Model::Model::WithSchema
Model & WithSchema(Aws::String &&value)
Definition: Model.h:247
Aws::APIGateway::Model::Model::Model
Model(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Model::WithName
Model & WithName(Aws::String &&value)
Definition: Model.h:123
APIGateway_EXPORTS.h
Aws::APIGateway::Model::Model::Model
Model()
Aws::APIGateway::Model::Model::WithSchema
Model & WithSchema(const char *value)
Definition: Model.h:258
Aws::APIGateway::Model::Model::SetDescription
void SetDescription(Aws::String &&value)
Definition: Model.h:149
Aws::APIGateway::Model::Model::SetDescription
void SetDescription(const Aws::String &value)
Definition: Model.h:144
Aws::APIGateway::Model::Model::SetSchema
void SetSchema(const Aws::String &value)
Definition: Model.h:203
Aws::APIGateway::Model::Model::SetSchema
void SetSchema(Aws::String &&value)
Definition: Model.h:214
Aws::APIGateway::Model::Model::SchemaHasBeenSet
bool SchemaHasBeenSet() const
Definition: Model.h:192
Aws::APIGateway::Model::Model::SetName
void SetName(const Aws::String &value)
Definition: Model.h:103
Aws::APIGateway::Model::Model::GetId
const Aws::String & GetId() const
Definition: Model.h:52
Aws::APIGateway::Model::Model::GetName
const Aws::String & GetName() const
Definition: Model.h:93
Aws::APIGateway::Model::Model::SetId
void SetId(Aws::String &&value)
Definition: Model.h:67
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::APIGateway::Model::Model::SetName
void SetName(Aws::String &&value)
Definition: Model.h:108
Aws::APIGateway::Model::Model::SetName
void SetName(const char *value)
Definition: Model.h:113
AWSString.h
Aws::APIGateway::Model::Model::WithContentType
Model & WithContentType(const Aws::String &value)
Definition: Model.h:289
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::Model::SetContentType
void SetContentType(const Aws::String &value)
Definition: Model.h:274
Aws::APIGateway::Model::Model::SetDescription
void SetDescription(const char *value)
Definition: Model.h:154
Aws::APIGateway::Model::Model::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Model.h:139
Aws::APIGateway::Model::Model::GetSchema
const Aws::String & GetSchema() const
Definition: Model.h:181
Aws::APIGateway::Model::Model::SetId
void SetId(const Aws::String &value)
Definition: Model.h:62
Aws::APIGateway::Model::Model::WithId
Model & WithId(const Aws::String &value)
Definition: Model.h:77
Aws::APIGateway::Model::Model::SetContentType
void SetContentType(Aws::String &&value)
Definition: Model.h:279
Aws::APIGateway::Model::Model::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::Model::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: Model.h:269
Aws::APIGateway::Model::Model::WithId
Model & WithId(Aws::String &&value)
Definition: Model.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::Model::WithContentType
Model & WithContentType(const char *value)
Definition: Model.h:299
Aws::APIGateway::Model::Model::SetContentType
void SetContentType(const char *value)
Definition: Model.h:284
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::Model::WithDescription
Model & WithDescription(Aws::String &&value)
Definition: Model.h:164
Aws::APIGateway::Model::Model::WithName
Model & WithName(const char *value)
Definition: Model.h:128
Aws::APIGateway::Model::Model::SetId
void SetId(const char *value)
Definition: Model.h:72
Aws::APIGateway::Model::Model::operator=
Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Model::GetContentType
const Aws::String & GetContentType() const
Definition: Model.h:264
Aws::APIGateway::Model::Model::SetSchema
void SetSchema(const char *value)
Definition: Model.h:225
Aws::APIGateway::Model::Model::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Model.h:57