AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateModelRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace APIGateway
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_APIGATEWAY_API CreateModelRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
35
36 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
45 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
46 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
47 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
48 inline CreateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
49 inline CreateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
50 inline CreateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateModelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateModelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateModelRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
87 inline const Aws::String& GetSchema() const{ return m_schema; }
88 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
89 inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
90 inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
91 inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
92 inline CreateModelRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
93 inline CreateModelRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
94 inline CreateModelRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
96
98
101 inline const Aws::String& GetContentType() const{ return m_contentType; }
102 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
103 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
104 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
105 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
106 inline CreateModelRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
107 inline CreateModelRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
108 inline CreateModelRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
110 private:
111
112 Aws::String m_restApiId;
113 bool m_restApiIdHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::String m_schema;
122 bool m_schemaHasBeenSet = false;
123
124 Aws::String m_contentType;
125 bool m_contentTypeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace APIGateway
130} // namespace Aws
CreateModelRequest & WithSchema(const Aws::String &value)
CreateModelRequest & WithSchema(Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
void SetSchema(const Aws::String &value)
CreateModelRequest & WithDescription(Aws::String &&value)
CreateModelRequest & WithName(Aws::String &&value)
CreateModelRequest & WithContentType(Aws::String &&value)
void SetContentType(const Aws::String &value)
CreateModelRequest & WithDescription(const Aws::String &value)
CreateModelRequest & WithRestApiId(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
CreateModelRequest & WithDescription(const char *value)
CreateModelRequest & WithRestApiId(const char *value)
virtual const char * GetServiceRequestName() const override
void SetDescription(const Aws::String &value)
CreateModelRequest & WithName(const char *value)
CreateModelRequest & WithSchema(const char *value)
CreateModelRequest & WithName(const Aws::String &value)
CreateModelRequest & WithContentType(const Aws::String &value)
CreateModelRequest & WithRestApiId(const Aws::String &value)
CreateModelRequest & WithContentType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String