AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetResourceResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/apigateway/model/Method.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway
26{
27namespace Model
28{
35 {
36 public:
37 AWS_APIGATEWAY_API GetResourceResult() = default;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 GetResourceResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetParentId() const { return m_parentId; }
58 template<typename ParentIdT = Aws::String>
59 void SetParentId(ParentIdT&& value) { m_parentIdHasBeenSet = true; m_parentId = std::forward<ParentIdT>(value); }
60 template<typename ParentIdT = Aws::String>
61 GetResourceResult& WithParentId(ParentIdT&& value) { SetParentId(std::forward<ParentIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPathPart() const { return m_pathPart; }
69 template<typename PathPartT = Aws::String>
70 void SetPathPart(PathPartT&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::forward<PathPartT>(value); }
71 template<typename PathPartT = Aws::String>
72 GetResourceResult& WithPathPart(PathPartT&& value) { SetPathPart(std::forward<PathPartT>(value)); return *this;}
74
76
79 inline const Aws::String& GetPath() const { return m_path; }
80 template<typename PathT = Aws::String>
81 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
82 template<typename PathT = Aws::String>
83 GetResourceResult& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
85
87
90 inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const { return m_resourceMethods; }
91 template<typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
92 void SetResourceMethods(ResourceMethodsT&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = std::forward<ResourceMethodsT>(value); }
93 template<typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
94 GetResourceResult& WithResourceMethods(ResourceMethodsT&& value) { SetResourceMethods(std::forward<ResourceMethodsT>(value)); return *this;}
95 template<typename ResourceMethodsKeyT = Aws::String, typename ResourceMethodsValueT = Method>
96 GetResourceResult& AddResourceMethods(ResourceMethodsKeyT&& key, ResourceMethodsValueT&& value) {
97 m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::forward<ResourceMethodsKeyT>(key), std::forward<ResourceMethodsValueT>(value)); return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 GetResourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_parentId;
115 bool m_parentIdHasBeenSet = false;
116
117 Aws::String m_pathPart;
118 bool m_pathPartHasBeenSet = false;
119
120 Aws::String m_path;
121 bool m_pathHasBeenSet = false;
122
123 Aws::Map<Aws::String, Method> m_resourceMethods;
124 bool m_resourceMethodsHasBeenSet = false;
125
126 Aws::String m_requestId;
127 bool m_requestIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace APIGateway
132} // namespace Aws
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