AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CheckDocumentAccessRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace QBusiness {
18namespace Model {
19
23 public:
24 AWS_QBUSINESS_API CheckDocumentAccessRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CheckDocumentAccess"; }
31
32 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
33
34 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetIndexId() const { return m_indexId; }
62 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
63 template <typename IndexIdT = Aws::String>
64 void SetIndexId(IndexIdT&& value) {
65 m_indexIdHasBeenSet = true;
66 m_indexId = std::forward<IndexIdT>(value);
67 }
68 template <typename IndexIdT = Aws::String>
70 SetIndexId(std::forward<IndexIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetUserId() const { return m_userId; }
81 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
82 template <typename UserIdT = Aws::String>
83 void SetUserId(UserIdT&& value) {
84 m_userIdHasBeenSet = true;
85 m_userId = std::forward<UserIdT>(value);
86 }
87 template <typename UserIdT = Aws::String>
89 SetUserId(std::forward<UserIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetDocumentId() const { return m_documentId; }
100 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
101 template <typename DocumentIdT = Aws::String>
103 m_documentIdHasBeenSet = true;
104 m_documentId = std::forward<DocumentIdT>(value);
105 }
106 template <typename DocumentIdT = Aws::String>
108 SetDocumentId(std::forward<DocumentIdT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
121 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
122 template <typename DataSourceIdT = Aws::String>
124 m_dataSourceIdHasBeenSet = true;
125 m_dataSourceId = std::forward<DataSourceIdT>(value);
126 }
127 template <typename DataSourceIdT = Aws::String>
129 SetDataSourceId(std::forward<DataSourceIdT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_applicationId;
135
136 Aws::String m_indexId;
137
138 Aws::String m_userId;
139
140 Aws::String m_documentId;
141
142 Aws::String m_dataSourceId;
143 bool m_applicationIdHasBeenSet = false;
144 bool m_indexIdHasBeenSet = false;
145 bool m_userIdHasBeenSet = false;
146 bool m_documentIdHasBeenSet = false;
147 bool m_dataSourceIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace QBusiness
152} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CheckDocumentAccessRequest & WithDataSourceId(DataSourceIdT &&value)
CheckDocumentAccessRequest & WithDocumentId(DocumentIdT &&value)
AWS_QBUSINESS_API CheckDocumentAccessRequest()=default
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CheckDocumentAccessRequest & WithApplicationId(ApplicationIdT &&value)
CheckDocumentAccessRequest & WithUserId(UserIdT &&value)
CheckDocumentAccessRequest & WithIndexId(IndexIdT &&value)
virtual const char * GetServiceRequestName() const override
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String