AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseItem.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/model/ResponseItemType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/DocumentMetadata.h>
11#include <aws/workdocs/model/FolderMetadata.h>
12#include <aws/workdocs/model/CommentMetadata.h>
13#include <aws/workdocs/model/DocumentVersionMetadata.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace WorkDocs
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_WORKDOCS_API ResponseItem();
41 AWS_WORKDOCS_API ResponseItem(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const ResponseItemType& GetResourceType() const{ return m_resourceType; }
51 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
52 inline void SetResourceType(const ResponseItemType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
53 inline void SetResourceType(ResponseItemType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
54 inline ResponseItem& WithResourceType(const ResponseItemType& value) { SetResourceType(value); return *this;}
55 inline ResponseItem& WithResourceType(ResponseItemType&& value) { SetResourceType(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetWebUrl() const{ return m_webUrl; }
63 inline bool WebUrlHasBeenSet() const { return m_webUrlHasBeenSet; }
64 inline void SetWebUrl(const Aws::String& value) { m_webUrlHasBeenSet = true; m_webUrl = value; }
65 inline void SetWebUrl(Aws::String&& value) { m_webUrlHasBeenSet = true; m_webUrl = std::move(value); }
66 inline void SetWebUrl(const char* value) { m_webUrlHasBeenSet = true; m_webUrl.assign(value); }
67 inline ResponseItem& WithWebUrl(const Aws::String& value) { SetWebUrl(value); return *this;}
68 inline ResponseItem& WithWebUrl(Aws::String&& value) { SetWebUrl(std::move(value)); return *this;}
69 inline ResponseItem& WithWebUrl(const char* value) { SetWebUrl(value); return *this;}
71
73
76 inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; }
77 inline bool DocumentMetadataHasBeenSet() const { return m_documentMetadataHasBeenSet; }
78 inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadataHasBeenSet = true; m_documentMetadata = value; }
79 inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadataHasBeenSet = true; m_documentMetadata = std::move(value); }
80 inline ResponseItem& WithDocumentMetadata(const DocumentMetadata& value) { SetDocumentMetadata(value); return *this;}
81 inline ResponseItem& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;}
83
85
88 inline const FolderMetadata& GetFolderMetadata() const{ return m_folderMetadata; }
89 inline bool FolderMetadataHasBeenSet() const { return m_folderMetadataHasBeenSet; }
90 inline void SetFolderMetadata(const FolderMetadata& value) { m_folderMetadataHasBeenSet = true; m_folderMetadata = value; }
91 inline void SetFolderMetadata(FolderMetadata&& value) { m_folderMetadataHasBeenSet = true; m_folderMetadata = std::move(value); }
92 inline ResponseItem& WithFolderMetadata(const FolderMetadata& value) { SetFolderMetadata(value); return *this;}
93 inline ResponseItem& WithFolderMetadata(FolderMetadata&& value) { SetFolderMetadata(std::move(value)); return *this;}
95
97
100 inline const CommentMetadata& GetCommentMetadata() const{ return m_commentMetadata; }
101 inline bool CommentMetadataHasBeenSet() const { return m_commentMetadataHasBeenSet; }
102 inline void SetCommentMetadata(const CommentMetadata& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = value; }
103 inline void SetCommentMetadata(CommentMetadata&& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = std::move(value); }
104 inline ResponseItem& WithCommentMetadata(const CommentMetadata& value) { SetCommentMetadata(value); return *this;}
105 inline ResponseItem& WithCommentMetadata(CommentMetadata&& value) { SetCommentMetadata(std::move(value)); return *this;}
107
109
112 inline const DocumentVersionMetadata& GetDocumentVersionMetadata() const{ return m_documentVersionMetadata; }
113 inline bool DocumentVersionMetadataHasBeenSet() const { return m_documentVersionMetadataHasBeenSet; }
114 inline void SetDocumentVersionMetadata(const DocumentVersionMetadata& value) { m_documentVersionMetadataHasBeenSet = true; m_documentVersionMetadata = value; }
115 inline void SetDocumentVersionMetadata(DocumentVersionMetadata&& value) { m_documentVersionMetadataHasBeenSet = true; m_documentVersionMetadata = std::move(value); }
119 private:
120
121 ResponseItemType m_resourceType;
122 bool m_resourceTypeHasBeenSet = false;
123
124 Aws::String m_webUrl;
125 bool m_webUrlHasBeenSet = false;
126
127 DocumentMetadata m_documentMetadata;
128 bool m_documentMetadataHasBeenSet = false;
129
130 FolderMetadata m_folderMetadata;
131 bool m_folderMetadataHasBeenSet = false;
132
133 CommentMetadata m_commentMetadata;
134 bool m_commentMetadataHasBeenSet = false;
135
136 DocumentVersionMetadata m_documentVersionMetadata;
137 bool m_documentVersionMetadataHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace WorkDocs
142} // namespace Aws
void SetFolderMetadata(const FolderMetadata &value)
ResponseItem & WithResourceType(const ResponseItemType &value)
ResponseItem & WithDocumentVersionMetadata(const DocumentVersionMetadata &value)
ResponseItem & WithDocumentVersionMetadata(DocumentVersionMetadata &&value)
const DocumentMetadata & GetDocumentMetadata() const
const DocumentVersionMetadata & GetDocumentVersionMetadata() const
ResponseItem & WithWebUrl(Aws::String &&value)
const FolderMetadata & GetFolderMetadata() const
ResponseItem & WithFolderMetadata(const FolderMetadata &value)
ResponseItem & WithResourceType(ResponseItemType &&value)
ResponseItem & WithWebUrl(const char *value)
void SetResourceType(const ResponseItemType &value)
ResponseItem & WithDocumentMetadata(DocumentMetadata &&value)
ResponseItem & WithCommentMetadata(const CommentMetadata &value)
void SetWebUrl(const char *value)
ResponseItem & WithCommentMetadata(CommentMetadata &&value)
ResponseItem & WithDocumentMetadata(const DocumentMetadata &value)
void SetWebUrl(const Aws::String &value)
const Aws::String & GetWebUrl() const
const ResponseItemType & GetResourceType() const
ResponseItem & WithWebUrl(const Aws::String &value)
void SetWebUrl(Aws::String &&value)
const CommentMetadata & GetCommentMetadata() const
AWS_WORKDOCS_API ResponseItem(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentMetadata(const DocumentMetadata &value)
void SetDocumentMetadata(DocumentMetadata &&value)
ResponseItem & WithFolderMetadata(FolderMetadata &&value)
void SetFolderMetadata(FolderMetadata &&value)
AWS_WORKDOCS_API ResponseItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommentMetadata(CommentMetadata &&value)
void SetDocumentVersionMetadata(DocumentVersionMetadata &&value)
void SetResourceType(ResponseItemType &&value)
void SetDocumentVersionMetadata(const DocumentVersionMetadata &value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCommentMetadata(const CommentMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue