AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDocumentationVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace APIGateway
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "CreateDocumentationVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
43 
47  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 
52  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
57  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
58 
62  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
63 
67  inline CreateDocumentationVersionRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
72  inline CreateDocumentationVersionRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
73 
77  inline CreateDocumentationVersionRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
83  inline const Aws::String& GetDocumentationVersion() const{ return m_documentationVersion; }
84 
88  inline bool DocumentationVersionHasBeenSet() const { return m_documentationVersionHasBeenSet; }
89 
93  inline void SetDocumentationVersion(const Aws::String& value) { m_documentationVersionHasBeenSet = true; m_documentationVersion = value; }
94 
98  inline void SetDocumentationVersion(Aws::String&& value) { m_documentationVersionHasBeenSet = true; m_documentationVersion = std::move(value); }
99 
103  inline void SetDocumentationVersion(const char* value) { m_documentationVersionHasBeenSet = true; m_documentationVersion.assign(value); }
104 
108  inline CreateDocumentationVersionRequest& WithDocumentationVersion(const Aws::String& value) { SetDocumentationVersion(value); return *this;}
109 
113  inline CreateDocumentationVersionRequest& WithDocumentationVersion(Aws::String&& value) { SetDocumentationVersion(std::move(value)); return *this;}
114 
118  inline CreateDocumentationVersionRequest& WithDocumentationVersion(const char* value) { SetDocumentationVersion(value); return *this;}
119 
120 
124  inline const Aws::String& GetStageName() const{ return m_stageName; }
125 
129  inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
130 
134  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
135 
139  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
140 
144  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
145 
149  inline CreateDocumentationVersionRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
150 
154  inline CreateDocumentationVersionRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
155 
159  inline CreateDocumentationVersionRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
160 
161 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
170  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 
175  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
176 
180  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
181 
185  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
186 
190  inline CreateDocumentationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 
195  inline CreateDocumentationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
196 
200  inline CreateDocumentationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
201 
202  private:
203 
204  Aws::String m_restApiId;
205  bool m_restApiIdHasBeenSet;
206 
207  Aws::String m_documentationVersion;
208  bool m_documentationVersionHasBeenSet;
209 
210  Aws::String m_stageName;
211  bool m_stageNameHasBeenSet;
212 
213  Aws::String m_description;
214  bool m_descriptionHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace APIGateway
219 } // namespace Aws
CreateDocumentationVersionRequest & WithDescription(const char *value)
CreateDocumentationVersionRequest & WithStageName(const char *value)
CreateDocumentationVersionRequest & WithDocumentationVersion(const char *value)
CreateDocumentationVersionRequest & WithDocumentationVersion(const Aws::String &value)
CreateDocumentationVersionRequest & WithRestApiId(Aws::String &&value)
CreateDocumentationVersionRequest & WithStageName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDocumentationVersionRequest & WithRestApiId(const Aws::String &value)
CreateDocumentationVersionRequest & WithStageName(const Aws::String &value)
CreateDocumentationVersionRequest & WithDescription(Aws::String &&value)
CreateDocumentationVersionRequest & WithRestApiId(const char *value)
CreateDocumentationVersionRequest & WithDescription(const Aws::String &value)
CreateDocumentationVersionRequest & WithDocumentationVersion(Aws::String &&value)
#define AWS_APIGATEWAY_API