AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ApiGatewayV2 {
15namespace Model {
16
23 public:
24 AWS_APIGATEWAYV2_API CreateModelRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
31
32 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApiId() const { return m_apiId; }
39 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
40 template <typename ApiIdT = Aws::String>
41 void SetApiId(ApiIdT&& value) {
42 m_apiIdHasBeenSet = true;
43 m_apiId = std::forward<ApiIdT>(value);
44 }
45 template <typename ApiIdT = Aws::String>
46 CreateModelRequest& WithApiId(ApiIdT&& value) {
47 SetApiId(std::forward<ApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetContentType() const { return m_contentType; }
57 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
58 template <typename ContentTypeT = Aws::String>
59 void SetContentType(ContentTypeT&& value) {
60 m_contentTypeHasBeenSet = true;
61 m_contentType = std::forward<ContentTypeT>(value);
62 }
63 template <typename ContentTypeT = Aws::String>
64 CreateModelRequest& WithContentType(ContentTypeT&& value) {
65 SetContentType(std::forward<ContentTypeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 CreateModelRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template <typename NameT = Aws::String>
95 void SetName(NameT&& value) {
96 m_nameHasBeenSet = true;
97 m_name = std::forward<NameT>(value);
98 }
99 template <typename NameT = Aws::String>
100 CreateModelRequest& WithName(NameT&& value) {
101 SetName(std::forward<NameT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetSchema() const { return m_schema; }
112 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
113 template <typename SchemaT = Aws::String>
114 void SetSchema(SchemaT&& value) {
115 m_schemaHasBeenSet = true;
116 m_schema = std::forward<SchemaT>(value);
117 }
118 template <typename SchemaT = Aws::String>
119 CreateModelRequest& WithSchema(SchemaT&& value) {
120 SetSchema(std::forward<SchemaT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_apiId;
126
127 Aws::String m_contentType;
128
129 Aws::String m_description;
130
131 Aws::String m_name;
132
133 Aws::String m_schema;
134 bool m_apiIdHasBeenSet = false;
135 bool m_contentTypeHasBeenSet = false;
136 bool m_descriptionHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_schemaHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ApiGatewayV2
143} // namespace Aws
CreateModelRequest & WithSchema(SchemaT &&value)
CreateModelRequest & WithDescription(DescriptionT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
CreateModelRequest & WithContentType(ContentTypeT &&value)
CreateModelRequest & WithApiId(ApiIdT &&value)
AWS_APIGATEWAYV2_API CreateModelRequest()=default
CreateModelRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String