AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFolderResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codecommit/model/Folder.h>
11#include <aws/codecommit/model/File.h>
12#include <aws/codecommit/model/SymbolicLink.h>
13#include <aws/codecommit/model/SubModule.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CodeCommit
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CODECOMMIT_API GetFolderResult();
38
39
41
45 inline const Aws::String& GetCommitId() const{ return m_commitId; }
46 inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
47 inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
48 inline void SetCommitId(const char* value) { m_commitId.assign(value); }
49 inline GetFolderResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
50 inline GetFolderResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
51 inline GetFolderResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
53
55
58 inline const Aws::String& GetFolderPath() const{ return m_folderPath; }
59 inline void SetFolderPath(const Aws::String& value) { m_folderPath = value; }
60 inline void SetFolderPath(Aws::String&& value) { m_folderPath = std::move(value); }
61 inline void SetFolderPath(const char* value) { m_folderPath.assign(value); }
62 inline GetFolderResult& WithFolderPath(const Aws::String& value) { SetFolderPath(value); return *this;}
63 inline GetFolderResult& WithFolderPath(Aws::String&& value) { SetFolderPath(std::move(value)); return *this;}
64 inline GetFolderResult& WithFolderPath(const char* value) { SetFolderPath(value); return *this;}
66
68
72 inline const Aws::String& GetTreeId() const{ return m_treeId; }
73 inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
74 inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
75 inline void SetTreeId(const char* value) { m_treeId.assign(value); }
76 inline GetFolderResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
77 inline GetFolderResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
78 inline GetFolderResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
80
82
85 inline const Aws::Vector<Folder>& GetSubFolders() const{ return m_subFolders; }
86 inline void SetSubFolders(const Aws::Vector<Folder>& value) { m_subFolders = value; }
87 inline void SetSubFolders(Aws::Vector<Folder>&& value) { m_subFolders = std::move(value); }
88 inline GetFolderResult& WithSubFolders(const Aws::Vector<Folder>& value) { SetSubFolders(value); return *this;}
89 inline GetFolderResult& WithSubFolders(Aws::Vector<Folder>&& value) { SetSubFolders(std::move(value)); return *this;}
90 inline GetFolderResult& AddSubFolders(const Folder& value) { m_subFolders.push_back(value); return *this; }
91 inline GetFolderResult& AddSubFolders(Folder&& value) { m_subFolders.push_back(std::move(value)); return *this; }
93
95
98 inline const Aws::Vector<File>& GetFiles() const{ return m_files; }
99 inline void SetFiles(const Aws::Vector<File>& value) { m_files = value; }
100 inline void SetFiles(Aws::Vector<File>&& value) { m_files = std::move(value); }
101 inline GetFolderResult& WithFiles(const Aws::Vector<File>& value) { SetFiles(value); return *this;}
102 inline GetFolderResult& WithFiles(Aws::Vector<File>&& value) { SetFiles(std::move(value)); return *this;}
103 inline GetFolderResult& AddFiles(const File& value) { m_files.push_back(value); return *this; }
104 inline GetFolderResult& AddFiles(File&& value) { m_files.push_back(std::move(value)); return *this; }
106
108
112 inline const Aws::Vector<SymbolicLink>& GetSymbolicLinks() const{ return m_symbolicLinks; }
113 inline void SetSymbolicLinks(const Aws::Vector<SymbolicLink>& value) { m_symbolicLinks = value; }
114 inline void SetSymbolicLinks(Aws::Vector<SymbolicLink>&& value) { m_symbolicLinks = std::move(value); }
116 inline GetFolderResult& WithSymbolicLinks(Aws::Vector<SymbolicLink>&& value) { SetSymbolicLinks(std::move(value)); return *this;}
117 inline GetFolderResult& AddSymbolicLinks(const SymbolicLink& value) { m_symbolicLinks.push_back(value); return *this; }
118 inline GetFolderResult& AddSymbolicLinks(SymbolicLink&& value) { m_symbolicLinks.push_back(std::move(value)); return *this; }
120
122
125 inline const Aws::Vector<SubModule>& GetSubModules() const{ return m_subModules; }
126 inline void SetSubModules(const Aws::Vector<SubModule>& value) { m_subModules = value; }
127 inline void SetSubModules(Aws::Vector<SubModule>&& value) { m_subModules = std::move(value); }
128 inline GetFolderResult& WithSubModules(const Aws::Vector<SubModule>& value) { SetSubModules(value); return *this;}
129 inline GetFolderResult& WithSubModules(Aws::Vector<SubModule>&& value) { SetSubModules(std::move(value)); return *this;}
130 inline GetFolderResult& AddSubModules(const SubModule& value) { m_subModules.push_back(value); return *this; }
131 inline GetFolderResult& AddSubModules(SubModule&& value) { m_subModules.push_back(std::move(value)); return *this; }
133
135
136 inline const Aws::String& GetRequestId() const{ return m_requestId; }
137 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
138 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
139 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
140 inline GetFolderResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
141 inline GetFolderResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
142 inline GetFolderResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
144 private:
145
146 Aws::String m_commitId;
147
148 Aws::String m_folderPath;
149
150 Aws::String m_treeId;
151
152 Aws::Vector<Folder> m_subFolders;
153
154 Aws::Vector<File> m_files;
155
156 Aws::Vector<SymbolicLink> m_symbolicLinks;
157
158 Aws::Vector<SubModule> m_subModules;
159
160 Aws::String m_requestId;
161 };
162
163} // namespace Model
164} // namespace CodeCommit
165} // namespace Aws
GetFolderResult & WithSubFolders(const Aws::Vector< Folder > &value)
GetFolderResult & WithTreeId(const char *value)
void SetFolderPath(Aws::String &&value)
const Aws::String & GetFolderPath() const
GetFolderResult & AddSubModules(SubModule &&value)
const Aws::Vector< File > & GetFiles() const
GetFolderResult & AddSubModules(const SubModule &value)
const Aws::String & GetCommitId() const
GetFolderResult & WithFiles(Aws::Vector< File > &&value)
const Aws::Vector< SymbolicLink > & GetSymbolicLinks() const
void SetSubModules(const Aws::Vector< SubModule > &value)
void SetSubModules(Aws::Vector< SubModule > &&value)
const Aws::String & GetRequestId() const
const Aws::Vector< SubModule > & GetSubModules() const
GetFolderResult & AddSymbolicLinks(SymbolicLink &&value)
void SetRequestId(const Aws::String &value)
GetFolderResult & WithCommitId(const Aws::String &value)
void SetFiles(Aws::Vector< File > &&value)
GetFolderResult & WithFolderPath(const Aws::String &value)
GetFolderResult & WithFolderPath(const char *value)
void SetCommitId(const Aws::String &value)
GetFolderResult & WithFiles(const Aws::Vector< File > &value)
void SetSubFolders(Aws::Vector< Folder > &&value)
void SetCommitId(Aws::String &&value)
GetFolderResult & WithSymbolicLinks(Aws::Vector< SymbolicLink > &&value)
GetFolderResult & AddSubFolders(const Folder &value)
GetFolderResult & WithSymbolicLinks(const Aws::Vector< SymbolicLink > &value)
GetFolderResult & WithTreeId(Aws::String &&value)
AWS_CODECOMMIT_API GetFolderResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSymbolicLinks(Aws::Vector< SymbolicLink > &&value)
GetFolderResult & AddFiles(File &&value)
GetFolderResult & WithTreeId(const Aws::String &value)
GetFolderResult & AddSubFolders(Folder &&value)
GetFolderResult & WithRequestId(const Aws::String &value)
AWS_CODECOMMIT_API GetFolderResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTreeId(const Aws::String &value)
GetFolderResult & AddFiles(const File &value)
GetFolderResult & WithSubModules(const Aws::Vector< SubModule > &value)
GetFolderResult & AddSymbolicLinks(const SymbolicLink &value)
GetFolderResult & WithCommitId(const char *value)
GetFolderResult & WithSubFolders(Aws::Vector< Folder > &&value)
void SetFiles(const Aws::Vector< File > &value)
GetFolderResult & WithFolderPath(Aws::String &&value)
void SetSymbolicLinks(const Aws::Vector< SymbolicLink > &value)
GetFolderResult & WithRequestId(Aws::String &&value)
GetFolderResult & WithSubModules(Aws::Vector< SubModule > &&value)
GetFolderResult & WithRequestId(const char *value)
const Aws::String & GetTreeId() const
GetFolderResult & WithCommitId(Aws::String &&value)
void SetFolderPath(const Aws::String &value)
const Aws::Vector< Folder > & GetSubFolders() const
void SetSubFolders(const Aws::Vector< Folder > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue