AWS SDK for C++  1.9.18
AWS SDK for C++
CreateResourceRequest.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 "CreateResource"; }
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 CreateResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
72  inline CreateResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
73 
77  inline CreateResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
79 
83  inline const Aws::String& GetParentId() const{ return m_parentId; }
84 
88  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
89 
93  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
94 
98  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
99 
103  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
104 
108  inline CreateResourceRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
109 
113  inline CreateResourceRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
114 
118  inline CreateResourceRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
119 
120 
124  inline const Aws::String& GetPathPart() const{ return m_pathPart; }
125 
129  inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
130 
134  inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
135 
139  inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::move(value); }
140 
144  inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
145 
149  inline CreateResourceRequest& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
150 
154  inline CreateResourceRequest& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
155 
159  inline CreateResourceRequest& WithPathPart(const char* value) { SetPathPart(value); return *this;}
160 
161  private:
162 
163  Aws::String m_restApiId;
164  bool m_restApiIdHasBeenSet;
165 
166  Aws::String m_parentId;
167  bool m_parentIdHasBeenSet;
168 
169  Aws::String m_pathPart;
170  bool m_pathPartHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace APIGateway
175 } // namespace Aws
Aws::APIGateway::Model::CreateResourceRequest::SetParentId
void SetParentId(const Aws::String &value)
Definition: CreateResourceRequest.h:93
Aws::APIGateway::Model::CreateResourceRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: CreateResourceRequest.h:47
Aws::APIGateway::Model::CreateResourceRequest::WithParentId
CreateResourceRequest & WithParentId(const Aws::String &value)
Definition: CreateResourceRequest.h:108
Aws::APIGateway::Model::CreateResourceRequest::SetPathPart
void SetPathPart(Aws::String &&value)
Definition: CreateResourceRequest.h:139
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateResourceRequest::SetPathPart
void SetPathPart(const char *value)
Definition: CreateResourceRequest.h:144
Aws::APIGateway::Model::CreateResourceRequest::GetParentId
const Aws::String & GetParentId() const
Definition: CreateResourceRequest.h:83
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateResourceRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: CreateResourceRequest.h:42
Aws::APIGateway::Model::CreateResourceRequest::WithParentId
CreateResourceRequest & WithParentId(const char *value)
Definition: CreateResourceRequest.h:118
Aws::APIGateway::Model::CreateResourceRequest::PathPartHasBeenSet
bool PathPartHasBeenSet() const
Definition: CreateResourceRequest.h:129
APIGatewayRequest.h
Aws::APIGateway::Model::CreateResourceRequest
Definition: CreateResourceRequest.h:26
Aws::APIGateway::Model::CreateResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateResourceRequest.h:34
Aws::APIGateway::Model::CreateResourceRequest::SetParentId
void SetParentId(Aws::String &&value)
Definition: CreateResourceRequest.h:98
Aws::APIGateway::Model::CreateResourceRequest::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: CreateResourceRequest.h:88
Aws::APIGateway::Model::CreateResourceRequest::WithPathPart
CreateResourceRequest & WithPathPart(Aws::String &&value)
Definition: CreateResourceRequest.h:154
Aws::APIGateway::Model::CreateResourceRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: CreateResourceRequest.h:57
Aws::APIGateway::Model::CreateResourceRequest::WithParentId
CreateResourceRequest & WithParentId(Aws::String &&value)
Definition: CreateResourceRequest.h:113
AWSString.h
Aws::APIGateway::Model::CreateResourceRequest::CreateResourceRequest
CreateResourceRequest()
Aws::APIGateway::Model::CreateResourceRequest::WithRestApiId
CreateResourceRequest & WithRestApiId(const Aws::String &value)
Definition: CreateResourceRequest.h:67
Aws::APIGateway::Model::CreateResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::CreateResourceRequest::SetParentId
void SetParentId(const char *value)
Definition: CreateResourceRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateResourceRequest::WithPathPart
CreateResourceRequest & WithPathPart(const char *value)
Definition: CreateResourceRequest.h:159
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateResourceRequest::WithRestApiId
CreateResourceRequest & WithRestApiId(const char *value)
Definition: CreateResourceRequest.h:77
Aws::APIGateway::Model::CreateResourceRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: CreateResourceRequest.h:52
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::CreateResourceRequest::WithRestApiId
CreateResourceRequest & WithRestApiId(Aws::String &&value)
Definition: CreateResourceRequest.h:72
Aws::APIGateway::Model::CreateResourceRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: CreateResourceRequest.h:62
Aws::APIGateway::Model::CreateResourceRequest::GetPathPart
const Aws::String & GetPathPart() const
Definition: CreateResourceRequest.h:124
Aws::APIGateway::Model::CreateResourceRequest::WithPathPart
CreateResourceRequest & WithPathPart(const Aws::String &value)
Definition: CreateResourceRequest.h:149
Aws::APIGateway::Model::CreateResourceRequest::SetPathPart
void SetPathPart(const Aws::String &value)
Definition: CreateResourceRequest.h:134