AWS SDK for C++  1.9.16
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline Resource& WithId(const char* value) { SetId(value); return *this;}
83 
84 
88  inline const Aws::String& GetParentId() const{ return m_parentId; }
89 
93  inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
94 
98  inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
99 
103  inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
104 
108  inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
109 
113  inline Resource& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
114 
118  inline Resource& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
119 
123  inline Resource& WithParentId(const char* value) { SetParentId(value); return *this;}
124 
125 
129  inline const Aws::String& GetPathPart() const{ return m_pathPart; }
130 
134  inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
135 
139  inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
140 
144  inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::move(value); }
145 
149  inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
150 
154  inline Resource& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
155 
159  inline Resource& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
160 
164  inline Resource& WithPathPart(const char* value) { SetPathPart(value); return *this;}
165 
166 
170  inline const Aws::String& GetPath() const{ return m_path; }
171 
175  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
176 
180  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
181 
185  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
186 
190  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
191 
195  inline Resource& WithPath(const Aws::String& value) { SetPath(value); return *this;}
196 
200  inline Resource& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
201 
205  inline Resource& WithPath(const char* value) { SetPath(value); return *this;}
206 
207 
282  inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const{ return m_resourceMethods; }
283 
358  inline bool ResourceMethodsHasBeenSet() const { return m_resourceMethodsHasBeenSet; }
359 
434  inline void SetResourceMethods(const Aws::Map<Aws::String, Method>& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = value; }
435 
510  inline void SetResourceMethods(Aws::Map<Aws::String, Method>&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods = std::move(value); }
511 
586  inline Resource& WithResourceMethods(const Aws::Map<Aws::String, Method>& value) { SetResourceMethods(value); return *this;}
587 
662  inline Resource& WithResourceMethods(Aws::Map<Aws::String, Method>&& value) { SetResourceMethods(std::move(value)); return *this;}
663 
738  inline Resource& AddResourceMethods(const Aws::String& key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, value); return *this; }
739 
814  inline Resource& AddResourceMethods(Aws::String&& key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::move(key), value); return *this; }
815 
890  inline Resource& AddResourceMethods(const Aws::String& key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, std::move(value)); return *this; }
891 
966  inline Resource& AddResourceMethods(Aws::String&& key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(std::move(key), std::move(value)); return *this; }
967 
1042  inline Resource& AddResourceMethods(const char* key, Method&& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, std::move(value)); return *this; }
1043 
1118  inline Resource& AddResourceMethods(const char* key, const Method& value) { m_resourceMethodsHasBeenSet = true; m_resourceMethods.emplace(key, value); return *this; }
1119 
1120  private:
1121 
1122  Aws::String m_id;
1123  bool m_idHasBeenSet;
1124 
1125  Aws::String m_parentId;
1126  bool m_parentIdHasBeenSet;
1127 
1128  Aws::String m_pathPart;
1129  bool m_pathPartHasBeenSet;
1130 
1131  Aws::String m_path;
1132  bool m_pathHasBeenSet;
1133 
1134  Aws::Map<Aws::String, Method> m_resourceMethods;
1135  bool m_resourceMethodsHasBeenSet;
1136  };
1137 
1138 } // namespace Model
1139 } // namespace APIGateway
1140 } // namespace Aws
Aws::APIGateway::Model::Resource::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Resource.h:52
Aws::APIGateway::Model::Resource::SetResourceMethods
void SetResourceMethods(const Aws::Map< Aws::String, Method > &value)
Definition: Resource.h:434
Aws::APIGateway::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Resource::WithPathPart
Resource & WithPathPart(const char *value)
Definition: Resource.h:164
Aws::APIGateway::Model::Resource::SetPathPart
void SetPathPart(Aws::String &&value)
Definition: Resource.h:144
Aws::APIGateway::Model::Resource::SetPath
void SetPath(const char *value)
Definition: Resource.h:190
Aws::APIGateway::Model::Resource::WithResourceMethods
Resource & WithResourceMethods(Aws::Map< Aws::String, Method > &&value)
Definition: Resource.h:662
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::Resource::SetPath
void SetPath(Aws::String &&value)
Definition: Resource.h:185
Aws::APIGateway::Model::Resource::SetId
void SetId(Aws::String &&value)
Definition: Resource.h:62
Aws::APIGateway::Model::Resource::WithParentId
Resource & WithParentId(const Aws::String &value)
Definition: Resource.h:113
Aws::APIGateway::Model::Resource::GetResourceMethods
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
Definition: Resource.h:282
Aws::APIGateway::Model::Resource::WithParentId
Resource & WithParentId(Aws::String &&value)
Definition: Resource.h:118
APIGateway_EXPORTS.h
Aws::APIGateway::Model::Resource::SetPath
void SetPath(const Aws::String &value)
Definition: Resource.h:180
Aws::APIGateway::Model::Resource::WithId
Resource & WithId(const Aws::String &value)
Definition: Resource.h:72
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(const char *key, Method &&value)
Definition: Resource.h:1042
Aws::APIGateway::Model::Resource::WithParentId
Resource & WithParentId(const char *value)
Definition: Resource.h:123
Aws::APIGateway::Model::Resource::GetPathPart
const Aws::String & GetPathPart() const
Definition: Resource.h:129
Aws::APIGateway::Model::Resource::SetResourceMethods
void SetResourceMethods(Aws::Map< Aws::String, Method > &&value)
Definition: Resource.h:510
Aws::APIGateway::Model::Resource
Definition: Resource.h:36
Aws::APIGateway::Model::Resource::WithId
Resource & WithId(const char *value)
Definition: Resource.h:82
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(Aws::String &&key, Method &&value)
Definition: Resource.h:966
Aws::APIGateway::Model::Resource::SetParentId
void SetParentId(Aws::String &&value)
Definition: Resource.h:103
Method.h
Aws::APIGateway::Model::Resource::SetId
void SetId(const char *value)
Definition: Resource.h:67
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::APIGateway::Model::Resource::PathPartHasBeenSet
bool PathPartHasBeenSet() const
Definition: Resource.h:134
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::Resource::WithResourceMethods
Resource & WithResourceMethods(const Aws::Map< Aws::String, Method > &value)
Definition: Resource.h:586
Aws::APIGateway::Model::Resource::WithPathPart
Resource & WithPathPart(Aws::String &&value)
Definition: Resource.h:159
Aws::APIGateway::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::Resource::SetPathPart
void SetPathPart(const Aws::String &value)
Definition: Resource.h:139
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(Aws::String &&key, const Method &value)
Definition: Resource.h:814
Aws::APIGateway::Model::Resource::ResourceMethodsHasBeenSet
bool ResourceMethodsHasBeenSet() const
Definition: Resource.h:358
Aws::APIGateway::Model::Method
Definition: Method.h:121
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(const Aws::String &key, const Method &value)
Definition: Resource.h:738
Aws::APIGateway::Model::Resource::WithPath
Resource & WithPath(const char *value)
Definition: Resource.h:205
Aws::APIGateway::Model::Resource::WithId
Resource & WithId(Aws::String &&value)
Definition: Resource.h:77
Aws::APIGateway::Model::Resource::SetPathPart
void SetPathPart(const char *value)
Definition: Resource.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::Resource::GetId
const Aws::String & GetId() const
Definition: Resource.h:47
Aws::APIGateway::Model::Resource::SetParentId
void SetParentId(const char *value)
Definition: Resource.h:108
Aws::APIGateway::Model::Resource::PathHasBeenSet
bool PathHasBeenSet() const
Definition: Resource.h:175
Aws::APIGateway::Model::Resource::SetParentId
void SetParentId(const Aws::String &value)
Definition: Resource.h:98
Aws::APIGateway::Model::Resource::WithPath
Resource & WithPath(const Aws::String &value)
Definition: Resource.h:195
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(const Aws::String &key, Method &&value)
Definition: Resource.h:890
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::Resource::Resource
Resource()
Aws::APIGateway::Model::Resource::GetParentId
const Aws::String & GetParentId() const
Definition: Resource.h:88
Aws::APIGateway::Model::Resource::SetId
void SetId(const Aws::String &value)
Definition: Resource.h:57
Aws::APIGateway::Model::Resource::WithPathPart
Resource & WithPathPart(const Aws::String &value)
Definition: Resource.h:154
Aws::APIGateway::Model::Resource::ParentIdHasBeenSet
bool ParentIdHasBeenSet() const
Definition: Resource.h:93
Aws::APIGateway::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::Resource::AddResourceMethods
Resource & AddResourceMethods(const char *key, const Method &value)
Definition: Resource.h:1118
Aws::APIGateway::Model::Resource::GetPath
const Aws::String & GetPath() const
Definition: Resource.h:170
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::Resource::WithPath
Resource & WithPath(Aws::String &&value)
Definition: Resource.h:200