AWS SDK for C++  0.12.9
AWS SDK for C++
GetResourceResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
55  inline void SetId(const Aws::String& value) { m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_id = value; }
61 
65  inline void SetId(const char* value) { m_id.assign(value); }
66 
70  inline GetResourceResult& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline GetResourceResult& WithId(Aws::String&& value) { SetId(value); return *this;}
76 
80  inline GetResourceResult& WithId(const char* value) { SetId(value); return *this;}
81 
85  inline const Aws::String& GetParentId() const{ return m_parentId; }
86 
90  inline void SetParentId(const Aws::String& value) { m_parentId = value; }
91 
95  inline void SetParentId(Aws::String&& value) { m_parentId = value; }
96 
100  inline void SetParentId(const char* value) { m_parentId.assign(value); }
101 
105  inline GetResourceResult& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
106 
110  inline GetResourceResult& WithParentId(Aws::String&& value) { SetParentId(value); return *this;}
111 
115  inline GetResourceResult& WithParentId(const char* value) { SetParentId(value); return *this;}
116 
120  inline const Aws::String& GetPathPart() const{ return m_pathPart; }
121 
125  inline void SetPathPart(const Aws::String& value) { m_pathPart = value; }
126 
130  inline void SetPathPart(Aws::String&& value) { m_pathPart = value; }
131 
135  inline void SetPathPart(const char* value) { m_pathPart.assign(value); }
136 
140  inline GetResourceResult& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
141 
145  inline GetResourceResult& WithPathPart(Aws::String&& value) { SetPathPart(value); return *this;}
146 
150  inline GetResourceResult& WithPathPart(const char* value) { SetPathPart(value); return *this;}
151 
155  inline const Aws::String& GetPath() const{ return m_path; }
156 
160  inline void SetPath(const Aws::String& value) { m_path = value; }
161 
165  inline void SetPath(Aws::String&& value) { m_path = value; }
166 
170  inline void SetPath(const char* value) { m_path.assign(value); }
171 
175  inline GetResourceResult& WithPath(const Aws::String& value) { SetPath(value); return *this;}
176 
180  inline GetResourceResult& WithPath(Aws::String&& value) { SetPath(value); return *this;}
181 
185  inline GetResourceResult& WithPath(const char* value) { SetPath(value); return *this;}
186 
191  inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const{ return m_resourceMethods; }
192 
197  inline void SetResourceMethods(const Aws::Map<Aws::String, Method>& value) { m_resourceMethods = value; }
198 
203  inline void SetResourceMethods(Aws::Map<Aws::String, Method>&& value) { m_resourceMethods = value; }
204 
209  inline GetResourceResult& WithResourceMethods(const Aws::Map<Aws::String, Method>& value) { SetResourceMethods(value); return *this;}
210 
215  inline GetResourceResult& WithResourceMethods(Aws::Map<Aws::String, Method>&& value) { SetResourceMethods(value); return *this;}
216 
221  inline GetResourceResult& AddResourceMethods(const Aws::String& key, const Method& value) { m_resourceMethods[key] = value; return *this; }
222 
227  inline GetResourceResult& AddResourceMethods(Aws::String&& key, const Method& value) { m_resourceMethods[key] = value; return *this; }
228 
233  inline GetResourceResult& AddResourceMethods(const Aws::String& key, Method&& value) { m_resourceMethods[key] = value; return *this; }
234 
239  inline GetResourceResult& AddResourceMethods(Aws::String&& key, Method&& value) { m_resourceMethods[key] = value; return *this; }
240 
245  inline GetResourceResult& AddResourceMethods(const char* key, Method&& value) { m_resourceMethods[key] = value; return *this; }
246 
251  inline GetResourceResult& AddResourceMethods(const char* key, const Method& value) { m_resourceMethods[key] = value; return *this; }
252 
253  private:
254  Aws::String m_id;
255  Aws::String m_parentId;
256  Aws::String m_pathPart;
257  Aws::String m_path;
258  Aws::Map<Aws::String, Method> m_resourceMethods;
259  };
260 
261 } // namespace Model
262 } // namespace APIGateway
263 } // namespace Aws
GetResourceResult & WithPathPart(const Aws::String &value)
GetResourceResult & WithPath(const Aws::String &value)
GetResourceResult & WithId(Aws::String &&value)
GetResourceResult & WithResourceMethods(const Aws::Map< Aws::String, Method > &value)
GetResourceResult & WithPathPart(const char *value)
GetResourceResult & WithId(const char *value)
GetResourceResult & AddResourceMethods(const Aws::String &key, const Method &value)
GetResourceResult & AddResourceMethods(const char *key, Method &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetResourceResult & WithParentId(Aws::String &&value)
GetResourceResult & AddResourceMethods(Aws::String &&key, const Method &value)
void SetParentId(const Aws::String &value)
GetResourceResult & AddResourceMethods(const Aws::String &key, Method &&value)
void SetPathPart(const Aws::String &value)
const Aws::String & GetParentId() const
void SetResourceMethods(const Aws::Map< Aws::String, Method > &value)
const Aws::String & GetPathPart() const
void SetPath(const Aws::String &value)
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
GetResourceResult & WithParentId(const Aws::String &value)
GetResourceResult & WithPathPart(Aws::String &&value)
void SetId(const Aws::String &value)
GetResourceResult & WithId(const Aws::String &value)
GetResourceResult & WithParentId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetResourceResult & AddResourceMethods(Aws::String &&key, Method &&value)
GetResourceResult & WithPath(const char *value)
#define AWS_APIGATEWAY_API
GetResourceResult & AddResourceMethods(const char *key, const Method &value)
GetResourceResult & WithPath(Aws::String &&value)
GetResourceResult & WithResourceMethods(Aws::Map< Aws::String, Method > &&value)
JSON (JavaScript Object Notation).
void SetResourceMethods(Aws::Map< Aws::String, Method > &&value)