AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSessionRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/s3-crt/model/SessionMode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3-crt/model/ServerSideEncryption.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3CRT_API CreateSessionRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
38
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
62 inline const SessionMode& GetSessionMode() const{ return m_sessionMode; }
63 inline bool SessionModeHasBeenSet() const { return m_sessionModeHasBeenSet; }
64 inline void SetSessionMode(const SessionMode& value) { m_sessionModeHasBeenSet = true; m_sessionMode = value; }
65 inline void SetSessionMode(SessionMode&& value) { m_sessionModeHasBeenSet = true; m_sessionMode = std::move(value); }
66 inline CreateSessionRequest& WithSessionMode(const SessionMode& value) { SetSessionMode(value); return *this;}
67 inline CreateSessionRequest& WithSessionMode(SessionMode&& value) { SetSessionMode(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetBucket() const{ return m_bucket; }
75 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
76 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
77 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
78 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
79 inline CreateSessionRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
80 inline CreateSessionRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
81 inline CreateSessionRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
83
85
95 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
96 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
97 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
98 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); }
102
104
119 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
120 inline bool SSEKMSKeyIdHasBeenSet() const { return m_sSEKMSKeyIdHasBeenSet; }
121 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = value; }
122 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::move(value); }
123 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId.assign(value); }
124 inline CreateSessionRequest& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
125 inline CreateSessionRequest& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
126 inline CreateSessionRequest& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
128
130
146 inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; }
147 inline bool SSEKMSEncryptionContextHasBeenSet() const { return m_sSEKMSEncryptionContextHasBeenSet; }
148 inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = value; }
149 inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::move(value); }
150 inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext.assign(value); }
153 inline CreateSessionRequest& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;}
155
157
175 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
176 inline bool BucketKeyEnabledHasBeenSet() const { return m_bucketKeyEnabledHasBeenSet; }
177 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
178 inline CreateSessionRequest& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
180
182
183 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
184 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
185 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
186 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
189 inline CreateSessionRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
190 inline CreateSessionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
191 inline CreateSessionRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
192 inline CreateSessionRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
193 inline CreateSessionRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
194 inline CreateSessionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
195 inline CreateSessionRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
197 private:
198
199 SessionMode m_sessionMode;
200 bool m_sessionModeHasBeenSet = false;
201
202 Aws::String m_bucket;
203 bool m_bucketHasBeenSet = false;
204
205 ServerSideEncryption m_serverSideEncryption;
206 bool m_serverSideEncryptionHasBeenSet = false;
207
208 Aws::String m_sSEKMSKeyId;
209 bool m_sSEKMSKeyIdHasBeenSet = false;
210
211 Aws::String m_sSEKMSEncryptionContext;
212 bool m_sSEKMSEncryptionContextHasBeenSet = false;
213
214 bool m_bucketKeyEnabled;
215 bool m_bucketKeyEnabledHasBeenSet = false;
216
217 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
218 bool m_customizedAccessLogTagHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace S3Crt
223} // namespace Aws
CreateSessionRequest & WithServerSideEncryption(const ServerSideEncryption &value)
CreateSessionRequest & WithSSEKMSEncryptionContext(const char *value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
CreateSessionRequest & WithSSEKMSEncryptionContext(Aws::String &&value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
void SetServerSideEncryption(ServerSideEncryption &&value)
CreateSessionRequest & WithBucketKeyEnabled(bool value)
void SetServerSideEncryption(const ServerSideEncryption &value)
CreateSessionRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSessionRequest & WithSSEKMSKeyId(const Aws::String &value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateSessionRequest & WithSSEKMSKeyId(Aws::String &&value)
CreateSessionRequest & WithBucket(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetSessionMode(const SessionMode &value)
CreateSessionRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
CreateSessionRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithSessionMode(const SessionMode &value)
CreateSessionRequest & WithSSEKMSKeyId(const char *value)
AWS_S3CRT_API Aws::String SerializePayload() const override
CreateSessionRequest & WithBucket(const char *value)
CreateSessionRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
CreateSessionRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetSSEKMSEncryptionContext(Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithSSEKMSEncryptionContext(const Aws::String &value)
const Aws::String & GetSSEKMSEncryptionContext() const
void SetBucket(const Aws::String &value)
CreateSessionRequest & WithServerSideEncryption(ServerSideEncryption &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
CreateSessionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
const ServerSideEncryption & GetServerSideEncryption() const
CreateSessionRequest & WithSessionMode(SessionMode &&value)
CreateSessionRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
CreateSessionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetSSEKMSKeyId(const Aws::String &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
CreateSessionRequest & WithBucket(Aws::String &&value)
CreateSessionRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String