AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResourceResult.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 CreateResourceResult();
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline void SetId(const Aws::String& value) { m_id = value; }
48 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
49 inline void SetId(const char* value) { m_id.assign(value); }
50 inline CreateResourceResult& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline CreateResourceResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline CreateResourceResult& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::String& GetParentId() const{ return m_parentId; }
60 inline void SetParentId(const Aws::String& value) { m_parentId = value; }
61 inline void SetParentId(Aws::String&& value) { m_parentId = std::move(value); }
62 inline void SetParentId(const char* value) { m_parentId.assign(value); }
63 inline CreateResourceResult& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
64 inline CreateResourceResult& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
65 inline CreateResourceResult& WithParentId(const char* value) { SetParentId(value); return *this;}
67
69
72 inline const Aws::String& GetPathPart() const{ return m_pathPart; }
73 inline void SetPathPart(const Aws::String& value) { m_pathPart = value; }
74 inline void SetPathPart(Aws::String&& value) { m_pathPart = std::move(value); }
75 inline void SetPathPart(const char* value) { m_pathPart.assign(value); }
76 inline CreateResourceResult& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
77 inline CreateResourceResult& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
78 inline CreateResourceResult& WithPathPart(const char* value) { SetPathPart(value); return *this;}
80
82
85 inline const Aws::String& GetPath() const{ return m_path; }
86 inline void SetPath(const Aws::String& value) { m_path = value; }
87 inline void SetPath(Aws::String&& value) { m_path = std::move(value); }
88 inline void SetPath(const char* value) { m_path.assign(value); }
89 inline CreateResourceResult& WithPath(const Aws::String& value) { SetPath(value); return *this;}
90 inline CreateResourceResult& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
91 inline CreateResourceResult& WithPath(const char* value) { SetPath(value); return *this;}
93
95
98 inline const Aws::Map<Aws::String, Method>& GetResourceMethods() const{ return m_resourceMethods; }
99 inline void SetResourceMethods(const Aws::Map<Aws::String, Method>& value) { m_resourceMethods = value; }
100 inline void SetResourceMethods(Aws::Map<Aws::String, Method>&& value) { m_resourceMethods = std::move(value); }
103 inline CreateResourceResult& AddResourceMethods(const Aws::String& key, const Method& value) { m_resourceMethods.emplace(key, value); return *this; }
104 inline CreateResourceResult& AddResourceMethods(Aws::String&& key, const Method& value) { m_resourceMethods.emplace(std::move(key), value); return *this; }
105 inline CreateResourceResult& AddResourceMethods(const Aws::String& key, Method&& value) { m_resourceMethods.emplace(key, std::move(value)); return *this; }
106 inline CreateResourceResult& AddResourceMethods(Aws::String&& key, Method&& value) { m_resourceMethods.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateResourceResult& AddResourceMethods(const char* key, Method&& value) { m_resourceMethods.emplace(key, std::move(value)); return *this; }
108 inline CreateResourceResult& AddResourceMethods(const char* key, const Method& value) { m_resourceMethods.emplace(key, value); return *this; }
110
112
113 inline const Aws::String& GetRequestId() const{ return m_requestId; }
114 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
115 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
116 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
117 inline CreateResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
118 inline CreateResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
119 inline CreateResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
121 private:
122
123 Aws::String m_id;
124
125 Aws::String m_parentId;
126
127 Aws::String m_pathPart;
128
129 Aws::String m_path;
130
131 Aws::Map<Aws::String, Method> m_resourceMethods;
132
133 Aws::String m_requestId;
134 };
135
136} // namespace Model
137} // namespace APIGateway
138} // namespace Aws
CreateResourceResult & WithPath(const Aws::String &value)
CreateResourceResult & AddResourceMethods(const Aws::String &key, const Method &value)
CreateResourceResult & WithParentId(Aws::String &&value)
CreateResourceResult & WithPathPart(Aws::String &&value)
CreateResourceResult & WithRequestId(const Aws::String &value)
CreateResourceResult & WithPathPart(const char *value)
CreateResourceResult & WithPath(const char *value)
CreateResourceResult & WithResourceMethods(Aws::Map< Aws::String, Method > &&value)
CreateResourceResult & WithId(const char *value)
CreateResourceResult & WithRequestId(const char *value)
CreateResourceResult & WithParentId(const Aws::String &value)
CreateResourceResult & AddResourceMethods(Aws::String &&key, const Method &value)
CreateResourceResult & WithId(Aws::String &&value)
AWS_APIGATEWAY_API CreateResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateResourceResult & WithId(const Aws::String &value)
CreateResourceResult & WithPath(Aws::String &&value)
AWS_APIGATEWAY_API CreateResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateResourceResult & AddResourceMethods(const char *key, const Method &value)
void SetResourceMethods(const Aws::Map< Aws::String, Method > &value)
const Aws::Map< Aws::String, Method > & GetResourceMethods() const
CreateResourceResult & AddResourceMethods(const Aws::String &key, Method &&value)
CreateResourceResult & WithResourceMethods(const Aws::Map< Aws::String, Method > &value)
CreateResourceResult & WithParentId(const char *value)
CreateResourceResult & AddResourceMethods(Aws::String &&key, Method &&value)
CreateResourceResult & WithPathPart(const Aws::String &value)
CreateResourceResult & AddResourceMethods(const char *key, Method &&value)
CreateResourceResult & WithRequestId(Aws::String &&value)
void SetResourceMethods(Aws::Map< Aws::String, Method > &&value)
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