/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetFolderResult { public: AWS_WORKDOCS_API GetFolderResult(); AWS_WORKDOCS_API GetFolderResult(const Aws::AmazonWebServiceResult& result); AWS_WORKDOCS_API GetFolderResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The metadata of the folder.

*/ inline const FolderMetadata& GetMetadata() const{ return m_metadata; } /** *

The metadata of the folder.

*/ inline void SetMetadata(const FolderMetadata& value) { m_metadata = value; } /** *

The metadata of the folder.

*/ inline void SetMetadata(FolderMetadata&& value) { m_metadata = std::move(value); } /** *

The metadata of the folder.

*/ inline GetFolderResult& WithMetadata(const FolderMetadata& value) { SetMetadata(value); return *this;} /** *

The metadata of the folder.

*/ inline GetFolderResult& WithMetadata(FolderMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *

The custom metadata on the folder.

*/ inline const Aws::Map& GetCustomMetadata() const{ return m_customMetadata; } /** *

The custom metadata on the folder.

*/ inline void SetCustomMetadata(const Aws::Map& value) { m_customMetadata = value; } /** *

The custom metadata on the folder.

*/ inline void SetCustomMetadata(Aws::Map&& value) { m_customMetadata = std::move(value); } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& WithCustomMetadata(const Aws::Map& value) { SetCustomMetadata(value); return *this;} /** *

The custom metadata on the folder.

*/ inline GetFolderResult& WithCustomMetadata(Aws::Map&& value) { SetCustomMetadata(std::move(value)); return *this;} /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadata.emplace(key, value); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadata.emplace(std::move(key), value); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadata.emplace(std::move(key), std::move(value)); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadata.emplace(std::move(key), value); return *this; } /** *

The custom metadata on the folder.

*/ inline GetFolderResult& AddCustomMetadata(const char* key, const char* value) { m_customMetadata.emplace(key, 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 GetFolderResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFolderResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFolderResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: FolderMetadata m_metadata; Aws::Map m_customMetadata; Aws::String m_requestId; }; } // namespace Model } // namespace WorkDocs } // namespace Aws