AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetFolderResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/FileReference.h>
9#include <aws/amplifygen3/model/FolderReference.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace AmplifyGen3 {
26namespace Model {
28 public:
29 AWS_AMPLIFYGEN3_API GetFolderResult() = default;
32
34
37 inline const Aws::String& GetFolderPath() const { return m_folderPath; }
38 template <typename FolderPathT = Aws::String>
39 void SetFolderPath(FolderPathT&& value) {
40 m_folderPathHasBeenSet = true;
41 m_folderPath = std::forward<FolderPathT>(value);
42 }
43 template <typename FolderPathT = Aws::String>
44 GetFolderResult& WithFolderPath(FolderPathT&& value) {
45 SetFolderPath(std::forward<FolderPathT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<FolderReference>& GetSubFolders() const { return m_subFolders; }
55 template <typename SubFoldersT = Aws::Vector<FolderReference>>
56 void SetSubFolders(SubFoldersT&& value) {
57 m_subFoldersHasBeenSet = true;
58 m_subFolders = std::forward<SubFoldersT>(value);
59 }
60 template <typename SubFoldersT = Aws::Vector<FolderReference>>
61 GetFolderResult& WithSubFolders(SubFoldersT&& value) {
62 SetSubFolders(std::forward<SubFoldersT>(value));
63 return *this;
64 }
65 template <typename SubFoldersT = FolderReference>
66 GetFolderResult& AddSubFolders(SubFoldersT&& value) {
67 m_subFoldersHasBeenSet = true;
68 m_subFolders.emplace_back(std::forward<SubFoldersT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<FileReference>& GetFiles() const { return m_files; }
78 template <typename FilesT = Aws::Vector<FileReference>>
79 void SetFiles(FilesT&& value) {
80 m_filesHasBeenSet = true;
81 m_files = std::forward<FilesT>(value);
82 }
83 template <typename FilesT = Aws::Vector<FileReference>>
84 GetFolderResult& WithFiles(FilesT&& value) {
85 SetFiles(std::forward<FilesT>(value));
86 return *this;
87 }
88 template <typename FilesT = FileReference>
89 GetFolderResult& AddFiles(FilesT&& value) {
90 m_filesHasBeenSet = true;
91 m_files.emplace_back(std::forward<FilesT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
105 GetFolderResult& WithRequestId(RequestIdT&& value) {
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
113 Aws::String m_folderPath;
114
115 Aws::Vector<FolderReference> m_subFolders;
116
118
119 Aws::String m_requestId;
120 Aws::Http::HttpResponseCode m_HttpResponseCode;
121 bool m_folderPathHasBeenSet = false;
122 bool m_subFoldersHasBeenSet = false;
123 bool m_filesHasBeenSet = false;
124 bool m_requestIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace AmplifyGen3
129} // namespace Aws
AWS_AMPLIFYGEN3_API GetFolderResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFolderPath(FolderPathT &&value)
GetFolderResult & WithFolderPath(FolderPathT &&value)
AWS_AMPLIFYGEN3_API GetFolderResult()=default
GetFolderResult & AddSubFolders(SubFoldersT &&value)
AWS_AMPLIFYGEN3_API GetFolderResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFolderResult & AddFiles(FilesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< FolderReference > & GetSubFolders() const
const Aws::Vector< FileReference > & GetFiles() const
void SetSubFolders(SubFoldersT &&value)
const Aws::String & GetRequestId() const
GetFolderResult & WithFiles(FilesT &&value)
const Aws::String & GetFolderPath() const
GetFolderResult & WithRequestId(RequestIdT &&value)
GetFolderResult & WithSubFolders(SubFoldersT &&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