AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApiGatewayV2 {
20namespace Model {
21
30class Model {
31 public:
32 AWS_APIGATEWAYV2_API Model() = default;
33 AWS_APIGATEWAYV2_API Model(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APIGATEWAYV2_API Model& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetContentType() const { return m_contentType; }
42 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
43 template <typename ContentTypeT = Aws::String>
44 void SetContentType(ContentTypeT&& value) {
45 m_contentTypeHasBeenSet = true;
46 m_contentType = std::forward<ContentTypeT>(value);
47 }
48 template <typename ContentTypeT = Aws::String>
49 Model& WithContentType(ContentTypeT&& value) {
50 SetContentType(std::forward<ContentTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 Model& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetModelId() const { return m_modelId; }
78 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
79 template <typename ModelIdT = Aws::String>
80 void SetModelId(ModelIdT&& value) {
81 m_modelIdHasBeenSet = true;
82 m_modelId = std::forward<ModelIdT>(value);
83 }
84 template <typename ModelIdT = Aws::String>
85 Model& WithModelId(ModelIdT&& value) {
86 SetModelId(std::forward<ModelIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
103 Model& WithName(NameT&& value) {
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetSchema() const { return m_schema; }
115 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
116 template <typename SchemaT = Aws::String>
117 void SetSchema(SchemaT&& value) {
118 m_schemaHasBeenSet = true;
119 m_schema = std::forward<SchemaT>(value);
120 }
121 template <typename SchemaT = Aws::String>
122 Model& WithSchema(SchemaT&& value) {
123 SetSchema(std::forward<SchemaT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_contentType;
129
130 Aws::String m_description;
131
132 Aws::String m_modelId;
133
134 Aws::String m_name;
135
136 Aws::String m_schema;
137 bool m_contentTypeHasBeenSet = false;
138 bool m_descriptionHasBeenSet = false;
139 bool m_modelIdHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_schemaHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace ApiGatewayV2
146} // namespace Aws
bool ContentTypeHasBeenSet() const
Definition Model.h:42
AWS_APIGATEWAYV2_API Model(Aws::Utils::Json::JsonView jsonValue)
bool ModelIdHasBeenSet() const
Definition Model.h:78
Model & WithName(NameT &&value)
Definition Model.h:103
AWS_APIGATEWAYV2_API Model()=default
bool NameHasBeenSet() const
Definition Model.h:96
bool SchemaHasBeenSet() const
Definition Model.h:115
const Aws::String & GetModelId() const
Definition Model.h:77
Model & WithSchema(SchemaT &&value)
Definition Model.h:122
void SetSchema(SchemaT &&value)
Definition Model.h:117
const Aws::String & GetContentType() const
Definition Model.h:41
const Aws::String & GetSchema() const
Definition Model.h:114
Model & WithContentType(ContentTypeT &&value)
Definition Model.h:49
const Aws::String & GetName() const
Definition Model.h:95
const Aws::String & GetDescription() const
Definition Model.h:59
Model & WithModelId(ModelIdT &&value)
Definition Model.h:85
void SetModelId(ModelIdT &&value)
Definition Model.h:80
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAYV2_API Model & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Model.h:98
bool DescriptionHasBeenSet() const
Definition Model.h:60
Model & WithDescription(DescriptionT &&value)
Definition Model.h:67
void SetDescription(DescriptionT &&value)
Definition Model.h:62
void SetContentType(ContentTypeT &&value)
Definition Model.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue