AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Model.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApiGatewayV2
22{
23namespace Model
24{
25
34 class Model
35 {
36 public:
37 AWS_APIGATEWAYV2_API Model();
38 AWS_APIGATEWAYV2_API Model(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APIGATEWAYV2_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetContentType() const{ return m_contentType; }
48 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
49 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
50 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
51 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
52 inline Model& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
53 inline Model& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
54 inline Model& WithContentType(const char* value) { SetContentType(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline Model& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline Model& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline Model& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::String& GetModelId() const{ return m_modelId; }
76 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
77 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
78 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
79 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
80 inline Model& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
81 inline Model& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
82 inline Model& WithModelId(const char* value) { SetModelId(value); return *this;}
84
86
89 inline const Aws::String& GetName() const{ return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 inline Model& WithName(const Aws::String& value) { SetName(value); return *this;}
95 inline Model& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 inline Model& WithName(const char* value) { SetName(value); return *this;}
98
100
104 inline const Aws::String& GetSchema() const{ return m_schema; }
105 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
106 inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
107 inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
108 inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
109 inline Model& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
110 inline Model& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
111 inline Model& WithSchema(const char* value) { SetSchema(value); return *this;}
113 private:
114
115 Aws::String m_contentType;
116 bool m_contentTypeHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_modelId;
122 bool m_modelIdHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_schema;
128 bool m_schemaHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ApiGatewayV2
133} // namespace Aws
bool ContentTypeHasBeenSet() const
Definition Model.h:48
void SetName(const char *value)
Definition Model.h:93
void SetSchema(const Aws::String &value)
Definition Model.h:106
Model & WithContentType(const char *value)
Definition Model.h:54
AWS_APIGATEWAYV2_API Model()
AWS_APIGATEWAYV2_API Model(Aws::Utils::Json::JsonView jsonValue)
bool ModelIdHasBeenSet() const
Definition Model.h:76
Model & WithName(Aws::String &&value)
Definition Model.h:95
Model & WithDescription(const Aws::String &value)
Definition Model.h:66
bool NameHasBeenSet() const
Definition Model.h:90
Model & WithSchema(Aws::String &&value)
Definition Model.h:110
Model & WithContentType(const Aws::String &value)
Definition Model.h:52
void SetName(Aws::String &&value)
Definition Model.h:92
void SetModelId(const Aws::String &value)
Definition Model.h:77
Model & WithSchema(const char *value)
Definition Model.h:111
Model & WithDescription(Aws::String &&value)
Definition Model.h:67
bool SchemaHasBeenSet() const
Definition Model.h:105
void SetDescription(const Aws::String &value)
Definition Model.h:63
const Aws::String & GetModelId() const
Definition Model.h:75
Model & WithModelId(Aws::String &&value)
Definition Model.h:81
Model & WithContentType(Aws::String &&value)
Definition Model.h:53
Model & WithDescription(const char *value)
Definition Model.h:68
void SetName(const Aws::String &value)
Definition Model.h:91
const Aws::String & GetContentType() const
Definition Model.h:47
const Aws::String & GetSchema() const
Definition Model.h:104
Model & WithModelId(const char *value)
Definition Model.h:82
void SetModelId(const char *value)
Definition Model.h:79
const Aws::String & GetName() const
Definition Model.h:89
Model & WithSchema(const Aws::String &value)
Definition Model.h:109
const Aws::String & GetDescription() const
Definition Model.h:61
void SetContentType(const Aws::String &value)
Definition Model.h:49
void SetSchema(const char *value)
Definition Model.h:108
Model & WithName(const Aws::String &value)
Definition Model.h:94
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAYV2_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(Aws::String &&value)
Definition Model.h:50
bool DescriptionHasBeenSet() const
Definition Model.h:62
void SetContentType(const char *value)
Definition Model.h:51
void SetDescription(const char *value)
Definition Model.h:65
Model & WithModelId(const Aws::String &value)
Definition Model.h:80
void SetModelId(Aws::String &&value)
Definition Model.h:78
void SetDescription(Aws::String &&value)
Definition Model.h:64
void SetSchema(Aws::String &&value)
Definition Model.h:107
Model & WithName(const char *value)
Definition Model.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue