AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreatePresignedUrlRequest.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 CreatePresignedUrlRequest() = 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 "CreatePresignedUrl"; }
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
94 inline const Aws::String& GetFileContentsSha256() const { return m_fileContentsSha256; }
95 inline bool FileContentsSha256HasBeenSet() const { return m_fileContentsSha256HasBeenSet; }
96 template <typename FileContentsSha256T = Aws::String>
98 m_fileContentsSha256HasBeenSet = true;
99 m_fileContentsSha256 = std::forward<FileContentsSha256T>(value);
100 }
101 template <typename FileContentsSha256T = Aws::String>
103 SetFileContentsSha256(std::forward<FileContentsSha256T>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetFileName() const { return m_fileName; }
113 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
114 template <typename FileNameT = Aws::String>
115 void SetFileName(FileNameT&& value) {
116 m_fileNameHasBeenSet = true;
117 m_fileName = std::forward<FileNameT>(value);
118 }
119 template <typename FileNameT = Aws::String>
121 SetFileName(std::forward<FileNameT>(value));
122 return *this;
123 }
125
127
131 inline DocumentScope GetScope() const { return m_scope; }
132 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
133 inline void SetScope(DocumentScope value) {
134 m_scopeHasBeenSet = true;
135 m_scope = value;
136 }
138 SetScope(value);
139 return *this;
140 }
142
144
148 inline const Aws::String& GetSessionId() const { return m_sessionId; }
149 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
150 template <typename SessionIdT = Aws::String>
151 void SetSessionId(SessionIdT&& value) {
152 m_sessionIdHasBeenSet = true;
153 m_sessionId = std::forward<SessionIdT>(value);
154 }
155 template <typename SessionIdT = Aws::String>
157 SetSessionId(std::forward<SessionIdT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_instanceId;
163
164 Aws::String m_cardId;
165
166 Aws::String m_appId;
167
168 Aws::String m_fileContentsSha256;
169
170 Aws::String m_fileName;
171
173
174 Aws::String m_sessionId;
175 bool m_instanceIdHasBeenSet = false;
176 bool m_cardIdHasBeenSet = false;
177 bool m_appIdHasBeenSet = false;
178 bool m_fileContentsSha256HasBeenSet = false;
179 bool m_fileNameHasBeenSet = false;
180 bool m_scopeHasBeenSet = false;
181 bool m_sessionIdHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace QApps
186} // namespace Aws
void SetFileContentsSha256(FileContentsSha256T &&value)
CreatePresignedUrlRequest & WithInstanceId(InstanceIdT &&value)
CreatePresignedUrlRequest & WithSessionId(SessionIdT &&value)
CreatePresignedUrlRequest & WithFileName(FileNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePresignedUrlRequest & WithAppId(AppIdT &&value)
AWS_QAPPS_API Aws::String SerializePayload() const override
CreatePresignedUrlRequest & WithCardId(CardIdT &&value)
CreatePresignedUrlRequest & WithScope(DocumentScope value)
CreatePresignedUrlRequest & WithFileContentsSha256(FileContentsSha256T &&value)
AWS_QAPPS_API CreatePresignedUrlRequest()=default
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