AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ImportDocumentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qapps/QAppsRequest.h>
9#include <aws/qapps/QApps_EXPORTS.h>
10#include <aws/qapps/model/DocumentScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QApps {
16namespace Model {
17
21 public:
22 AWS_QAPPS_API ImportDocumentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ImportDocument"; }
29
30 AWS_QAPPS_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCardId() const { return m_cardId; }
58 inline bool CardIdHasBeenSet() const { return m_cardIdHasBeenSet; }
59 template <typename CardIdT = Aws::String>
60 void SetCardId(CardIdT&& value) {
61 m_cardIdHasBeenSet = true;
62 m_cardId = std::forward<CardIdT>(value);
63 }
64 template <typename CardIdT = Aws::String>
66 SetCardId(std::forward<CardIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAppId() const { return m_appId; }
76 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
77 template <typename AppIdT = Aws::String>
78 void SetAppId(AppIdT&& value) {
79 m_appIdHasBeenSet = true;
80 m_appId = std::forward<AppIdT>(value);
81 }
82 template <typename AppIdT = Aws::String>
84 SetAppId(std::forward<AppIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFileContentsBase64() const { return m_fileContentsBase64; }
94 inline bool FileContentsBase64HasBeenSet() const { return m_fileContentsBase64HasBeenSet; }
95 template <typename FileContentsBase64T = Aws::String>
97 m_fileContentsBase64HasBeenSet = true;
98 m_fileContentsBase64 = std::forward<FileContentsBase64T>(value);
99 }
100 template <typename FileContentsBase64T = Aws::String>
102 SetFileContentsBase64(std::forward<FileContentsBase64T>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetFileName() const { return m_fileName; }
112 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
113 template <typename FileNameT = Aws::String>
114 void SetFileName(FileNameT&& value) {
115 m_fileNameHasBeenSet = true;
116 m_fileName = std::forward<FileNameT>(value);
117 }
118 template <typename FileNameT = Aws::String>
120 SetFileName(std::forward<FileNameT>(value));
121 return *this;
122 }
124
126
130 inline DocumentScope GetScope() const { return m_scope; }
131 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
132 inline void SetScope(DocumentScope value) {
133 m_scopeHasBeenSet = true;
134 m_scope = value;
135 }
137 SetScope(value);
138 return *this;
139 }
141
143
147 inline const Aws::String& GetSessionId() const { return m_sessionId; }
148 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
149 template <typename SessionIdT = Aws::String>
150 void SetSessionId(SessionIdT&& value) {
151 m_sessionIdHasBeenSet = true;
152 m_sessionId = std::forward<SessionIdT>(value);
153 }
154 template <typename SessionIdT = Aws::String>
156 SetSessionId(std::forward<SessionIdT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_instanceId;
162
163 Aws::String m_cardId;
164
165 Aws::String m_appId;
166
167 Aws::String m_fileContentsBase64;
168
169 Aws::String m_fileName;
170
172
173 Aws::String m_sessionId;
174 bool m_instanceIdHasBeenSet = false;
175 bool m_cardIdHasBeenSet = false;
176 bool m_appIdHasBeenSet = false;
177 bool m_fileContentsBase64HasBeenSet = false;
178 bool m_fileNameHasBeenSet = false;
179 bool m_scopeHasBeenSet = false;
180 bool m_sessionIdHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace QApps
185} // namespace Aws
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportDocumentRequest & WithSessionId(SessionIdT &&value)
ImportDocumentRequest & WithFileName(FileNameT &&value)
virtual const char * GetServiceRequestName() const override
ImportDocumentRequest & WithScope(DocumentScope value)
AWS_QAPPS_API ImportDocumentRequest()=default
void SetFileContentsBase64(FileContentsBase64T &&value)
ImportDocumentRequest & WithFileContentsBase64(FileContentsBase64T &&value)
ImportDocumentRequest & WithAppId(AppIdT &&value)
AWS_QAPPS_API Aws::String SerializePayload() const override
ImportDocumentRequest & WithInstanceId(InstanceIdT &&value)
const Aws::String & GetFileContentsBase64() const
ImportDocumentRequest & WithCardId(CardIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String