AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDocumentationPartRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace APIGateway
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateDocumentationPart"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
48  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
49 
53  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
54 
58  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
59 
63  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
64 
68  inline CreateDocumentationPartRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
69 
73  inline CreateDocumentationPartRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
74 
78  inline CreateDocumentationPartRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
80 
85  inline const DocumentationPartLocation& GetLocation() const{ return m_location; }
86 
91  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
92 
97  inline void SetLocation(const DocumentationPartLocation& value) { m_locationHasBeenSet = true; m_location = value; }
98 
103  inline void SetLocation(DocumentationPartLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
104 
109  inline CreateDocumentationPartRequest& WithLocation(const DocumentationPartLocation& value) { SetLocation(value); return *this;}
110 
115  inline CreateDocumentationPartRequest& WithLocation(DocumentationPartLocation&& value) { SetLocation(std::move(value)); return *this;}
116 
117 
123  inline const Aws::String& GetProperties() const{ return m_properties; }
124 
130  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
131 
137  inline void SetProperties(const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties = value; }
138 
144  inline void SetProperties(Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
145 
151  inline void SetProperties(const char* value) { m_propertiesHasBeenSet = true; m_properties.assign(value); }
152 
158  inline CreateDocumentationPartRequest& WithProperties(const Aws::String& value) { SetProperties(value); return *this;}
159 
165  inline CreateDocumentationPartRequest& WithProperties(Aws::String&& value) { SetProperties(std::move(value)); return *this;}
166 
172  inline CreateDocumentationPartRequest& WithProperties(const char* value) { SetProperties(value); return *this;}
173 
174  private:
175 
176  Aws::String m_restApiId;
177  bool m_restApiIdHasBeenSet;
178 
179  DocumentationPartLocation m_location;
180  bool m_locationHasBeenSet;
181 
182  Aws::String m_properties;
183  bool m_propertiesHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace APIGateway
188 } // namespace Aws
CreateDocumentationPartRequest & WithProperties(const char *value)
CreateDocumentationPartRequest & WithLocation(const DocumentationPartLocation &value)
CreateDocumentationPartRequest & WithLocation(DocumentationPartLocation &&value)
CreateDocumentationPartRequest & WithRestApiId(Aws::String &&value)
CreateDocumentationPartRequest & WithProperties(const Aws::String &value)
void SetLocation(const DocumentationPartLocation &value)
CreateDocumentationPartRequest & WithProperties(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDocumentationPartRequest & WithRestApiId(const Aws::String &value)
#define AWS_APIGATEWAY_API
CreateDocumentationPartRequest & WithRestApiId(const char *value)