/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkDocs { namespace Model { /** *

List of Documents, Folders, Comments, and Document Versions matching the * query.

See Also:

AWS * API Reference

*/ class ResponseItem { public: AWS_WORKDOCS_API ResponseItem(); AWS_WORKDOCS_API ResponseItem(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API ResponseItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of item being returned.

*/ inline const ResponseItemType& GetResourceType() const{ return m_resourceType; } /** *

The type of item being returned.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of item being returned.

*/ inline void SetResourceType(const ResponseItemType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of item being returned.

*/ inline void SetResourceType(ResponseItemType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of item being returned.

*/ inline ResponseItem& WithResourceType(const ResponseItemType& value) { SetResourceType(value); return *this;} /** *

The type of item being returned.

*/ inline ResponseItem& WithResourceType(ResponseItemType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The webUrl of the item being returned.

*/ inline const Aws::String& GetWebUrl() const{ return m_webUrl; } /** *

The webUrl of the item being returned.

*/ inline bool WebUrlHasBeenSet() const { return m_webUrlHasBeenSet; } /** *

The webUrl of the item being returned.

*/ inline void SetWebUrl(const Aws::String& value) { m_webUrlHasBeenSet = true; m_webUrl = value; } /** *

The webUrl of the item being returned.

*/ inline void SetWebUrl(Aws::String&& value) { m_webUrlHasBeenSet = true; m_webUrl = std::move(value); } /** *

The webUrl of the item being returned.

*/ inline void SetWebUrl(const char* value) { m_webUrlHasBeenSet = true; m_webUrl.assign(value); } /** *

The webUrl of the item being returned.

*/ inline ResponseItem& WithWebUrl(const Aws::String& value) { SetWebUrl(value); return *this;} /** *

The webUrl of the item being returned.

*/ inline ResponseItem& WithWebUrl(Aws::String&& value) { SetWebUrl(std::move(value)); return *this;} /** *

The webUrl of the item being returned.

*/ inline ResponseItem& WithWebUrl(const char* value) { SetWebUrl(value); return *this;} /** *

The document that matches the query.

*/ inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; } /** *

The document that matches the query.

*/ inline bool DocumentMetadataHasBeenSet() const { return m_documentMetadataHasBeenSet; } /** *

The document that matches the query.

*/ inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadataHasBeenSet = true; m_documentMetadata = value; } /** *

The document that matches the query.

*/ inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadataHasBeenSet = true; m_documentMetadata = std::move(value); } /** *

The document that matches the query.

*/ inline ResponseItem& WithDocumentMetadata(const DocumentMetadata& value) { SetDocumentMetadata(value); return *this;} /** *

The document that matches the query.

*/ inline ResponseItem& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;} /** *

The folder that matches the query.

*/ inline const FolderMetadata& GetFolderMetadata() const{ return m_folderMetadata; } /** *

The folder that matches the query.

*/ inline bool FolderMetadataHasBeenSet() const { return m_folderMetadataHasBeenSet; } /** *

The folder that matches the query.

*/ inline void SetFolderMetadata(const FolderMetadata& value) { m_folderMetadataHasBeenSet = true; m_folderMetadata = value; } /** *

The folder that matches the query.

*/ inline void SetFolderMetadata(FolderMetadata&& value) { m_folderMetadataHasBeenSet = true; m_folderMetadata = std::move(value); } /** *

The folder that matches the query.

*/ inline ResponseItem& WithFolderMetadata(const FolderMetadata& value) { SetFolderMetadata(value); return *this;} /** *

The folder that matches the query.

*/ inline ResponseItem& WithFolderMetadata(FolderMetadata&& value) { SetFolderMetadata(std::move(value)); return *this;} /** *

The comment that matches the query.

*/ inline const CommentMetadata& GetCommentMetadata() const{ return m_commentMetadata; } /** *

The comment that matches the query.

*/ inline bool CommentMetadataHasBeenSet() const { return m_commentMetadataHasBeenSet; } /** *

The comment that matches the query.

*/ inline void SetCommentMetadata(const CommentMetadata& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = value; } /** *

The comment that matches the query.

*/ inline void SetCommentMetadata(CommentMetadata&& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = std::move(value); } /** *

The comment that matches the query.

*/ inline ResponseItem& WithCommentMetadata(const CommentMetadata& value) { SetCommentMetadata(value); return *this;} /** *

The comment that matches the query.

*/ inline ResponseItem& WithCommentMetadata(CommentMetadata&& value) { SetCommentMetadata(std::move(value)); return *this;} /** *

The document version that matches the metadata.

*/ inline const DocumentVersionMetadata& GetDocumentVersionMetadata() const{ return m_documentVersionMetadata; } /** *

The document version that matches the metadata.

*/ inline bool DocumentVersionMetadataHasBeenSet() const { return m_documentVersionMetadataHasBeenSet; } /** *

The document version that matches the metadata.

*/ inline void SetDocumentVersionMetadata(const DocumentVersionMetadata& value) { m_documentVersionMetadataHasBeenSet = true; m_documentVersionMetadata = value; } /** *

The document version that matches the metadata.

*/ inline void SetDocumentVersionMetadata(DocumentVersionMetadata&& value) { m_documentVersionMetadataHasBeenSet = true; m_documentVersionMetadata = std::move(value); } /** *

The document version that matches the metadata.

*/ inline ResponseItem& WithDocumentVersionMetadata(const DocumentVersionMetadata& value) { SetDocumentVersionMetadata(value); return *this;} /** *

The document version that matches the metadata.

*/ inline ResponseItem& WithDocumentVersionMetadata(DocumentVersionMetadata&& value) { SetDocumentVersionMetadata(std::move(value)); return *this;} private: ResponseItemType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_webUrl; bool m_webUrlHasBeenSet = false; DocumentMetadata m_documentMetadata; bool m_documentMetadataHasBeenSet = false; FolderMetadata m_folderMetadata; bool m_folderMetadataHasBeenSet = false; CommentMetadata m_commentMetadata; bool m_commentMetadataHasBeenSet = false; DocumentVersionMetadata m_documentVersionMetadata; bool m_documentVersionMetadataHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws