AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportDocumentRequest.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/qapps/QAppsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qapps/model/DocumentScope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QApps
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QAPPS_API ImportDocumentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportDocument"; }
32
33 AWS_QAPPS_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 ImportDocumentRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetCardId() const { return m_cardId; }
56 inline bool CardIdHasBeenSet() const { return m_cardIdHasBeenSet; }
57 template<typename CardIdT = Aws::String>
58 void SetCardId(CardIdT&& value) { m_cardIdHasBeenSet = true; m_cardId = std::forward<CardIdT>(value); }
59 template<typename CardIdT = Aws::String>
60 ImportDocumentRequest& WithCardId(CardIdT&& value) { SetCardId(std::forward<CardIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetAppId() const { return m_appId; }
68 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
69 template<typename AppIdT = Aws::String>
70 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
71 template<typename AppIdT = Aws::String>
72 ImportDocumentRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetFileContentsBase64() const { return m_fileContentsBase64; }
80 inline bool FileContentsBase64HasBeenSet() const { return m_fileContentsBase64HasBeenSet; }
81 template<typename FileContentsBase64T = Aws::String>
82 void SetFileContentsBase64(FileContentsBase64T&& value) { m_fileContentsBase64HasBeenSet = true; m_fileContentsBase64 = std::forward<FileContentsBase64T>(value); }
83 template<typename FileContentsBase64T = Aws::String>
84 ImportDocumentRequest& WithFileContentsBase64(FileContentsBase64T&& value) { SetFileContentsBase64(std::forward<FileContentsBase64T>(value)); return *this;}
86
88
91 inline const Aws::String& GetFileName() const { return m_fileName; }
92 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
93 template<typename FileNameT = Aws::String>
94 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
95 template<typename FileNameT = Aws::String>
96 ImportDocumentRequest& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
98
100
104 inline DocumentScope GetScope() const { return m_scope; }
105 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
106 inline void SetScope(DocumentScope value) { m_scopeHasBeenSet = true; m_scope = value; }
107 inline ImportDocumentRequest& WithScope(DocumentScope value) { SetScope(value); return *this;}
109
111
115 inline const Aws::String& GetSessionId() const { return m_sessionId; }
116 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
117 template<typename SessionIdT = Aws::String>
118 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
119 template<typename SessionIdT = Aws::String>
120 ImportDocumentRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
122 private:
123
124 Aws::String m_instanceId;
125 bool m_instanceIdHasBeenSet = false;
126
127 Aws::String m_cardId;
128 bool m_cardIdHasBeenSet = false;
129
130 Aws::String m_appId;
131 bool m_appIdHasBeenSet = false;
132
133 Aws::String m_fileContentsBase64;
134 bool m_fileContentsBase64HasBeenSet = false;
135
136 Aws::String m_fileName;
137 bool m_fileNameHasBeenSet = false;
138
140 bool m_scopeHasBeenSet = false;
141
142 Aws::String m_sessionId;
143 bool m_sessionIdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace QApps
148} // 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