AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ContentTypeT = Aws::String>
50 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
51 template<typename ContentTypeT = Aws::String>
52 Model& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 Model& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetModelId() const { return m_modelId; }
72 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
73 template<typename ModelIdT = Aws::String>
74 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
75 template<typename ModelIdT = Aws::String>
76 Model& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 Model& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
96 inline const Aws::String& GetSchema() const { return m_schema; }
97 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
98 template<typename SchemaT = Aws::String>
99 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
100 template<typename SchemaT = Aws::String>
101 Model& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
103 private:
104
105 Aws::String m_contentType;
106 bool m_contentTypeHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 Aws::String m_modelId;
112 bool m_modelIdHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_schema;
118 bool m_schemaHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ApiGatewayV2
123} // namespace Aws
bool ContentTypeHasBeenSet() const
Definition Model.h:48
AWS_APIGATEWAYV2_API Model(Aws::Utils::Json::JsonView jsonValue)
bool ModelIdHasBeenSet() const
Definition Model.h:72
Model & WithName(NameT &&value)
Definition Model.h:88
AWS_APIGATEWAYV2_API Model()=default
bool NameHasBeenSet() const
Definition Model.h:84
bool SchemaHasBeenSet() const
Definition Model.h:97
const Aws::String & GetModelId() const
Definition Model.h:71
Model & WithSchema(SchemaT &&value)
Definition Model.h:101
void SetSchema(SchemaT &&value)
Definition Model.h:99
const Aws::String & GetContentType() const
Definition Model.h:47
const Aws::String & GetSchema() const
Definition Model.h:96
Model & WithContentType(ContentTypeT &&value)
Definition Model.h:52
const Aws::String & GetName() const
Definition Model.h:83
const Aws::String & GetDescription() const
Definition Model.h:59
Model & WithModelId(ModelIdT &&value)
Definition Model.h:76
void SetModelId(ModelIdT &&value)
Definition Model.h:74
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:86
bool DescriptionHasBeenSet() const
Definition Model.h:60
Model & WithDescription(DescriptionT &&value)
Definition Model.h:64
void SetDescription(DescriptionT &&value)
Definition Model.h:62
void SetContentType(ContentTypeT &&value)
Definition Model.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue