/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkDocs { namespace Model { class GetResourcesResult { public: AWS_WORKDOCS_API GetResourcesResult(); AWS_WORKDOCS_API GetResourcesResult(const Aws::AmazonWebServiceResult& result); AWS_WORKDOCS_API GetResourcesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The folders in the specified folder.

*/ inline const Aws::Vector& GetFolders() const{ return m_folders; } /** *

The folders in the specified folder.

*/ inline void SetFolders(const Aws::Vector& value) { m_folders = value; } /** *

The folders in the specified folder.

*/ inline void SetFolders(Aws::Vector&& value) { m_folders = std::move(value); } /** *

The folders in the specified folder.

*/ inline GetResourcesResult& WithFolders(const Aws::Vector& value) { SetFolders(value); return *this;} /** *

The folders in the specified folder.

*/ inline GetResourcesResult& WithFolders(Aws::Vector&& value) { SetFolders(std::move(value)); return *this;} /** *

The folders in the specified folder.

*/ inline GetResourcesResult& AddFolders(const FolderMetadata& value) { m_folders.push_back(value); return *this; } /** *

The folders in the specified folder.

*/ inline GetResourcesResult& AddFolders(FolderMetadata&& value) { m_folders.push_back(std::move(value)); return *this; } /** *

The documents in the specified collection.

*/ inline const Aws::Vector& GetDocuments() const{ return m_documents; } /** *

The documents in the specified collection.

*/ inline void SetDocuments(const Aws::Vector& value) { m_documents = value; } /** *

The documents in the specified collection.

*/ inline void SetDocuments(Aws::Vector&& value) { m_documents = std::move(value); } /** *

The documents in the specified collection.

*/ inline GetResourcesResult& WithDocuments(const Aws::Vector& value) { SetDocuments(value); return *this;} /** *

The documents in the specified collection.

*/ inline GetResourcesResult& WithDocuments(Aws::Vector&& value) { SetDocuments(std::move(value)); return *this;} /** *

The documents in the specified collection.

*/ inline GetResourcesResult& AddDocuments(const DocumentMetadata& value) { m_documents.push_back(value); return *this; } /** *

The documents in the specified collection.

*/ inline GetResourcesResult& AddDocuments(DocumentMetadata&& value) { m_documents.push_back(std::move(value)); return *this; } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline void SetMarker(const Aws::String& value) { m_marker = value; } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline GetResourcesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline GetResourcesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline GetResourcesResult& WithMarker(const char* value) { SetMarker(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_folders; Aws::Vector m_documents; Aws::String m_marker; Aws::String m_requestId; }; } // namespace Model } // namespace WorkDocs } // namespace Aws