AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
GetResourceResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/Method.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway {
25namespace Model {
32 public:
33 AWS_APIGATEWAY_API GetResourceResult() = default;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 GetResourceResult& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetParentId() const { return m_parentId; }
59 template <typename ParentIdT = Aws::String>
60 void SetParentId(ParentIdT&& value) {
61 m_parentIdHasBeenSet = true;
62 m_parentId = std::forward<ParentIdT>(value);
63 }
64 template <typename ParentIdT = Aws::String>
65 GetResourceResult& WithParentId(ParentIdT&& value) {
66 SetParentId(std::forward<ParentIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPathPart() const { return m_pathPart; }
76 template <typename PathPartT = Aws::String>
77 void SetPathPart(PathPartT&& value) {
78 m_pathPartHasBeenSet = true;
79 m_pathPart = std::forward<PathPartT>(value);
80 }
81 template <typename PathPartT = Aws::String>
82 GetResourceResult& WithPathPart(PathPartT&& value) {
83 SetPathPart(std::forward<PathPartT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetPath() const { return m_path; }
93 template <typename PathT = Aws::String>
94 void SetPath(PathT&& value) {
95 m_pathHasBeenSet = true;
96 m_path = std::forward<PathT>(value);
97 }
98 template <typename PathT = Aws::String>
99 GetResourceResult& WithPath(PathT&& value) {
100 SetPath(std::forward<PathT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const { return m_resourceMethods; }
110 template <typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
111 void SetResourceMethods(ResourceMethodsT&& value) {
112 m_resourceMethodsHasBeenSet = true;
113 m_resourceMethods = std::forward<ResourceMethodsT>(value);
114 }
115 template <typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
116 GetResourceResult& WithResourceMethods(ResourceMethodsT&& value) {
117 SetResourceMethods(std::forward<ResourceMethodsT>(value));
118 return *this;
119 }
120 template <typename ResourceMethodsKeyT = Aws::String, typename ResourceMethodsValueT = Method>
121 GetResourceResult& AddResourceMethods(ResourceMethodsKeyT&& key, ResourceMethodsValueT&& value) {
122 m_resourceMethodsHasBeenSet = true;
123 m_resourceMethods.emplace(std::forward<ResourceMethodsKeyT>(key), std::forward<ResourceMethodsValueT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
137 GetResourceResult& WithRequestId(RequestIdT&& value) {
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::String m_id;
146
147 Aws::String m_parentId;
148
149 Aws::String m_pathPart;
150
151 Aws::String m_path;
152
153 Aws::Map<Aws::String, Method> m_resourceMethods;
154
155 Aws::String m_requestId;
156 Aws::Http::HttpResponseCode m_HttpResponseCode;
157 bool m_idHasBeenSet = false;
158 bool m_parentIdHasBeenSet = false;
159 bool m_pathPartHasBeenSet = false;
160 bool m_pathHasBeenSet = false;
161 bool m_resourceMethodsHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace APIGateway
167} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetResourceResult & WithPath(PathT &&value)
GetResourceResult & WithResourceMethods(ResourceMethodsT &&value)
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
GetResourceResult & WithParentId(ParentIdT &&value)
void SetResourceMethods(ResourceMethodsT &&value)
GetResourceResult & WithId(IdT &&value)
AWS_APIGATEWAY_API GetResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAY_API GetResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceResult & WithPathPart(PathPartT &&value)
GetResourceResult & AddResourceMethods(ResourceMethodsKeyT &&key, ResourceMethodsValueT &&value)
AWS_APIGATEWAY_API GetResourceResult()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue