AWS SDK for C++  1.8.152
AWS SDK for C++
GetFolderResult.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 template<typename RESULT_TYPE>
19 class AmazonWebServiceResult;
20 
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CodeCommit
29 {
30 namespace Model
31 {
33  {
34  public:
38 
39 
44  inline const Aws::String& GetCommitId() const{ return m_commitId; }
45 
50  inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
51 
56  inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
57 
62  inline void SetCommitId(const char* value) { m_commitId.assign(value); }
63 
68  inline GetFolderResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
69 
74  inline GetFolderResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
75 
80  inline GetFolderResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
81 
82 
86  inline const Aws::String& GetFolderPath() const{ return m_folderPath; }
87 
91  inline void SetFolderPath(const Aws::String& value) { m_folderPath = value; }
92 
96  inline void SetFolderPath(Aws::String&& value) { m_folderPath = std::move(value); }
97 
101  inline void SetFolderPath(const char* value) { m_folderPath.assign(value); }
102 
106  inline GetFolderResult& WithFolderPath(const Aws::String& value) { SetFolderPath(value); return *this;}
107 
111  inline GetFolderResult& WithFolderPath(Aws::String&& value) { SetFolderPath(std::move(value)); return *this;}
112 
116  inline GetFolderResult& WithFolderPath(const char* value) { SetFolderPath(value); return *this;}
117 
118 
123  inline const Aws::String& GetTreeId() const{ return m_treeId; }
124 
129  inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
130 
135  inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
136 
141  inline void SetTreeId(const char* value) { m_treeId.assign(value); }
142 
147  inline GetFolderResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
148 
153  inline GetFolderResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
154 
159  inline GetFolderResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
160 
161 
165  inline const Aws::Vector<Folder>& GetSubFolders() const{ return m_subFolders; }
166 
170  inline void SetSubFolders(const Aws::Vector<Folder>& value) { m_subFolders = value; }
171 
175  inline void SetSubFolders(Aws::Vector<Folder>&& value) { m_subFolders = std::move(value); }
176 
180  inline GetFolderResult& WithSubFolders(const Aws::Vector<Folder>& value) { SetSubFolders(value); return *this;}
181 
185  inline GetFolderResult& WithSubFolders(Aws::Vector<Folder>&& value) { SetSubFolders(std::move(value)); return *this;}
186 
190  inline GetFolderResult& AddSubFolders(const Folder& value) { m_subFolders.push_back(value); return *this; }
191 
195  inline GetFolderResult& AddSubFolders(Folder&& value) { m_subFolders.push_back(std::move(value)); return *this; }
196 
197 
201  inline const Aws::Vector<File>& GetFiles() const{ return m_files; }
202 
206  inline void SetFiles(const Aws::Vector<File>& value) { m_files = value; }
207 
211  inline void SetFiles(Aws::Vector<File>&& value) { m_files = std::move(value); }
212 
216  inline GetFolderResult& WithFiles(const Aws::Vector<File>& value) { SetFiles(value); return *this;}
217 
221  inline GetFolderResult& WithFiles(Aws::Vector<File>&& value) { SetFiles(std::move(value)); return *this;}
222 
226  inline GetFolderResult& AddFiles(const File& value) { m_files.push_back(value); return *this; }
227 
231  inline GetFolderResult& AddFiles(File&& value) { m_files.push_back(std::move(value)); return *this; }
232 
233 
238  inline const Aws::Vector<SymbolicLink>& GetSymbolicLinks() const{ return m_symbolicLinks; }
239 
244  inline void SetSymbolicLinks(const Aws::Vector<SymbolicLink>& value) { m_symbolicLinks = value; }
245 
250  inline void SetSymbolicLinks(Aws::Vector<SymbolicLink>&& value) { m_symbolicLinks = std::move(value); }
251 
256  inline GetFolderResult& WithSymbolicLinks(const Aws::Vector<SymbolicLink>& value) { SetSymbolicLinks(value); return *this;}
257 
262  inline GetFolderResult& WithSymbolicLinks(Aws::Vector<SymbolicLink>&& value) { SetSymbolicLinks(std::move(value)); return *this;}
263 
268  inline GetFolderResult& AddSymbolicLinks(const SymbolicLink& value) { m_symbolicLinks.push_back(value); return *this; }
269 
274  inline GetFolderResult& AddSymbolicLinks(SymbolicLink&& value) { m_symbolicLinks.push_back(std::move(value)); return *this; }
275 
276 
280  inline const Aws::Vector<SubModule>& GetSubModules() const{ return m_subModules; }
281 
285  inline void SetSubModules(const Aws::Vector<SubModule>& value) { m_subModules = value; }
286 
290  inline void SetSubModules(Aws::Vector<SubModule>&& value) { m_subModules = std::move(value); }
291 
295  inline GetFolderResult& WithSubModules(const Aws::Vector<SubModule>& value) { SetSubModules(value); return *this;}
296 
300  inline GetFolderResult& WithSubModules(Aws::Vector<SubModule>&& value) { SetSubModules(std::move(value)); return *this;}
301 
305  inline GetFolderResult& AddSubModules(const SubModule& value) { m_subModules.push_back(value); return *this; }
306 
310  inline GetFolderResult& AddSubModules(SubModule&& value) { m_subModules.push_back(std::move(value)); return *this; }
311 
312  private:
313 
314  Aws::String m_commitId;
315 
316  Aws::String m_folderPath;
317 
318  Aws::String m_treeId;
319 
320  Aws::Vector<Folder> m_subFolders;
321 
322  Aws::Vector<File> m_files;
323 
324  Aws::Vector<SymbolicLink> m_symbolicLinks;
325 
326  Aws::Vector<SubModule> m_subModules;
327  };
328 
329 } // namespace Model
330 } // namespace CodeCommit
331 } // namespace Aws
Aws::CodeCommit::Model::GetFolderResult::SetSubFolders
void SetSubFolders(Aws::Vector< Folder > &&value)
Definition: GetFolderResult.h:175
Aws::CodeCommit::Model::GetFolderResult::WithSymbolicLinks
GetFolderResult & WithSymbolicLinks(Aws::Vector< SymbolicLink > &&value)
Definition: GetFolderResult.h:262
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::SubModule
Definition: SubModule.h:33
Aws::CodeCommit::Model::GetFolderResult::SetCommitId
void SetCommitId(const char *value)
Definition: GetFolderResult.h:62
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::GetFolderResult::AddSubFolders
GetFolderResult & AddSubFolders(const Folder &value)
Definition: GetFolderResult.h:190
Aws::CodeCommit::Model::GetFolderResult::WithFolderPath
GetFolderResult & WithFolderPath(Aws::String &&value)
Definition: GetFolderResult.h:111
File.h
Aws::CodeCommit::Model::GetFolderResult::WithFiles
GetFolderResult & WithFiles(Aws::Vector< File > &&value)
Definition: GetFolderResult.h:221
Aws::CodeCommit::Model::GetFolderResult::AddFiles
GetFolderResult & AddFiles(File &&value)
Definition: GetFolderResult.h:231
Aws::CodeCommit::Model::GetFolderResult::WithSubModules
GetFolderResult & WithSubModules(const Aws::Vector< SubModule > &value)
Definition: GetFolderResult.h:295
Aws::CodeCommit::Model::GetFolderResult::GetCommitId
const Aws::String & GetCommitId() const
Definition: GetFolderResult.h:44
Aws::CodeCommit::Model::GetFolderResult::SetFolderPath
void SetFolderPath(const char *value)
Definition: GetFolderResult.h:101
Aws::CodeCommit::Model::GetFolderResult::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: GetFolderResult.h:135
Aws::CodeCommit::Model::GetFolderResult::SetFolderPath
void SetFolderPath(Aws::String &&value)
Definition: GetFolderResult.h:96
Aws::CodeCommit::Model::GetFolderResult::operator=
GetFolderResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetFolderResult::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: GetFolderResult.h:129
Aws::CodeCommit::Model::GetFolderResult::GetSymbolicLinks
const Aws::Vector< SymbolicLink > & GetSymbolicLinks() const
Definition: GetFolderResult.h:238
Aws::CodeCommit::Model::GetFolderResult::WithSymbolicLinks
GetFolderResult & WithSymbolicLinks(const Aws::Vector< SymbolicLink > &value)
Definition: GetFolderResult.h:256
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::GetFolderResult::WithTreeId
GetFolderResult & WithTreeId(Aws::String &&value)
Definition: GetFolderResult.h:153
Aws::CodeCommit::Model::GetFolderResult::SetSymbolicLinks
void SetSymbolicLinks(Aws::Vector< SymbolicLink > &&value)
Definition: GetFolderResult.h:250
AWSVector.h
Aws::CodeCommit::Model::GetFolderResult::WithSubFolders
GetFolderResult & WithSubFolders(const Aws::Vector< Folder > &value)
Definition: GetFolderResult.h:180
Aws::CodeCommit::Model::GetFolderResult::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: GetFolderResult.h:50
Aws::CodeCommit::Model::GetFolderResult::SetSubModules
void SetSubModules(const Aws::Vector< SubModule > &value)
Definition: GetFolderResult.h:285
Aws::CodeCommit::Model::GetFolderResult::AddSubModules
GetFolderResult & AddSubModules(const SubModule &value)
Definition: GetFolderResult.h:305
Aws::CodeCommit::Model::GetFolderResult::SetFolderPath
void SetFolderPath(const Aws::String &value)
Definition: GetFolderResult.h:91
Aws::CodeCommit::Model::Folder
Definition: Folder.h:33
Aws::CodeCommit::Model::GetFolderResult::AddSymbolicLinks
GetFolderResult & AddSymbolicLinks(SymbolicLink &&value)
Definition: GetFolderResult.h:274
Aws::CodeCommit::Model::GetFolderResult::SetSymbolicLinks
void SetSymbolicLinks(const Aws::Vector< SymbolicLink > &value)
Definition: GetFolderResult.h:244
Aws::CodeCommit::Model::GetFolderResult::SetFiles
void SetFiles(Aws::Vector< File > &&value)
Definition: GetFolderResult.h:211
Aws::CodeCommit::Model::GetFolderResult::GetFiles
const Aws::Vector< File > & GetFiles() const
Definition: GetFolderResult.h:201
Aws::CodeCommit::Model::GetFolderResult::AddSubModules
GetFolderResult & AddSubModules(SubModule &&value)
Definition: GetFolderResult.h:310
Aws::CodeCommit::Model::GetFolderResult::AddSymbolicLinks
GetFolderResult & AddSymbolicLinks(const SymbolicLink &value)
Definition: GetFolderResult.h:268
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::GetFolderResult::WithTreeId
GetFolderResult & WithTreeId(const char *value)
Definition: GetFolderResult.h:159
Aws::CodeCommit::Model::GetFolderResult::WithFiles
GetFolderResult & WithFiles(const Aws::Vector< File > &value)
Definition: GetFolderResult.h:216
Aws::CodeCommit::Model::GetFolderResult::WithSubModules
GetFolderResult & WithSubModules(Aws::Vector< SubModule > &&value)
Definition: GetFolderResult.h:300
Aws::CodeCommit::Model::GetFolderResult::WithFolderPath
GetFolderResult & WithFolderPath(const char *value)
Definition: GetFolderResult.h:116
Aws::CodeCommit::Model::File
Definition: File.h:33
SubModule.h
Aws::CodeCommit::Model::GetFolderResult::AddFiles
GetFolderResult & AddFiles(const File &value)
Definition: GetFolderResult.h:226
Aws::CodeCommit::Model::GetFolderResult::WithCommitId
GetFolderResult & WithCommitId(const char *value)
Definition: GetFolderResult.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::GetFolderResult::GetFolderResult
GetFolderResult()
Aws::CodeCommit::Model::GetFolderResult::WithCommitId
GetFolderResult & WithCommitId(Aws::String &&value)
Definition: GetFolderResult.h:74
Folder.h
Aws::CodeCommit::Model::GetFolderResult::WithSubFolders
GetFolderResult & WithSubFolders(Aws::Vector< Folder > &&value)
Definition: GetFolderResult.h:185
Aws::CodeCommit::Model::GetFolderResult::GetFolderPath
const Aws::String & GetFolderPath() const
Definition: GetFolderResult.h:86
Aws::CodeCommit::Model::GetFolderResult::GetSubFolders
const Aws::Vector< Folder > & GetSubFolders() const
Definition: GetFolderResult.h:165
Aws::CodeCommit::Model::GetFolderResult::WithCommitId
GetFolderResult & WithCommitId(const Aws::String &value)
Definition: GetFolderResult.h:68
Aws::CodeCommit::Model::GetFolderResult::GetSubModules
const Aws::Vector< SubModule > & GetSubModules() const
Definition: GetFolderResult.h:280
Aws::CodeCommit::Model::GetFolderResult::WithFolderPath
GetFolderResult & WithFolderPath(const Aws::String &value)
Definition: GetFolderResult.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::GetFolderResult::SetFiles
void SetFiles(const Aws::Vector< File > &value)
Definition: GetFolderResult.h:206
Aws::CodeCommit::Model::GetFolderResult::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: GetFolderResult.h:56
Aws::CodeCommit::Model::GetFolderResult::SetTreeId
void SetTreeId(const char *value)
Definition: GetFolderResult.h:141
Aws::CodeCommit::Model::GetFolderResult::SetSubFolders
void SetSubFolders(const Aws::Vector< Folder > &value)
Definition: GetFolderResult.h:170
Aws::CodeCommit::Model::GetFolderResult::GetTreeId
const Aws::String & GetTreeId() const
Definition: GetFolderResult.h:123
Aws::CodeCommit::Model::GetFolderResult::GetFolderResult
GetFolderResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::GetFolderResult::SetSubModules
void SetSubModules(Aws::Vector< SubModule > &&value)
Definition: GetFolderResult.h:290
Aws::CodeCommit::Model::GetFolderResult::WithTreeId
GetFolderResult & WithTreeId(const Aws::String &value)
Definition: GetFolderResult.h:147
Aws::CodeCommit::Model::GetFolderResult
Definition: GetFolderResult.h:33
Aws::CodeCommit::Model::GetFolderResult::AddSubFolders
GetFolderResult & AddSubFolders(Folder &&value)
Definition: GetFolderResult.h:195