AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline Resource& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetParentId() const{ return m_parentId; }
61 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
62 inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
63 inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
64 inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
65 inline Resource& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
66 inline Resource& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
67 inline Resource& WithParentId(const char* value) { SetParentId(value); return *this;}
69
71
74 inline const Aws::String& GetPathPart() const{ return m_pathPart; }
75 inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
76 inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
77 inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::move(value); }
78 inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
79 inline Resource& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
80 inline Resource& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
81 inline Resource& WithPathPart(const char* value) { SetPathPart(value); return *this;}
83
85
88 inline const Aws::String& GetPath() const{ return m_path; }
89 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
90 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
91 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
92 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
93 inline Resource& WithPath(const Aws::String& value) { SetPath(value); return *this;}
94 inline Resource& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
95 inline Resource& WithPath(const char* value) { SetPath(value); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const{ return m_resourceMethods; }
103 inline bool ResourceMethodsHasBeenSet() const { return m_resourceMethodsHasBeenSet; }
104 inline void SetResourceMethods(const Aws::Map<Aws::String, Method>& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = value; }
105 inline void SetResourceMethods(Aws::Map<Aws::String, Method>&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = std::move(value); }
107 inline Resource& WithResourceMethods(Aws::Map<Aws::String, Method>&& value) { SetResourceMethods(std::move(value)); return *this;}
108 inline Resource& AddResourceMethods(const Aws::String& key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, value); return *this; }
109 inline Resource& AddResourceMethods(Aws::String&& key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::move(key), value); return *this; }
110 inline Resource& AddResourceMethods(const Aws::String& key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, std::move(value)); return *this; }
111 inline Resource& AddResourceMethods(Aws::String&& key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::move(key), std::move(value)); return *this; }
112 inline Resource& AddResourceMethods(const char* key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, std::move(value)); return *this; }
113 inline Resource& AddResourceMethods(const char* key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, value); return *this; }
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
120 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
121 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
122 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
123 inline Resource& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
124 inline Resource& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
125 inline Resource& WithRequestId(const char* value) { SetRequestId(value); return *this;}
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 Aws::String m_parentId;
133 bool m_parentIdHasBeenSet = false;
134
135 Aws::String m_pathPart;
136 bool m_pathPartHasBeenSet = false;
137
138 Aws::String m_path;
139 bool m_pathHasBeenSet = false;
140
141 Aws::Map<Aws::String, Method> m_resourceMethods;
142 bool m_resourceMethodsHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace APIGateway
150} // namespace Aws
AWS_APIGATEWAY_API Resource()
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPath() const
Definition Resource.h:88
Resource & AddResourceMethods(const char *key, Method &&value)
Definition Resource.h:112
void SetParentId(Aws::String &&value)
Definition Resource.h:63
AWS_APIGATEWAY_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetPathPart(const char *value)
Definition Resource.h:78
Resource & WithParentId(Aws::String &&value)
Definition Resource.h:66
Resource & WithResourceMethods(Aws::Map< Aws::String, Method > &&value)
Definition Resource.h:107
void SetRequestId(Aws::String &&value)
Definition Resource.h:121
Resource & WithPath(const char *value)
Definition Resource.h:95
Resource & WithRequestId(Aws::String &&value)
Definition Resource.h:124
Resource & WithPath(const Aws::String &value)
Definition Resource.h:93
Resource & WithPathPart(const Aws::String &value)
Definition Resource.h:79
void SetResourceMethods(Aws::Map< Aws::String, Method > &&value)
Definition Resource.h:105
AWS_APIGATEWAY_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & AddResourceMethods(const Aws::String &key, const Method &value)
Definition Resource.h:108
Resource & WithId(const char *value)
Definition Resource.h:53
Resource & WithParentId(const Aws::String &value)
Definition Resource.h:65
const Aws::String & GetId() const
Definition Resource.h:46
Resource & WithRequestId(const Aws::String &value)
Definition Resource.h:123
Resource & AddResourceMethods(Aws::String &&key, Method &&value)
Definition Resource.h:111
Resource & WithPathPart(Aws::String &&value)
Definition Resource.h:80
Resource & AddResourceMethods(Aws::String &&key, const Method &value)
Definition Resource.h:109
Resource & WithParentId(const char *value)
Definition Resource.h:67
void SetRequestId(const char *value)
Definition Resource.h:122
void SetId(const Aws::String &value)
Definition Resource.h:48
void SetParentId(const Aws::String &value)
Definition Resource.h:62
const Aws::String & GetPathPart() const
Definition Resource.h:74
Resource & WithRequestId(const char *value)
Definition Resource.h:125
Resource & WithId(Aws::String &&value)
Definition Resource.h:52
void SetPath(const Aws::String &value)
Definition Resource.h:90
Resource & AddResourceMethods(const Aws::String &key, Method &&value)
Definition Resource.h:110
void SetPath(Aws::String &&value)
Definition Resource.h:91
Resource & WithId(const Aws::String &value)
Definition Resource.h:51
bool ResourceMethodsHasBeenSet() const
Definition Resource.h:103
Resource & WithPath(Aws::String &&value)
Definition Resource.h:94
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
Definition Resource.h:102
void SetId(const char *value)
Definition Resource.h:50
void SetParentId(const char *value)
Definition Resource.h:64
void SetResourceMethods(const Aws::Map< Aws::String, Method > &value)
Definition Resource.h:104
void SetId(Aws::String &&value)
Definition Resource.h:49
void SetPathPart(Aws::String &&value)
Definition Resource.h:77
void SetPath(const char *value)
Definition Resource.h:92
Resource & WithPathPart(const char *value)
Definition Resource.h:81
const Aws::String & GetRequestId() const
Definition Resource.h:118
Resource & WithResourceMethods(const Aws::Map< Aws::String, Method > &value)
Definition Resource.h:106
void SetRequestId(const Aws::String &value)
Definition Resource.h:120
Resource & AddResourceMethods(const char *key, const Method &value)
Definition Resource.h:113
const Aws::String & GetParentId() const
Definition Resource.h:60
void SetPathPart(const Aws::String &value)
Definition Resource.h:76
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