AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Resource.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{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace APIGateway
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APIGATEWAY_API Resource() = default;
37 AWS_APIGATEWAY_API Resource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 Resource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetParentId() const { return m_parentId; }
59 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
60 template<typename ParentIdT = Aws::String>
61 void SetParentId(ParentIdT&& value) { m_parentIdHasBeenSet = true; m_parentId = std::forward<ParentIdT>(value); }
62 template<typename ParentIdT = Aws::String>
63 Resource& WithParentId(ParentIdT&& value) { SetParentId(std::forward<ParentIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPathPart() const { return m_pathPart; }
71 inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
72 template<typename PathPartT = Aws::String>
73 void SetPathPart(PathPartT&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::forward<PathPartT>(value); }
74 template<typename PathPartT = Aws::String>
75 Resource& WithPathPart(PathPartT&& value) { SetPathPart(std::forward<PathPartT>(value)); return *this;}
77
79
82 inline const Aws::String& GetPath() const { return m_path; }
83 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
84 template<typename PathT = Aws::String>
85 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
86 template<typename PathT = Aws::String>
87 Resource& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const { return m_resourceMethods; }
95 inline bool ResourceMethodsHasBeenSet() const { return m_resourceMethodsHasBeenSet; }
96 template<typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
97 void SetResourceMethods(ResourceMethodsT&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = std::forward<ResourceMethodsT>(value); }
98 template<typename ResourceMethodsT = Aws::Map<Aws::String, Method>>
99 Resource& WithResourceMethods(ResourceMethodsT&& value) { SetResourceMethods(std::forward<ResourceMethodsT>(value)); return *this;}
100 template<typename ResourceMethodsKeyT = Aws::String, typename ResourceMethodsValueT = Method>
101 Resource& AddResourceMethods(ResourceMethodsKeyT&& key, ResourceMethodsValueT&& value) {
102 m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::forward<ResourceMethodsKeyT>(key), std::forward<ResourceMethodsValueT>(value)); return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
110 template<typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
112 template<typename RequestIdT = Aws::String>
113 Resource& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
115 private:
116
117 Aws::String m_id;
118 bool m_idHasBeenSet = false;
119
120 Aws::String m_parentId;
121 bool m_parentIdHasBeenSet = false;
122
123 Aws::String m_pathPart;
124 bool m_pathPartHasBeenSet = false;
125
126 Aws::String m_path;
127 bool m_pathHasBeenSet = false;
128
129 Aws::Map<Aws::String, Method> m_resourceMethods;
130 bool m_resourceMethodsHasBeenSet = false;
131
132 Aws::String m_requestId;
133 bool m_requestIdHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace APIGateway
138} // namespace Aws
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPath() const
Definition Resource.h:82
AWS_APIGATEWAY_API Resource(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithPath(PathT &&value)
Definition Resource.h:87
Resource & WithRequestId(RequestIdT &&value)
Definition Resource.h:113
const Aws::String & GetId() const
Definition Resource.h:46
Resource & WithResourceMethods(ResourceMethodsT &&value)
Definition Resource.h:99
void SetResourceMethods(ResourceMethodsT &&value)
Definition Resource.h:97
Resource & AddResourceMethods(ResourceMethodsKeyT &&key, ResourceMethodsValueT &&value)
Definition Resource.h:101
Resource & WithPathPart(PathPartT &&value)
Definition Resource.h:75
const Aws::String & GetPathPart() const
Definition Resource.h:70
void SetPath(PathT &&value)
Definition Resource.h:85
Resource & WithParentId(ParentIdT &&value)
Definition Resource.h:63
void SetRequestId(RequestIdT &&value)
Definition Resource.h:111
void SetParentId(ParentIdT &&value)
Definition Resource.h:61
bool ResourceMethodsHasBeenSet() const
Definition Resource.h:95
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
Definition Resource.h:94
Resource & WithId(IdT &&value)
Definition Resource.h:51
AWS_APIGATEWAY_API Resource()=default
const Aws::String & GetRequestId() const
Definition Resource.h:108
void SetPathPart(PathPartT &&value)
Definition Resource.h:73
const Aws::String & GetParentId() const
Definition Resource.h:58
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