AWS SDK for C++  1.9.20
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
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithLocation
CreateDocumentationPartRequest & WithLocation(DocumentationPartLocation &&value)
Definition: CreateDocumentationPartRequest.h:115
Aws::APIGateway::Model::CreateDocumentationPartRequest::CreateDocumentationPartRequest
CreateDocumentationPartRequest()
Aws::APIGateway::Model::CreateDocumentationPartRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateDocumentationPartRequest.h:48
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithRestApiId
CreateDocumentationPartRequest & WithRestApiId(Aws::String &&value)
Definition: CreateDocumentationPartRequest.h:73
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithProperties
CreateDocumentationPartRequest & WithProperties(const Aws::String &value)
Definition: CreateDocumentationPartRequest.h:158
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetProperties
void SetProperties(const char *value)
Definition: CreateDocumentationPartRequest.h:151
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithProperties
CreateDocumentationPartRequest & WithProperties(Aws::String &&value)
Definition: CreateDocumentationPartRequest.h:165
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetLocation
void SetLocation(const DocumentationPartLocation &value)
Definition: CreateDocumentationPartRequest.h:97
Aws::APIGateway::Model::CreateDocumentationPartRequest::GetProperties
const Aws::String & GetProperties() const
Definition: CreateDocumentationPartRequest.h:123
Aws::APIGateway::Model::CreateDocumentationPartRequest::SerializePayload
Aws::String SerializePayload() const override
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateDocumentationPartRequest.h:58
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithRestApiId
CreateDocumentationPartRequest & WithRestApiId(const Aws::String &value)
Definition: CreateDocumentationPartRequest.h:68
Aws::APIGateway::Model::DocumentationPartLocation
Definition: DocumentationPartLocation.h:34
Aws::APIGateway::Model::CreateDocumentationPartRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreateDocumentationPartRequest.h:130
Aws::APIGateway::Model::CreateDocumentationPartRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateDocumentationPartRequest.h:43
Aws::APIGateway::Model::CreateDocumentationPartRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDocumentationPartRequest.h:35
APIGatewayRequest.h
Aws::APIGateway::Model::CreateDocumentationPartRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CreateDocumentationPartRequest.h:91
DocumentationPartLocation.h
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetProperties
void SetProperties(Aws::String &&value)
Definition: CreateDocumentationPartRequest.h:144
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithRestApiId
CreateDocumentationPartRequest & WithRestApiId(const char *value)
Definition: CreateDocumentationPartRequest.h:78
AWSString.h
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetLocation
void SetLocation(DocumentationPartLocation &&value)
Definition: CreateDocumentationPartRequest.h:103
Aws::APIGateway::Model::CreateDocumentationPartRequest
Definition: CreateDocumentationPartRequest.h:27
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetProperties
void SetProperties(const Aws::String &value)
Definition: CreateDocumentationPartRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithProperties
CreateDocumentationPartRequest & WithProperties(const char *value)
Definition: CreateDocumentationPartRequest.h:172
Aws::APIGateway::Model::CreateDocumentationPartRequest::GetLocation
const DocumentationPartLocation & GetLocation() const
Definition: CreateDocumentationPartRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateDocumentationPartRequest::WithLocation
CreateDocumentationPartRequest & WithLocation(const DocumentationPartLocation &value)
Definition: CreateDocumentationPartRequest.h:109
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateDocumentationPartRequest.h:63
Aws::APIGateway::Model::CreateDocumentationPartRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateDocumentationPartRequest.h:53