AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 Model& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 Model& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 Model& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
86 inline const Aws::String& GetSchema() const { return m_schema; }
87 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
88 template<typename SchemaT = Aws::String>
89 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
90 template<typename SchemaT = Aws::String>
91 Model& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
93
95
98 inline const Aws::String& GetContentType() const { return m_contentType; }
99 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
100 template<typename ContentTypeT = Aws::String>
101 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
102 template<typename ContentTypeT = Aws::String>
103 Model& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
110 template<typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
112 template<typename RequestIdT = Aws::String>
113 Model& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
115 private:
116
117 Aws::String m_id;
118 bool m_idHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::String m_schema;
127 bool m_schemaHasBeenSet = false;
128
129 Aws::String m_contentType;
130 bool m_contentTypeHasBeenSet = false;
131
132 Aws::String m_requestId;
133 bool m_requestIdHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace APIGateway
138} // namespace Aws
bool NameHasBeenSet() const
Definition Model.h:58
Model & WithName(NameT &&value)
Definition Model.h:62
Model & WithSchema(SchemaT &&value)
Definition Model.h:91
bool RequestIdHasBeenSet() const
Definition Model.h:109
void SetRequestId(RequestIdT &&value)
Definition Model.h:111
Model & WithId(IdT &&value)
Definition Model.h:50
Model & WithRequestId(RequestIdT &&value)
Definition Model.h:113
bool ContentTypeHasBeenSet() const
Definition Model.h:99
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Definition Model.h:72
void SetName(NameT &&value)
Definition Model.h:60
void SetContentType(ContentTypeT &&value)
Definition Model.h:101
const Aws::String & GetId() const
Definition Model.h:45
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:48
const Aws::String & GetSchema() const
Definition Model.h:86
bool SchemaHasBeenSet() const
Definition Model.h:87
AWS_APIGATEWAY_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSchema(SchemaT &&value)
Definition Model.h:89
Model & WithDescription(DescriptionT &&value)
Definition Model.h:74
const Aws::String & GetDescription() const
Definition Model.h:69
bool IdHasBeenSet() const
Definition Model.h:46
const Aws::String & GetRequestId() const
Definition Model.h:108
const Aws::String & GetContentType() const
Definition Model.h:98
AWS_APIGATEWAY_API Model()=default
bool DescriptionHasBeenSet() const
Definition Model.h:70
Model & WithContentType(ContentTypeT &&value)
Definition Model.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue