AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResourceRequest.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 CreateResourceRequest();
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_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 CreateResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
49 inline CreateResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
50 inline CreateResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
52
54
57 inline const Aws::String& GetParentId() const{ return m_parentId; }
58 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
59 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
60 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
61 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
62 inline CreateResourceRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
63 inline CreateResourceRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
64 inline CreateResourceRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
66
68
71 inline const Aws::String& GetPathPart() const{ return m_pathPart; }
72 inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
73 inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
74 inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::move(value); }
75 inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
76 inline CreateResourceRequest& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
77 inline CreateResourceRequest& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
78 inline CreateResourceRequest& WithPathPart(const char* value) { SetPathPart(value); return *this;}
80 private:
81
82 Aws::String m_restApiId;
83 bool m_restApiIdHasBeenSet = false;
84
85 Aws::String m_parentId;
86 bool m_parentIdHasBeenSet = false;
87
88 Aws::String m_pathPart;
89 bool m_pathPartHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace APIGateway
94} // namespace Aws
CreateResourceRequest & WithPathPart(const char *value)
CreateResourceRequest & WithParentId(Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateResourceRequest & WithRestApiId(const Aws::String &value)
CreateResourceRequest & WithPathPart(const Aws::String &value)
CreateResourceRequest & WithParentId(const char *value)
CreateResourceRequest & WithPathPart(Aws::String &&value)
CreateResourceRequest & WithRestApiId(Aws::String &&value)
CreateResourceRequest & WithRestApiId(const char *value)
CreateResourceRequest & WithParentId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String