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/apigateway/APIGateway_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 APIGateway
22{
23namespace Model
24{
25
32 class Model
33 {
34 public:
35 AWS_APIGATEWAY_API Model();
36 AWS_APIGATEWAY_API Model(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APIGATEWAY_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline Model& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline Model& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline Model& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline Model& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline Model& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline Model& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline Model& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline Model& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline Model& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
92 inline const Aws::String& GetSchema() const{ return m_schema; }
93 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
94 inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
95 inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
96 inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
97 inline Model& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
98 inline Model& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
99 inline Model& WithSchema(const char* value) { SetSchema(value); return *this;}
101
103
106 inline const Aws::String& GetContentType() const{ return m_contentType; }
107 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
108 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
109 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
110 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
111 inline Model& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
112 inline Model& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
113 inline Model& WithContentType(const char* value) { SetContentType(value); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
120 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
121 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
122 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
123 inline Model& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
124 inline Model& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
125 inline Model& WithRequestId(const char* value) { SetRequestId(value); return *this;}
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_schema;
139 bool m_schemaHasBeenSet = false;
140
141 Aws::String m_contentType;
142 bool m_contentTypeHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace APIGateway
150} // namespace Aws
bool NameHasBeenSet() const
Definition Model.h:60
Model & WithRequestId(const Aws::String &value)
Definition Model.h:123
void SetId(const Aws::String &value)
Definition Model.h:47
Model & WithName(const Aws::String &value)
Definition Model.h:64
Model & WithContentType(Aws::String &&value)
Definition Model.h:112
Model & WithRequestId(Aws::String &&value)
Definition Model.h:124
Model & WithSchema(const char *value)
Definition Model.h:99
void SetContentType(const Aws::String &value)
Definition Model.h:108
bool RequestIdHasBeenSet() const
Definition Model.h:119
void SetName(const Aws::String &value)
Definition Model.h:61
void SetDescription(const Aws::String &value)
Definition Model.h:75
void SetRequestId(const char *value)
Definition Model.h:122
bool ContentTypeHasBeenSet() const
Definition Model.h:107
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(Aws::String &&value)
Definition Model.h:76
void SetName(const char *value)
Definition Model.h:63
void SetName(Aws::String &&value)
Definition Model.h:62
const Aws::String & GetId() const
Definition Model.h:45
AWS_APIGATEWAY_API Model(Aws::Utils::Json::JsonView jsonValue)
Model & WithId(Aws::String &&value)
Definition Model.h:51
void SetContentType(const char *value)
Definition Model.h:110
const Aws::String & GetName() const
Definition Model.h:59
Model & WithSchema(const Aws::String &value)
Definition Model.h:97
Model & WithId(const Aws::String &value)
Definition Model.h:50
const Aws::String & GetSchema() const
Definition Model.h:92
Model & WithName(Aws::String &&value)
Definition Model.h:65
void SetContentType(Aws::String &&value)
Definition Model.h:109
Model & WithDescription(Aws::String &&value)
Definition Model.h:79
void SetSchema(const Aws::String &value)
Definition Model.h:94
void SetId(const char *value)
Definition Model.h:49
bool SchemaHasBeenSet() const
Definition Model.h:93
Model & WithName(const char *value)
Definition Model.h:66
void SetSchema(Aws::String &&value)
Definition Model.h:95
AWS_APIGATEWAY_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
Model & WithSchema(Aws::String &&value)
Definition Model.h:98
AWS_APIGATEWAY_API Model()
const Aws::String & GetDescription() const
Definition Model.h:73
void SetRequestId(const Aws::String &value)
Definition Model.h:120
bool IdHasBeenSet() const
Definition Model.h:46
const Aws::String & GetRequestId() const
Definition Model.h:118
const Aws::String & GetContentType() const
Definition Model.h:106
Model & WithContentType(const Aws::String &value)
Definition Model.h:111
void SetDescription(const char *value)
Definition Model.h:77
void SetRequestId(Aws::String &&value)
Definition Model.h:121
bool DescriptionHasBeenSet() const
Definition Model.h:74
void SetSchema(const char *value)
Definition Model.h:96
Model & WithDescription(const Aws::String &value)
Definition Model.h:78
void SetId(Aws::String &&value)
Definition Model.h:48
Model & WithId(const char *value)
Definition Model.h:52
Model & WithContentType(const char *value)
Definition Model.h:113
Model & WithDescription(const char *value)
Definition Model.h:80
Model & WithRequestId(const char *value)
Definition Model.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue