AWS SDK for C++

AWS SDK for C++ Version 1.11.768

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIGateway {
20namespace Model {
21
28class Model {
29 public:
30 AWS_APIGATEWAY_API Model() = default;
31 AWS_APIGATEWAY_API Model(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAY_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 Model& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 Model& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 Model& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::String& GetSchema() const { return m_schema; }
99 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
100 template <typename SchemaT = Aws::String>
101 void SetSchema(SchemaT&& value) {
102 m_schemaHasBeenSet = true;
103 m_schema = std::forward<SchemaT>(value);
104 }
105 template <typename SchemaT = Aws::String>
106 Model& WithSchema(SchemaT&& value) {
107 SetSchema(std::forward<SchemaT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetContentType() const { return m_contentType; }
117 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
118 template <typename ContentTypeT = Aws::String>
119 void SetContentType(ContentTypeT&& value) {
120 m_contentTypeHasBeenSet = true;
121 m_contentType = std::forward<ContentTypeT>(value);
122 }
123 template <typename ContentTypeT = Aws::String>
124 Model& WithContentType(ContentTypeT&& value) {
125 SetContentType(std::forward<ContentTypeT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
140 Model& WithRequestId(RequestIdT&& value) {
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_id;
147
148 Aws::String m_name;
149
150 Aws::String m_description;
151
152 Aws::String m_schema;
153
154 Aws::String m_contentType;
155
156 Aws::String m_requestId;
157 bool m_idHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_schemaHasBeenSet = false;
161 bool m_contentTypeHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace APIGateway
167} // namespace Aws
bool NameHasBeenSet() const
Definition Model.h:58
Model & WithName(NameT &&value)
Definition Model.h:65
Model & WithSchema(SchemaT &&value)
Definition Model.h:106
bool RequestIdHasBeenSet() const
Definition Model.h:133
void SetRequestId(RequestIdT &&value)
Definition Model.h:135
Model & WithId(IdT &&value)
Definition Model.h:47
Model & WithRequestId(RequestIdT &&value)
Definition Model.h:140
bool ContentTypeHasBeenSet() const
Definition Model.h:117
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Definition Model.h:78
void SetName(NameT &&value)
Definition Model.h:60
void SetContentType(ContentTypeT &&value)
Definition Model.h:119
const Aws::String & GetId() const
Definition Model.h:39
AWS_APIGATEWAY_API Model(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Model.h:57
void SetId(IdT &&value)
Definition Model.h:42
const Aws::String & GetSchema() const
Definition Model.h:98
bool SchemaHasBeenSet() const
Definition Model.h:99
AWS_APIGATEWAY_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSchema(SchemaT &&value)
Definition Model.h:101
Model & WithDescription(DescriptionT &&value)
Definition Model.h:83
const Aws::String & GetDescription() const
Definition Model.h:75
bool IdHasBeenSet() const
Definition Model.h:40
const Aws::String & GetRequestId() const
Definition Model.h:132
const Aws::String & GetContentType() const
Definition Model.h:116
AWS_APIGATEWAY_API Model()=default
bool DescriptionHasBeenSet() const
Definition Model.h:76
Model & WithContentType(ContentTypeT &&value)
Definition Model.h:124
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue