AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace APIGateway {
15namespace Model {
16
24 public:
25 AWS_APIGATEWAY_API CreateModelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
32
33 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
40 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
41 template <typename RestApiIdT = Aws::String>
42 void SetRestApiId(RestApiIdT&& value) {
43 m_restApiIdHasBeenSet = true;
44 m_restApiId = std::forward<RestApiIdT>(value);
45 }
46 template <typename RestApiIdT = Aws::String>
47 CreateModelRequest& WithRestApiId(RestApiIdT&& value) {
48 SetRestApiId(std::forward<RestApiIdT>(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 CreateModelRequest& 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 CreateModelRequest& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetSchema() const { return m_schema; }
96 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
97 template <typename SchemaT = Aws::String>
98 void SetSchema(SchemaT&& value) {
99 m_schemaHasBeenSet = true;
100 m_schema = std::forward<SchemaT>(value);
101 }
102 template <typename SchemaT = Aws::String>
103 CreateModelRequest& WithSchema(SchemaT&& value) {
104 SetSchema(std::forward<SchemaT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetContentType() const { return m_contentType; }
114 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
115 template <typename ContentTypeT = Aws::String>
116 void SetContentType(ContentTypeT&& value) {
117 m_contentTypeHasBeenSet = true;
118 m_contentType = std::forward<ContentTypeT>(value);
119 }
120 template <typename ContentTypeT = Aws::String>
121 CreateModelRequest& WithContentType(ContentTypeT&& value) {
122 SetContentType(std::forward<ContentTypeT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_restApiId;
128
129 Aws::String m_name;
130
131 Aws::String m_description;
132
133 Aws::String m_schema;
134
135 Aws::String m_contentType;
136 bool m_restApiIdHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_descriptionHasBeenSet = false;
139 bool m_schemaHasBeenSet = false;
140 bool m_contentTypeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace APIGateway
145} // namespace Aws
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateModelRequest & WithSchema(SchemaT &&value)
AWS_APIGATEWAY_API CreateModelRequest()=default
CreateModelRequest & WithContentType(ContentTypeT &&value)
CreateModelRequest & WithName(NameT &&value)
CreateModelRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateModelRequest & WithRestApiId(RestApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String