AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePresignedUrlRequest.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 CreatePresignedUrlRequest() = 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 "CreatePresignedUrl"; }
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 CreatePresignedUrlRequest& 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 CreatePresignedUrlRequest& 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 CreatePresignedUrlRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
74
76
80 inline const Aws::String& GetFileContentsSha256() const { return m_fileContentsSha256; }
81 inline bool FileContentsSha256HasBeenSet() const { return m_fileContentsSha256HasBeenSet; }
82 template<typename FileContentsSha256T = Aws::String>
83 void SetFileContentsSha256(FileContentsSha256T&& value) { m_fileContentsSha256HasBeenSet = true; m_fileContentsSha256 = std::forward<FileContentsSha256T>(value); }
84 template<typename FileContentsSha256T = Aws::String>
85 CreatePresignedUrlRequest& WithFileContentsSha256(FileContentsSha256T&& value) { SetFileContentsSha256(std::forward<FileContentsSha256T>(value)); return *this;}
87
89
92 inline const Aws::String& GetFileName() const { return m_fileName; }
93 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
94 template<typename FileNameT = Aws::String>
95 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
96 template<typename FileNameT = Aws::String>
97 CreatePresignedUrlRequest& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
99
101
105 inline DocumentScope GetScope() const { return m_scope; }
106 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
107 inline void SetScope(DocumentScope value) { m_scopeHasBeenSet = true; m_scope = value; }
108 inline CreatePresignedUrlRequest& WithScope(DocumentScope value) { SetScope(value); return *this;}
110
112
116 inline const Aws::String& GetSessionId() const { return m_sessionId; }
117 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
118 template<typename SessionIdT = Aws::String>
119 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
120 template<typename SessionIdT = Aws::String>
121 CreatePresignedUrlRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
123 private:
124
125 Aws::String m_instanceId;
126 bool m_instanceIdHasBeenSet = false;
127
128 Aws::String m_cardId;
129 bool m_cardIdHasBeenSet = false;
130
131 Aws::String m_appId;
132 bool m_appIdHasBeenSet = false;
133
134 Aws::String m_fileContentsSha256;
135 bool m_fileContentsSha256HasBeenSet = false;
136
137 Aws::String m_fileName;
138 bool m_fileNameHasBeenSet = false;
139
141 bool m_scopeHasBeenSet = false;
142
143 Aws::String m_sessionId;
144 bool m_sessionIdHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace QApps
149} // 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