AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateModelRequest.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 UpdateModelRequest() = 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 "UpdateModel"; }
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 UpdateModelRequest& 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 UpdateModelRequest& 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 UpdateModelRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetModelId() const { return m_modelId; }
93 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
94 template <typename ModelIdT = Aws::String>
95 void SetModelId(ModelIdT&& value) {
96 m_modelIdHasBeenSet = true;
97 m_modelId = std::forward<ModelIdT>(value);
98 }
99 template <typename ModelIdT = Aws::String>
100 UpdateModelRequest& WithModelId(ModelIdT&& value) {
101 SetModelId(std::forward<ModelIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 template <typename NameT = Aws::String>
113 void SetName(NameT&& value) {
114 m_nameHasBeenSet = true;
115 m_name = std::forward<NameT>(value);
116 }
117 template <typename NameT = Aws::String>
118 UpdateModelRequest& WithName(NameT&& value) {
119 SetName(std::forward<NameT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetSchema() const { return m_schema; }
130 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
131 template <typename SchemaT = Aws::String>
132 void SetSchema(SchemaT&& value) {
133 m_schemaHasBeenSet = true;
134 m_schema = std::forward<SchemaT>(value);
135 }
136 template <typename SchemaT = Aws::String>
137 UpdateModelRequest& WithSchema(SchemaT&& value) {
138 SetSchema(std::forward<SchemaT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_apiId;
144
145 Aws::String m_contentType;
146
147 Aws::String m_description;
148
149 Aws::String m_modelId;
150
151 Aws::String m_name;
152
153 Aws::String m_schema;
154 bool m_apiIdHasBeenSet = false;
155 bool m_contentTypeHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_modelIdHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_schemaHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace ApiGatewayV2
164} // namespace Aws
UpdateModelRequest & WithSchema(SchemaT &&value)
UpdateModelRequest & WithName(NameT &&value)
UpdateModelRequest & WithDescription(DescriptionT &&value)
UpdateModelRequest & WithContentType(ContentTypeT &&value)
UpdateModelRequest & WithApiId(ApiIdT &&value)
UpdateModelRequest & WithModelId(ModelIdT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
AWS_APIGATEWAYV2_API UpdateModelRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String