AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetFolderResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/WorkDocs_EXPORTS.h>
11#include <aws/workdocs/model/FolderMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace WorkDocs {
25namespace Model {
27 public:
28 AWS_WORKDOCS_API GetFolderResult() = default;
31
33
36 inline const FolderMetadata& GetMetadata() const { return m_metadata; }
37 template <typename MetadataT = FolderMetadata>
38 void SetMetadata(MetadataT&& value) {
39 m_metadataHasBeenSet = true;
40 m_metadata = std::forward<MetadataT>(value);
41 }
42 template <typename MetadataT = FolderMetadata>
43 GetFolderResult& WithMetadata(MetadataT&& value) {
44 SetMetadata(std::forward<MetadataT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const { return m_customMetadata; }
54 template <typename CustomMetadataT = Aws::Map<Aws::String, Aws::String>>
55 void SetCustomMetadata(CustomMetadataT&& value) {
56 m_customMetadataHasBeenSet = true;
57 m_customMetadata = std::forward<CustomMetadataT>(value);
58 }
59 template <typename CustomMetadataT = Aws::Map<Aws::String, Aws::String>>
60 GetFolderResult& WithCustomMetadata(CustomMetadataT&& value) {
61 SetCustomMetadata(std::forward<CustomMetadataT>(value));
62 return *this;
63 }
64 template <typename CustomMetadataKeyT = Aws::String, typename CustomMetadataValueT = Aws::String>
65 GetFolderResult& AddCustomMetadata(CustomMetadataKeyT&& key, CustomMetadataValueT&& value) {
66 m_customMetadataHasBeenSet = true;
67 m_customMetadata.emplace(std::forward<CustomMetadataKeyT>(key), std::forward<CustomMetadataValueT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
81 GetFolderResult& WithRequestId(RequestIdT&& value) {
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 FolderMetadata m_metadata;
90
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_metadataHasBeenSet = false;
96 bool m_customMetadataHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace WorkDocs
102} // namespace Aws
AWS_WORKDOCS_API GetFolderResult()=default
void SetRequestId(RequestIdT &&value)
AWS_WORKDOCS_API GetFolderResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFolderResult & WithRequestId(RequestIdT &&value)
void SetCustomMetadata(CustomMetadataT &&value)
GetFolderResult & WithMetadata(MetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomMetadata() const
const Aws::String & GetRequestId() const
GetFolderResult & WithCustomMetadata(CustomMetadataT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_WORKDOCS_API GetFolderResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFolderResult & AddCustomMetadata(CustomMetadataKeyT &&key, CustomMetadataValueT &&value)
const FolderMetadata & GetMetadata() const
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